18.0.5 • Published 6 months ago
@tech4good/angular-schematics v18.0.5
Angular Schematics
This repository is used to generate modules, containers, components, and entities for Angular projects.
Usage
- Run
npm install @tech4good/angular-schematics. - Set the schematics to be the default using:
ng config cli.defaultCollection @tech4good/angular-schematics - Change directories to the directory you want to generate the files and run
ng generate <schematic> <name>, whereschematic= module, container, component, or entity (or if you did not make it the default, useng generate @tech4good/angular-schematics:<schematic> <name>)
Setting up a new repository
- Create a new Angular repo using the CLI,
- Use
ng generate initto add our base files to the new repo, - Then add database configuration parameters:
- Update the environments files with your firebase configs
- Update .firebaserc with the firebase projects you're deploying to
Developing
- Clone this repository.
- Run
npm install -g @angular-devkit/schematics-clito install globally - Run
npm install,npm run build&npm link - Run
npm link @tech4good/angular-schematicsin the Angular project directory - Run
ng generate @tech4good/angular-schematics:<schematic>to generate files (schematic= module, container, component, or entity) - To test/debug new changes, run
npm run buildagain beforeng generate ...
Testing
To test, install the repo directly from github into another local repo to test your schematic.
npm install https://github.com/tech4good-lab/angular-schematics.git#your-branch-name
npm link @tech4good/angular-schematics
ng generate @tech4good/angular-schematics:<schematic>Unit Testing
npm run test will run the unit tests, using Jasmine as a runner and test framework.
Publishing
To publish, simply do:
npm run build
npm publish # will ask for a OTP (see Google Authenticator: npm)That's it!
You can also use npm version <version> to update the version before publishing.
- Don't forget to also update
src/init/files/package.json.templateso that the latest version of@tech4good/anguar-schematicsis being used in the dependencies.
18.0.5
6 months ago
18.0.4
1 year ago
18.0.3
1 year ago
18.0.2
1 year ago
18.0.1
1 year ago
18.0.0
1 year ago
17.0.3
2 years ago
17.0.4
2 years ago
17.0.2
2 years ago
17.0.1
2 years ago
17.0.0
2 years ago
13.8.0
3 years ago
13.8.1
3 years ago
13.7.0
3 years ago
13.6.0
3 years ago
13.4.0
3 years ago
13.5.0
3 years ago
13.3.0
3 years ago
13.2.0
3 years ago
13.1.0
4 years ago
13.0.0
4 years ago
13.0.1
4 years ago
0.0.0
5 years ago
0.0.2
5 years ago