adobe/twist-configuration

Name: twist-configuration

Owner: Adobe Systems Incorporated

Description: Loader for Twist configuration (.twistrc) files

Created: 2018-01-04 19:46:45.0

Updated: 2018-01-22 18:53:53.0

Pushed: 2018-01-11 22:37:37.0

Homepage: null

Size: 60

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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:

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

l.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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.