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:
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:
If any scss, sass, less, or stylus is 'true', and if icons is 'true', run gulp task 'icons-web'
If 'android' is 'true', and if 'icons' is 'true', run gulp task 'icons-android',
If 'ios' is 'true', and if 'icons' is 'true', run gulp task 'ios-icons' (despite the fact that ios-icons task is breaking)
If both 'android' and 'ios' are 'true, run both gulp tasks 'ios-icons' and 'android-icons'
(etcetera)
Config.json item "compileStyles" enhancement. Currently, this item lists an array of gulp tasks to execute:
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:
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: