Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jsor committed Mar 18, 2015
1 parent 70b3af2 commit 7962212
Show file tree
Hide file tree
Showing 36 changed files with 8,227 additions and 1,523 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ watch:
@NODE_ENV=production ./node_modules/.bin/webpack --watch

test:
@NODE_ENV=test ./node_modules/.bin/mocha -b --reporter $(MOCHA_REPORTER) --require ./test/_polyfills "$(MOCHA_FILES)"
@NODE_ENV=test ./node_modules/.bin/mocha -b --reporter $(MOCHA_REPORTER) --require ./es6-promise-polyfill "$(MOCHA_FILES)"

test-no-polyfills:
@NODE_ENV=test ./node_modules/.bin/mocha -b --reporter $(MOCHA_REPORTER) "$(MOCHA_FILES)"

test-cov:
@NODE_ENV=test ./node_modules/.bin/istanbul cover \
./node_modules/mocha/bin/_mocha --report html -- --reporter spec --require ./test/_polyfills "$(MOCHA_FILES)"
./node_modules/mocha/bin/_mocha --report html -- --reporter spec --require ./es6-promise-polyfill "$(MOCHA_FILES)"

travis:
@echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
@NODE_ENV=test ./node_modules/.bin/istanbul cover \
./node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --require ./test/_polyfills "$(MOCHA_FILES)" && \
./node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --require ./es6-promise-polyfill "$(MOCHA_FILES)" && \
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

.PHONY: dist watch test test-no-polyfills test-cov travis
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ support the required features.
You may use ES5 polyfills for the following features (if you have to support
browsers like IE8 for example):

* [`Object.keys`](http://kangax.github.io/compat-table/es5/#Object.keys)
* [`Array.isArray`](http://kangax.github.io/compat-table/es5/#Array.isArray)
* [`Array.prototype.every`](http://kangax.github.io/compat-table/es5/#Array.prototype.every)
* [`Array.prototype.forEach`](http://kangax.github.io/compat-table/es5/#Array.prototype.forEach)
* [`Array.prototype.map`](http://kangax.github.io/compat-table/es5/#Array.prototype.map)
* [`Function.prototype.bind`](http://kangax.github.io/compat-table/es5/#Function.prototype.bind)
* [`Object.keys`](http://kangax.github.io/compat-table/es5/#Object.keys)

You can use [es5-shim](https://github.com/es-shims/es5-shim) which provides the
required polyfills.
Expand Down
Loading

0 comments on commit 7962212

Please sign in to comment.