jvandemo / jvandemo/generator-angular2-library

Add support for namespaces

Open
#264 6 comments 0 reactions 1 assignee Claimed by @izifortune View on GitHub
Status: Proposal Status: Review Needed Type: Enhancement
Dominant language
JavaScript
Stars
740
Forks
116
PR merge metrics
No merged PRs in 30d

Description

We constantly have to edit package.json files and tsconfig.es5.json because we use a company namespace, examples: @cognitec/ui, @cognitec/authentication, etc.

When I want to use the generator, I am in .../@cognitec/ folder. I typically mkdir, example: mkdir ui then I run the generator, e.g. yo angular2-library and I enter in the name of the package, e.g. @cognitec/ui but this results in a flat module ID of cognitec-ui instead of what we need.

It would be wicked awesome if the generator was capable of figuring out from the package name that the user enters, e.g. @cognitec/ui, that the user is in the @cognitec folder and proceeded to create the ui folder, and package.json and tsconfig.es5.json files that contained @cognitec/ui as the package name and flat module ID.

Thanks for this excellent generator. It has been invaluable to us.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.