Configurations, scripts and runtime modules for Node.js App.
- NPM
npm i @node-app/runtime
npm i -D @node-app/scripts
- Yarn
yarn add @node-app/runtime
yarn add -D @node-app/scripts
package.json
{
"scripts": {
"clean": "node-app clean",
"build": "node-app build"
}
}
tsconfig.json
{
"scripts": "@node-app/scripts/config/tsconfig.json",
"include": [
"src"
]
}
Usage: node-app command [options]
Commands:
node-app clean Clean up. [aliases: c]
node-app build Build sources. [aliases: b]
Options:
-i, --input Input directory. [string] [default: "src"]
-o, --output Output directory. [string] [default: "dist"]
-v, --version Show version number [boolean]
-h, --help Show help [boolean]