How to use the neutrino.Neutrino function in neutrino

To help you get started, we’ve selected a few neutrino examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aranja / tux / src / tux-scripts / src / compiler.ts View on Github external
return apiOptions.map(options => {
    const api = Neutrino(options)

    // Register built in commands
    api.register('start', start)
    api.register('build', build)
    api.register('inspect', inspect)
    api.register('test', test)

    // Require and use all configured middlewares.
    args.middleware.forEach(middleware => api.use(middleware))

    return api
  })
}
github geops / openlayers-editor / cypress / plugins / index.js View on Github external
module.exports = on => {
  const options = webpackPreprocessor.defaultOptions;
  const olProvider = new webpack.ProvidePlugin({ ol: "openlayers" });
  options.webpackOptions.plugins = [olProvider];

  const config = Neutrino().use('.neutrinorc.js').config.toConfig();
  options.webpackOptions.module.rules.push(...config.module.rules);
  on("file:preprocessor", webpackPreprocessor(options));
};
github mozilla / firefox-code-coverage-frontend / .eslintrc.js View on Github external
const { Neutrino } = require('neutrino');

module.exports = Neutrino()
  .use('.neutrinorc.js')
  .call('eslintrc');

neutrino

Create and build JS applications with managed configurations

MPL-2.0
Latest version published 4 years ago

Package Health Score

56 / 100
Full package analysis