@grandchaman/npp
v0.0.4
Published
A preprocessor handler for node
Downloads
6
Readme
NodePreProcessor
Tiny cli utility to process all the file of a project through Preprocessor.js
Installation
npm i -g @grandchaman/npp
Configuration
Create a .nodepiler.json
file at the root of your project
Example :
{
"to_watch":
[
"index.js",
"package.json"
],
"keys":
{
"TEST": {
"TEST": 1
},
"default": {
"PROD": 1
}
}
}
to_watch
is an array of file or folder to compile (and possibly watch)
keys
keys passed to Preprocessor.js
The default
set is required. You can specify other sets and use them with the -m TEST
option
Usage
$ npp -h
Usage: npp [options]
Options:
-V, --version output the version number
-s, --source <dir> Source directory (default: "cwd")
-o, --output <dir> Output directory (default: "cwd/build")
-m, --mode <mode> Select the mode (default: "default")
-q, --quiet Shhhhh, bambi's sleeping
-w, --watch Keep open with watcher
-h, --help output usage information