Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tompascall/advent-of-code-es6-tdd
Playing with es6 features using tdd.
https://github.com/tompascall/advent-of-code-es6-tdd
Last synced: about 1 month ago
JSON representation
Playing with es6 features using tdd.
- Host: GitHub
- URL: https://github.com/tompascall/advent-of-code-es6-tdd
- Owner: tompascall
- Created: 2015-12-06T21:45:13.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-03T10:16:25.000Z (almost 9 years ago)
- Last Synced: 2023-08-28T06:21:22.472Z (over 1 year ago)
- Language: JavaScript
- Size: 101 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# advent-of-code-es6-tdd
In this project we solve some of the [advent of code](http://adventofcode.com) puzzles, using es6 features and tdd approach.
###Solutions
The solutions are in the `src` library. You can show them by running `babel-node src/` from the project library.
###Prerequisites
Clone the project and **install the npm packages** (via `npm install`).
You need to install globally
- Node
- Gulp
- babel-node###Tests
After installation you can test the modules by `gulp karma` (or `npm run test`).
###Development
We use
- **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.####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`.