Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

adobe/twist-configuration

Twist Configuration

Build Status

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

Usage

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.

Options

TODO

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.

About

Loader for Twist configuration (.twistrc) files

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •