Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Feature: Consume package.json:config just like npm #89

Closed
ryan-roemer opened this issue Feb 11, 2016 · 0 comments · Fixed by #91
Closed

Feature: Consume package.json:config just like npm #89

ryan-roemer opened this issue Feb 11, 2016 · 0 comments · Fixed by #91

Comments

@ryan-roemer
Copy link
Member

And with multiple levels of overrides going down to root project.

See:

Strawman:

// <root>/package.json
  "config": {
    "electrode_archetype_react_component_webpack_style_modules": true
  },

// <archetype>/config/webpack/webpack.config.js
var moduleStr = !!process.env.npm_package_config_electrode_archetype_react_component_webpack_style_modules;

console.log(
  process.env.npm_package_config_electrode_archetype_react_component_webpack_style_modules,
  moduleStr,
  typeof moduleStr);
ryan-roemer added a commit that referenced this issue Feb 12, 2016
* Add `config` support for `builder` process execution environment + tests. Fixes #89.
* Add docs with explanation of `npm` and `builder` config implementations.
* Enhance existing tests.
    * Fix many missing `package.json` mock files in tests.
    * Add ignoring `builder:`-prefixed test.
    * Add `builder envs` with `--envs-paths=FILE` test.
ryan-roemer added a commit that referenced this issue Feb 12, 2016
* Add `config` support for `builder` process execution environment + tests. Fixes #89.
* Add docs with explanation of `npm` and `builder` config implementations.
* Enhance existing tests.
    * Fix many missing `package.json` mock files in tests.
    * Add ignoring `builder:`-prefixed test.
    * Add `builder envs` with `--envs-paths=FILE` test.
ryan-roemer added a commit that referenced this issue Feb 12, 2016
* Add `config` support for `builder` process execution environment + tests. Fixes #89.
* Add docs with explanation of `npm` and `builder` config implementations.
* Enhance existing tests.
    * Fix many missing `package.json` mock files in tests.
    * Add ignoring `builder:`-prefixed test.
    * Add `builder envs` with `--envs-paths=FILE` test.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant