|
6 | 6 | "main": "matreshka.js",
|
7 | 7 | "scripts": {
|
8 | 8 | "test": "npm run node-cover && npm run check-coverage && npm run lint",
|
9 |
| - "node-test": "babel-node test/node-test/jasmine.js", |
10 |
| - "node-cover": "babel-node node_modules/.bin/babel-istanbul cover test/node-test/jasmine.js && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", |
| 9 | + "node-test": "BABEL_ENV=test babel-node test/node-test/jasmine.js", |
| 10 | + "node-cover": "BABEL_ENV=test babel-node node_modules/.bin/babel-istanbul cover test/node-test/jasmine.js && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", |
11 | 11 | "check-coverage": "babel-istanbul check-coverage --lines 95",
|
12 | 12 | "develop": "CHROME_BIN=chromium-browser karma start test/karma-test/karma.conf.js",
|
13 |
| - "karma-test": "CHROME_BIN=chromium-browser karma start test/karma-test/karma.conf.js --single-run --no-auto-watch", |
| 13 | + "karma-test": "BABEL_ENV=test CHROME_BIN=chromium-browser karma start test/karma-test/karma.conf.js --single-run --no-auto-watch", |
14 | 14 | "karma-libraries-test": "npm run karma-test && npm run karma-test -- --dom-library=jquery-1 && npm run karma-test -- --dom-library=jquery-2 && npm run karma-test -- --dom-library=jquery-3 && npm run karma-test -- --dom-library=zepto",
|
15 | 15 | "watch": "webpack --config ./webpack.config.js --watch",
|
16 | 16 | "watch-browser-test": "webpack --config test/webpack-test.config.js --watch",
|
|
25 | 25 | "npm-deploy": "npm run npm-compile && npm run npm-deploy-setup && npm run npm-publish",
|
26 | 26 | "bundle": "webpack --config ./webpack.config.js",
|
27 | 27 | "deploy-to-git": "shx rm -rf bundle && deploy-to-git",
|
28 |
| - "bundle-browser-test": "webpack --config test/webpack-test.config.js", |
| 28 | + "bundle-browser-test": "BABEL_ENV=test webpack --config test/webpack-test.config.js", |
29 | 29 | "bundle-deploy-script": "npm run bundle && npm run bundle-browser-test",
|
30 | 30 | "upgrade": "ncu -u -a && yarn install"
|
31 | 31 | },
|
|
83 | 83 | "babel-loader": "^6.4.1",
|
84 | 84 | "babel-plugin-check-es2015-constants": "^6.22.0",
|
85 | 85 | "babel-plugin-nofn": "0.0.3",
|
| 86 | + "babel-plugin-transform-async-to-generator": "^6.24.1", |
86 | 87 | "babel-plugin-transform-es2015-arrow-functions": "^6.22.0",
|
87 | 88 | "babel-plugin-transform-es2015-block-scoping": "^6.24.1",
|
88 | 89 | "babel-plugin-transform-es2015-classes": "^6.24.1",
|
|
0 commit comments