@grandchaman/npp
A preprocessor handler for node
Last updated 2 years ago by grandchaman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @grandchaman/npp -g
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.4                                ...           latest (2 years ago)

3 Versions

  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 4
Last Month 2
Dependencies (8)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |