ng-routes-builder
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

....

Readme

Keywords

Package Sidebar

Install

npm i ng-routes-builder

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

25.3 kB

Total Files

15

Last publish

Collaborators

  • volandriienko