0.0.11 • Published 7 months 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 i
Local 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 -- --watch
Running Schematics in debug mode
REST Schematic
npx schematics ./src/collection.json:rest
GraphQL Schematic (WIP)
npx schematics ./src/collection.json:graphql
Running Schematics
Install the package globally with npm
npm i -g node-schematics
REST Schematic
nest g -c node-schematics rest
GraphQL Schematic (WIP)
nest g -c node-schematics graphql
Unit 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