crown-crm-builder-new
v0.3.0
Published
a generic builder from a json config which allows you to concat js files and build certain ones from others. Also watches and builders them and publishes to certain paths. builds scss and watches in the same manor.
Downloads
11
Readme
README
This README would normally document whatever steps are necessary to get your application up and running.
To minifiy
node build --env=production
Dev Dependencies
How to use this builder
- its quite complex at first but really its just a config file.
- Which ever project you have installed this builder to copy the builder-config file to the root of your project.
JS WATCHERS AND CSS WATCHERS
- This package uses gulp you will need to know about the gulp watches and how to select which ever files you want to watch. * In the example you can see I'm watching all .html and .js in the /client/js/ folder and deep nested files.
- Same with the css, im watching all scss files in the /client/scss/ I have in my project.
- You will need to change these and add as many different selectors you will need.
JS CONFIG RULES
- If the filename of the object ends in .js then it will be built into a file and exported to the dir you set in the "export" key.
- All other like in the example like "base" is a collection of files that can be referrenced in another object to include that set.
- The dir is just a base dir include you have alot of files, then you don't need to write the whole path in every line
- the concat order is the order that you files for that object will be concatenated in. But remember that you includes will be added first.
Extra
- Its quite confusing at first, but I want to make something very generic and easy to use once you have a foundation.
- Let me know if there are any bugs etc. Thanks you using this!.
Who do I talk to?
- Andrew Butler