This starter gives you everything you need to get started with Enonic and Gulp.
Use Enonic's toolbox.sh init-project
script to initialize your project:
./path/to/toolbox.sh init-project -n com.example.MyApp -r https://github.com/selbekk/starter-gulp.git
As a matter of convention, this starter interfaces all tasks through npm scripts. The ones set up for you are:
npm run build # Runs your gradle build, which in turn runs gulp
npm run deploy # Deploys application to your local installation
npm run watch # Continuously builds and deploys your application
Since I don't what tools you want to use, I've provided a pretty bare-bones
gulpfile
. Set it up as you see fit, with browserify,
SCSS or whatever else you want.
Have a look at gulpfile.babel.js for what's supplied by default.
Note that the Gulpfile is written in ES2015 - the newest version of JavaScript.