0.2.0 • Published 5 years ago

@nll/schematics-preact v0.2.0

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
5 years ago

To Use

Install as schematics-preact a dev dependency and schematics-cli globally:

npm i -D @nll/schematics-preact
npm i -g @angular-devkit/schematics-cli

Run the commands manually (path defaults to /src/components):

schematics @nll/schematics-preact:stateless-component --name=MyNewStatelessComponent --path=/src/my/custom/components
schematics @nll/schematics-preact:component --name=MyNewComponent --path=/src/my/custom/components

Or add the following script to your package.json file:

"g:sc": "schematics @nll/schematics-preact:stateless-component",
"g:c": "schematics @nll/schematics-preact:component",

And then the commands becomes:

npm run g:c -- --name=MyNewComponent

npm run g:sc -- --name=MyNewStatelessComponent