Gulpfile.js
configuration file, you can use method chaining and Elixir will allow you to fluently define your asset pipeline using the ColdBox conventions.includes
- Where your css/js will be placed after the pipeline executesresources/assets
- Where all your resource files exist.Tip : ColdBox Elixir supports EcmaScript6, JSX syntax, LESS, SASS, babel, browserify, vueify, partialify and much more. So take advantage!
npm-shrinkwrap.json
into source control.package.json
file in the root of the application already. Think of this like your box.json
file, except it defines Node dependencies instead of ColdFusion (CFML) dependencies. A typical example can look like this:node_modules
folder in your root. This folder has been already added to the .gitignore
file as well, so no need to further ignore it.Note : If you are developing on a Windows system or you are running your VM on a Windows host system, you may need to run thenpm install
command with the--no-bin-links
switch enabled:npm install --no-bin-links
gulp
command in your terminal, as you will already have a Gulpfile.js
in your project root that will resemble the following:--production
flag to the command will instruct Elixir to minify your CSS and JavaScript files:gulp watch
command. This command will continue running in your terminal and watch your assets for any changes. When changes occur, new files will automatically be compiled or tested: