NateBaldwinDesign / dragoman

NO LONGER SUPPORTED. Gulp plugin to translate core design tokens across mobile & web platforms
https://natebaldwindesign.github.io/dragoman/
MIT License
52 stars 4 forks source link

Config file update #33

Open NateBaldwinDesign opened 8 years ago

NateBaldwinDesign commented 8 years ago

Config.json item "compileStyles" enhancement. Currently, this item lists an array of gulp tasks to execute:

"compileStyles": {
    "scss": ["json-scss-stylesheet", "icons-web"],
    "sass":["json-sass-stylesheet", "icons-web"],
    "less": ["json-less-stylesheet", "icons-web"],
    "stylus": ["json-stylus-stylesheet", "icons-web"],
    "android": ["json-android-color", "icons-android"],
    "ios": ["json-ios-color", ""]

In order to make the config.json file more user-friendly, the config.json file and gulpfile.js should be updated to support boolean statements in the config file. For example, the config.json file item of 'compileStyles' should be updated to this:

"languages": {
    "scss": true,
    "sass": true,
    "less": true,
    "stylus": true,
    "android": true,
    "ios": true
}
"assets" {
    "icons": true
}

Passing true/false statement should determine which gulp tasks to execute. If any are listed as 'false', the respective style compilation task will not be called. (ie, if "android": false, do not execute "json-android-color". Conversely, if only "sass": true, and all others are set to false, only execute gulp task "json-sass-stylesheet")

The new item "assets" {"icons": true} should be used instead of the current array function in the gulpfile in determining whether or not to execute the respective icon build tasks. In order for this to work, this statement should be true:

jleajones commented 8 years ago

@NateBaldwinDesign, I can take this on.

NateBaldwinDesign commented 8 years ago

👍 Awesome, thank you @jleajones