Nearly Pooped Myself

    alarmist-webpack

    1.0.11 • Public • Published

    alarmist-webpack

    Build Status Build status Coverage Status

    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 test
    • npm run build - run tests then build
    • npm run watch - watch for changes and run build
    • npm run ci - run build and submit coverage to coveralls
    • npm start - watch for changes and build, lint, test, etc in parallel with alarmist

    Keywords

    none

    Install

    npm i alarmist-webpack

    DownloadsWeekly Downloads

    66

    Version

    1.0.11

    License

    ISC

    Last publish

    Collaborators

    • pghalliday