ng-routes-builder
v0.0.1
Published
This lib helps to create the .npmrc file with auth token. It's much easier to publish with it.
Downloads
3
Readme
ng-routes-builder
Usage
To install please run:
npm i -D ng-routes-builder
The 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.ts
Please 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 module
Most 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.js
I think, if you are here, you know what the node is.
After running script
....