alarmist-webpack
v1.0.11
Published
Wrap webpack watch in alarmist jobs
Downloads
4
Readme
alarmist-webpack
Wrap webpack watch in alarmist jobs
Usage
As this is a tool linking webpack
with alarmist
, it is expected that your project already has both alarmist
and webpack
installed
npm install webpack alarmist alarmist-webpack
You can then add something like the following to your package.json
scripts
{
...
"scripts": {
...
"alarmist:build": "alarmist-webpack -n job-name -c ./path/to/webpack/config",
...
},
...
}
Then add that script to the watch jobs started by alarmist-monitor
.
Usage: alarmist-webpack [options]
Start webpack in watch mode. The working directory
should match the working directory of the monitor and usually this will
be the default. If the job is started via a watcher started
by the monitor then the 'ALARMIST_WORKING_DIRECTORY' environment
variable will have already been set.
Environment Variables:
FORCE_COLOR
ALARMIST_WORKING_DIRECTORY
ALARMIST_WEBPACK_NAME
ALARMIST_WEBPACK_CONFIG
Options:
--name, -n The name to use for the job (default: "webpack")
--working-dir, -w The directory in which to write logs, etc (default: ".alarmist")
--config, -f webpack config file path (default: "webpack.config.js")
--colors, -c turn on colors for webpack stats report (default: true)
--help, -h Show help
--version, -v Show version number
Contributing
Run lint, tests, build, etc before pushing/submitting PRs
npm test
- lint and testnpm run build
- run tests then buildnpm run watch
- watch for changes and run buildnpm run ci
- run build and submit coverage to coverallsnpm start
- watch for changes and build, lint, test, etc in parallel with alarmist