systemjs-configurator

0.4.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i systemjs-configurator

Weekly Downloads

0

Version

0.4.1

License

MIT

Last publish

Collaborators

  • sidloki