Boilerplate for D3 projects with Javascript ES6.
- Automates building and actions using Gulp
- Manages Browser Javascript using Bower
- Transpiles ES6+ automagically using Babel and uses sourcemap to better debug code.
- Local dev server with BrowserSync
- Compress assets for production with Uglify
- Lints your code using ESLint (Airbnb code style)
- Get environment development or production with the JS variable
ENV
- Use Bower to get vendors Javascript libraries and combine them (here D3)
- NodeJs, type
npm -v
on your terminal to check if you have it. - Gulp
npm install -g gulp
- Bower
npm install -g bower
- Run
npm install
to install dependencies - Run
bower install
to download Browser Javacript libraries - Run
gulp
to start the local dev environment onhttp://localhost:5000
- To have production ready files, run:
gulp dist
. All built files are located in the folder/build/
- Enjoy 🍻
If you like this/find it useful/find a bug please open an issue and, better yet, submit a Pull Request!
Any and all help appreciated, thanks!