Advertisement
Guest User

Untitled

a guest
May 24th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. ## Objectives
  2.  
  3. 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:
  4.  
  5. 1. Compile `.sass` files into single `.css` file with minification
  6. 2. Error check `.js` files while ignoreing some Twig tags
  7. 3. Concatenate multiple `js` files into a single file
  8. 4. Concatenate all `src/fieldTypes/*.html` files into a single file
  9. 5. Strip comment blocks from the resulting fieldTypes include file
  10. 6. Include files in the core `.html` files (one for dev previews and one for distribution/download)
  11.  
  12. With that, we watch specific files and run specific tasks based on those files (no surprise). Most of them require a new run of the `includes` task.
  13.  
  14. This project doesn't really have a dev mode or distribution mode. So Gulp is working quite nicely without any problems.
  15.  
  16. **Note: This is literally my first `gulpfile.js` attempt. If you have suggestions or see things that are strange/redundant please let me know.** :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement