Overview
Here is a quick overview of how ColdBox Elixir works.
How it works
Elixir supports several common CSS pre-processors, JavaScript compilers, and TestBox runner integrations. By leveraging Gulp and the Gulpfile.js
configuration file, Elixir will allow you to fluently define your asset pipeline using conventions.
Conventions
All resources in your ColdBox application will be stored under the resources/assets
folder. Under this folder you can find several sub-sections:
css
- Where you can store your cssjs
- Where you can store your js, vue.js and moreless
- Where you can store your less filessass
- Where you can store your sass files
Depending on the formulas you mix up in the Gulpfile.js
using Elixir, you will end up with all your assets linted, minified, etc in their appropriate destination in the includes
folder:
css
- Destination for cssjs
- Destination for jsbuild
- Destination for versioned assets
For example:
If you've ever been confused about how to get started with Gulp and asset compilation, you will love ColdBox Elixir. However, you are not required to use it while developing your application. You are free to use any asset pipeline tool you wish, or even none at all.
Last updated