https://github.com/tompascall/es6-mini-boilerplate
Mini boilerplate for ES6 features using babel, karma, mocha, chai, webpack, for practicing TDD.
https://github.com/tompascall/es6-mini-boilerplate
Last synced: about 2 months ago
JSON representation
Mini boilerplate for ES6 features using babel, karma, mocha, chai, webpack, for practicing TDD.
- Host: GitHub
- URL: https://github.com/tompascall/es6-mini-boilerplate
- Owner: tompascall
- Created: 2015-12-13T20:51:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-13T22:25:37.000Z (over 9 years ago)
- Last Synced: 2025-01-25T10:11:26.684Z (3 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
###Mini boilerplate for practicing ES6 features
This repo has been created for giving a really simple boilerplate in order to practice ES6 features. For now
it uses
- **Gulp** for task running,
- **Webpack** to handle your modules,
- **Karma** for running your tests,
- **Mocha** and **Chai** for your tests,
- **Babel** for transpiling your code,
- **ESLint** for linting your code,
- **PhantomJS** headless browser as an environment for the tests,
- **Sinon** as mocking framework.####Prerequisities
- Node installed globally
- Gulp installed globally####Using the boilerplate
Clone the repo and install the node packages (`npm install`).
After that you can test the framework by `gulp karma` (or `npm run test`).
#####Gulp Tasks
- the default task (`gulp`) runs linting, cleans everything from `dist` folder and transpliles your javascript files located in `src` folder and saves them into `dist` folder.
- `gulp karma`: runs your test in `test` folder once
- `gulp karma-watch`: runs your test in `test` folder, and after changing some file in `src` or `test` folder
runs the tests again.
- `gulp watch`: lints your files and watch their changes.You have to save your tests into `test` folder as `*.spec.js`.