@j2inn/react-config
Last updated 2 days ago by j2_jonathand .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @j2inn/react-config 
SYNC missed versions from official npm registry.

@j2inn/react-config

Build tooling for J2 Innovations Typescript + React projects

Instructions

Most easily installed via the @j2inn/cli tool.

Install it with

$ npm i -g @j2inn/cli

then

$ j2 init <dir>

Will create a freshly set up project in <dir>

Theming

@j2inn/react-config supports overriding stylus/less variables at build time through environment variables or a javasript file

Env Vars

Override variables by defining environment vars in the form of THEME_<var> or THEME='<json>'

Example:

THEME_PRIMARY_COLOR=#336699 npm start

The $primary-color variable will then be globally defined in all .styl and .less files.

Example:

THEME='{"primary-color": "#336699", "foo": "bar baz"}' npm start

Same as above, the $primary-color and $foo will be globally defined.

src/theme.js

If a src/theme.js is provided in the repo, the build tools will read this file and use the default export to provide theming variables

src/theme.js:

module.exports = {
	"primary-color": #336699
}

Current Tags

  • 3.2.0                                ...           latest (2 days ago)

75 Versions

  • 3.2.0                                ...           2 days ago
  • 3.1.1                                ...           8 days ago
  • 3.1.0                                ...           10 days ago
  • 3.0.2                                ...           19 days ago
  • 3.0.1                                ...           a month ago
  • 3.0.0                                ...           a month ago
  • 2.3.6                                ...           2 months ago
  • 2.3.5                                ...           3 months ago
  • 2.3.4                                ...           4 months ago
  • 2.3.3                                ...           4 months ago
  • 2.3.2                                ...           4 months ago
  • 2.3.1                                ...           4 months ago
  • 2.3.0                                ...           5 months ago
  • 2.2.2                                ...           7 months ago
  • 2.2.1                                ...           7 months ago
  • 2.2.0                                ...           7 months ago
  • 2.1.0                                ...           7 months ago
  • 2.0.11                                ...           7 months ago
  • 2.0.10                                ...           7 months ago
  • 2.0.9                                ...           8 months ago
  • 2.0.7                                ...           8 months ago
  • 2.0.6                                ...           8 months ago
  • 2.0.5                                ...           8 months ago
  • 2.0.4                                ...           8 months ago
  • 2.0.3                                ...           8 months ago
  • 2.0.2                                ...           9 months ago
  • 2.0.1                                ...           9 months ago
  • 2.0.0                                ...           9 months ago
  • 1.5.6                                ...           10 months ago
  • 1.5.5                                ...           10 months ago
  • 1.5.4                                ...           a year ago
  • 1.5.3                                ...           a year ago
  • 1.5.2                                ...           a year ago
  • 1.5.1                                ...           a year ago
  • 1.5.0                                ...           a year ago
  • 1.4.4                                ...           a year ago
  • 1.4.3                                ...           a year ago
  • 1.4.2                                ...           a year ago
  • 1.4.1                                ...           a year ago
  • 1.4.0                                ...           a year ago
  • 1.3.2                                ...           a year ago
  • 1.3.1                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.10                                ...           a year ago
  • 1.2.9                                ...           a year ago
  • 1.2.8                                ...           a year ago
  • 1.2.7                                ...           a year ago
  • 1.2.6                                ...           a year ago
  • 1.2.5                                ...           a year ago
  • 1.2.4                                ...           a year ago
  • 1.2.3                                ...           a year ago
  • 1.2.2                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.4                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.15                                ...           a year ago
  • 1.0.14                                ...           a year ago
  • 1.0.13                                ...           a year ago
  • 1.0.12                                ...           a year ago
  • 1.0.11                                ...           a year ago
  • 1.0.10                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago

Copyright 2014 - 2016 © taobao.org |