[![Build Status](https://travis-ci.org/adobe/twist-configuration.svg?branch=master)](https://travis-ci.org/adobe/twist-configuration)
Last updated 2 years ago by lanther .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @twist/configuration 
SYNC missed versions from official npm registry.

Twist Configuration

Build Status

Configuration of Twist repos - this reads the configuration from .twistrc. This is used for configuring Babel.


Note: Most users will not use @twist/configuration directly, but will instead include a plugin for the build system and framework that they're targeting - for example @twist/react-webpack-plugin. This internally uses Twist configuration.

Usage with Babel:

let TwistConfiguration = require('@twist/configuration');
var config = new TwistConfiguration('node', options);

babel.transform(code, config.babelOptions);

By default, TwistConfiguration will read the options in the .twistrc file in the current working directory (or .twistrc.js if it's a JavaScript file). You can specify a different location via the root option. Any options you pass in override the .twistrc options.



About Twist

Twist is a state-management library for JavaScript applications. It's influenced by Redux and MobX, which are two of the popular state-management libraries for React.

Current Tags

  • 0.1.0                                ...           latest (2 years ago)

1 Versions

  • 0.1.0                                ...           2 years ago
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 2
Dependencies (40)
Dev Dependencies (6)

Copyright 2014 - 2016 © taobao.org |