What this talk isn't
→ For people with a highly specific build tool /
chain
→ For people who never start any new projects
→ About ES6 (ES2015), Babel, Sass, or any of the
other tasks in our build chain
Slide 3
Slide 3 text
What this talk is
→ Quick, simple, out-of-the-box front-end builds
→ Builds specific to ColdBox
→ An overview of the latest *Box product
Slide 4
Slide 4 text
Who am I?
Eric Peterson
! Utah
" O.C. Tanner
# 1 wife, 2 kids
Every New Project
→ Decide if you are going to keep your same source
and destination path conventions
→ Create all the folders you need
→ Wire up your front-end build with your decided-
upon conventions
Slide 10
Slide 10 text
Every New Project
→ Write a crazy gulpfile.js
→ Bang your head against the
wall remembering weird gulp
syntax
→ Hope that copy and pasting
your config from a previous
project won't be worse
Slide 11
Slide 11 text
Introducing
ColdBox Elixir
Inspired from Laravel Elixir
SVG
elixir( function( mix ) {
mix.svgSpritesheet();
// creates a spritesheet of all the images
// found in /resources/assets/svg
// and saves it to includes/svg/sprite.svg
// pairs well with the cbsvg module
} );
BrowserSync
elixir( function( mix ) {
mix.browserSync();
// OR specify your proxy server
mix.browserSync( {
proxy: "127.0.0.1:7777"
} );
} );
Slide 59
Slide 59 text
Live Reloading
Slide 60
Slide 60 text
Live
Reloading
This is awesome for
TestBox tests!
Slide 61
Slide 61 text
mix.modules
→ Uses same conventions inside you modules
folders (resources/assets, etc.)
→ All mix methods available in your gulpfile.js are
available here.
→ Ignores modules without a elixir-module.js file.
→ Watch mode supported just like you would expect
and hope.