@grandchaman/npp

0.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @grandchaman/npp

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

6.83 kB

Total Files

3

Last publish

Collaborators

  • grandchaman