I have a site that contains the base javascript and css for a number of other sites. Most of the sites use a javascript bundle that has everything in it, although a few of them are lightweight and only use a few of the scripts. I'm learning how to use gulp to manipulate these files and mostly understand what's going on. However, I'd like to be able to perform the following sequence and I'm not sure how.
- Compile my coffeescript files
- Copy the compiled files to a folder
- Minify the copied files
- Bundle the compiled files into one file
- Bundle the minified files into one file
Is there any way to make this happen all within one task?