This is an example of how you can integrate Gulp, Rollup and Babel into your Fuse workflow, allowing you to use ES2015 features (and more!) in your Fuse app.
- Install Node.js and npm if you haven't already.
- Install gulp globally:
npm install -g gulp - Clone this repo:
git clone https://github.com/sebbert/fuse-gulp-babel.git - Inside the project folder, run
npm installto fetch dependencies.
Run gulp watch to watch for changes to files in the js folder.
When a change occurs, rollup and babel will run, and your transpiled, concatenated JS file will end up as js-build/app.js. This will in turn trigger an update in the Fuse preview simulator if it's running.
The entry point is js/app.js, which means that only this file will be able to export objects to fuse.