Gulpfile.jsconfiguration 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 executes
resources/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.jsoninto source control.
package.jsonfile in the root of the application already. Think of this like your
box.jsonfile, except it defines Node dependencies instead of ColdFusion (CFML) dependencies. A typical example can look like this:
node_modulesfolder in your root. This folder has been already added to the
.gitignorefile 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 the
npm installcommand with the
npm install --no-bin-links
gulpcommand in your terminal, as you will already have a
Gulpfile.jsin your project root that will resemble the following:
gulp watchcommand. 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: