0.0.1 • Published 4 years ago
ng-routes-builder v0.0.1
ng-routes-builder
Usage
To install please run:
npm i -D ng-routes-builderThe library can be used in .js or .ts files. The main point is to use it in the root folder of the project.
Typescript usage
Create file ng-routes-builder.ts with next code:
import { start } from 'ng-routes-builder'
start();And then inside the package.json add next script:
nodemon ng-routes-builder.tsPlease check info about nodemon, if you have no idea about it.
Warning
Also, you can see next error after running script:
Typescript: Cannot use import statement outside a moduleMost possibly you have tsconfig.json in root folder with incorrect settings for this library.
There are 2 quick options in this case - use Javascript version or remove/rename/change tsconfig.json.
Javascript usage
Create file ng-routes-builder.js with next code:
const builder = require('ng-routes-builder');
builder.start();And then inside the package.json add next script:
node ng-routes-builder.jsI think, if you are here, you know what the node is.
After running script
....
0.0.1
4 years ago