0.0.11 • Published 2 years ago
node-schematics v0.0.11
Getting Started With Schematics
This repository is a basic Schematic implementation that serves as a starting point to create and publish Schematics to NPM.
Installation
npm iLocal environment
If you are going to make changes to the code run thw following command in one terminal to build the schematics in watch mode.
npm build -- --watchRunning Schematics in debug mode
REST Schematic
npx schematics ./src/collection.json:restGraphQL Schematic (WIP)
npx schematics ./src/collection.json:graphqlRunning Schematics
Install the package globally with npm
npm i -g node-schematicsREST Schematic
nest g -c node-schematics restGraphQL Schematic (WIP)
nest g -c node-schematics graphqlUnit Testing
npm run test will run the unit tests, using Jasmine as a runner and test framework.
Publishing
Any time we perform changes to the schematics we have to publish those changes to the npm registry:
npm run build
npm publish