Saturate / HelixForge

Use HelixForge to build your Helix Solutions. (Also all other solutions, because why not!)
MIT License
0 stars 0 forks source link

Task Configuration Reader #1

Open Saturate opened 7 years ago

Saturate commented 7 years ago

We want to have a modular configuration.

Ex.

Configuration/
   - default/
      - config.less.js
      - config.javascript.js
   - local/ (not in git)
   - ci/ (ENV)
      - config.less.js
   - prod/ (ENV)
      - config.javascript.js

Merge order: default -> %ENV% -> local

Configuration

The configuration consists of JavaScript modules. These modules are merged to form a final config. It's not JSON as JavaScript gives us the ability to use comments and sometimes even allow us to do more things with the configuration, like dynamic timestamps.

Configuration files

Each configuration file should be named to fit this regex pattern Config(\.?\w*).js ex Config.%optionalScope%.js

Ex. Config.IIS.js, Config.js or Config.SCSS.js

TODO:

Saturate commented 7 years ago

Started work on this issue in https://github.com/Saturate/polymerase/tree/feat/configuration-reader

Volzy commented 7 years ago

Let's put focus on this one. Because all tasks touches the config. But I see you're already well ahead on this issue.

Saturate commented 7 years ago

Wrote some tests, and will write some more before merge. :-)