Giter Site home page Giter Site logo

webpack-canary's Introduction

npm deps test coverage chat

Webpack Canary

Run dependency examples against webpack versions to detect incompatibilities.

Usage

Squawk

Expected usage of the canary is to check multiple versions of webpack against a set of dependencies and squawk if there are any failures. The squawk task is a runner to just that. Webpack versions are stored in webpack-versions.json and dependency versions are stored in dependency-versions.json.

Use npm run squawk to run all dependencies against all versions of webpack, and generate a report with successes and failures. This command does not take any flags.

CLI Interface

To run a specific dependency version against a specific version of webpack, use the canary CLI interface

node index.js --webpack=<webpack_reference> --dependency=<dependency_reference>
  • --webpack can be a version or path to remote repository
  • --dependency can be a dependency name (with or without version) or path to remote repository

Example

# Published versions in registry
node index.js --webpack=2.2 --dependency=raw-loader

# Development versions in remote repositories
node index.js --webpack=webpack/webpack#master --dependency=https://github.com/alistairjcbrown/raw-loader/

Compatibility

A dependency must include an examples directory which contains an example setup with corresponding webpack config. This config is run with the installed webpack version to confirm compatibility.

To Do

  • ES6
  • Tests
  • Flag to control log level verbosity
  • Programatic interface (split CLI flags from app)
  • Script to run for multiple dependencies
  • Linting
  • Show summary successes / failure after running squawk
  • Change logLevel to loglevel
  • Investigate why failing on webpack 1 causes failure in webpack 2 (cache?)
  • Update summary to use progress bar and collapse table if all success
  • Update readme
  • Output recreation command when squawk failure
  • Support multiple examples and output in table
  • Split webpack 1 configs and 2 configs in examples - support non-suported examples
  • Add ability to run more than just loaders / plugins

Maintainers


Alistair Brown

Juho Vepsäläinen

Joshua Wiens

Kees Kluskens

Sean Larkin

webpack-canary's People

Contributors

alistairjcbrown avatar joshwiens avatar

Watchers

Steven Hargrove avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.