Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for namespaces #264

Open
broweratcognitecdotcom opened this issue Jan 17, 2018 · 6 comments
Open

Add support for namespaces #264

broweratcognitecdotcom opened this issue Jan 17, 2018 · 6 comments

Comments

@broweratcognitecdotcom
Copy link

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.

@izifortune
Copy link
Collaborator

Hi @broweratcognitecdotcom i'm doing this already in a customised version of the generator i'm happy to share it in a PR

@broweratcognitecdotcom
Copy link
Author

@izifortune Sweet. Please do.

@izifortune izifortune self-assigned this Feb 6, 2018
@adamk33n3r
Copy link

@izifortune Any update on this? I would love to have this enhancement.

@izifortune
Copy link
Collaborator

Sorry @adam I will make some time this week to share this

@izifortune
Copy link
Collaborator

Hi @adamk33n3r please have a look at this PR #283. Hope i'm not missing anything there

@jvandemo
Copy link
Owner

@izifortune — Thank you for your follow-up, much appreciated! 🏆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants