Small project to experiment with ES6 syntax, incl. Babel transpiler with Gulp. Also uses lightweight json-server API to fetch data. Aspects included are:
- Modules
- Local variable with
let
- Destructuring variable assignment
- Shorthand method syntax on objects
- Shorthand function syntax with rockets
- Template strings with interpolation
- Clone the repo
npm install -g gulp
to install Gulp globally.npm install -g json-server
to run the db.json for API emulationnpm install
to resolve project dependencies.
gulp
to transpile
gulp watch
to keep transpiler active
Does not contain code that requires a server to serve index.html
The project is currently setup to transpile code under the /src folder using the /src/app.js file as an entry point.