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
.sass
files into single.css
file with minification - Error check
.js
files while ignoreing some Twig tags - Concatenate multiple
js
files into a single file - Concatenate all
src/fieldTypes/*.html
files into a single file - Strip comment blocks from the resulting fieldTypes include file
- Include files in the core
.html
files (one for dev previews and one for distribution/download)