systemjs-configurator
Build SystemJS configurations for node packages
Last updated 4 years ago by sidloki .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install systemjs-configurator 
SYNC missed versions from official npm registry.

SystemJS Configurator

Build Status Code Coverage

A tool to build SystemJS configurations for your Node.js project and all its package dependencies.

Installation

yarn add systemjs-configurator --dev

Or

npm install systemjs-configurator --save-dev

Usage

const configurator = require("systemjs-configurator");

// Some optional params
const options = {
  basedir: "path/to/dir",
  outfile: "path/to/out/file",
  excludes: ["package-a", "package-b", ...],
  overrides: { "systemjs-plugin-text": {name: "text"} }
};

let config = configurator.buildConfig(options);

console.log(JSON.stringify(config, null, 2));

configurator.writeConfig(config, "systemjs.config.js");

options:

  • basedir: The path to your project's base direcotry (default: process.cwd()).
  • outfile: The file path to write out the config to. If not defined no file will be written (default: null).
  • excludes: A list of package names to exclude from the configuration (default: []).
  • overrides: An object containing package overrides (default: {}).

Examples

License

Released under the MIT license.

Current Tags

  • 0.4.1                                ...           latest (4 years ago)

3 Versions

  • 0.4.1                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |