We're building a singular .html file that contains all css and javascript within it. No external dependencies. But we want to work on our css as sass and write our js in separate files. Additionally, this single .html file serves as a large documentation document with lots of code samples. As a result we've broken each code sampel out into a src/fieldTypes/ directory. So our task process is:
- Compile
.sassfiles into single.cssfile with minification - Error check
.jsfiles while ignoreing some Twig tags - Concatenate multiple
jsfiles into a single file - Concatenate all
src/fieldTypes/*.htmlfiles into a single file - Strip comment blocks from the resulting fieldTypes include file
- Include files in the core
.htmlfiles (one for dev previews and one for distribution/download)