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

Workspace-specific schematics use case example #34

Closed
anthonyhoarau opened this issue Apr 23, 2018 · 3 comments
Closed

Workspace-specific schematics use case example #34

anthonyhoarau opened this issue Apr 23, 2018 · 3 comments

Comments

@anthonyhoarau
Copy link

Hi,
It would be very useful if you could add a workspace-specific schematics use case example in Readme.
Maybe we just have to follow the angular schematics docs ?

@Yonet
Copy link
Contributor

Yonet commented Jun 22, 2018

@llioss nx is extending angular-cli. Workspace-specific schematics are still using ng generate libs... syntax. Only few doesn't exist on cli, like ngrx and affected.

You can get a list of the nx specific commands by running:

npm run help

@Yonet Yonet closed this as completed Jun 22, 2018
@llwt
Copy link

llwt commented Jun 26, 2018

I'm in the same boat, looking at creating some space-specific schematics that extend the ones provided by Nx but finding it hard to get started with the minimal documentation available in the docs.

For example:

Once the schematic is generated, how do we register / call it, the screenshot in that doc doesn't show the executed command?

How would we extend the "lib" schematic to tweak a file that is generated, for example adding ci-specific config into the karma.conf.js?

@anthonyhoarau
Copy link
Author

As said @Yonet npm run help show :
nx.js workspace-schematic Runs a workspace schematic from the tools/schematics directory

AngularBlog schematics intro show an example (Collection section)

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

No branches or pull requests

3 participants