Gulp test is replaced with mocha using npm-scripts

This commit is contained in:
Shaun Dern 2020-04-02 14:05:58 +01:00
parent 1edb52ee44
commit 337537a1cd
No known key found for this signature in database
GPG Key ID: 19E354FC9294F450
4 changed files with 2154 additions and 2502 deletions

View File

@ -1,3 +0,0 @@
{
"presets": ["es2015", "stage-2"]
}

16
babel.config.js Normal file
View File

@ -0,0 +1,16 @@
module.exports = (api) => {
api.cache(true)
return {
presets: [
[
'@babel/preset-env',
{
loose: true,
targets: {
browsers: ['last 2 versions', 'IE >= 9'],
},
},
],
],
}
}

View File

@ -21,9 +21,7 @@
],
"scripts": {
"dtslint": "dtslint --localTs node_modules/typescript/lib types",
"test": "gulp && yarn -s dtslint",
"test:watch": "gulp watch",
"prepublish": "gulp prepublish",
"test:mocha": "mocha --recursive --require \"@babel/register\" test",
"perf-server": "`npm bin`/webpack-dev-server --config perf/webpack.config.js --hot"
},
"license": "MIT",
@ -34,14 +32,17 @@
"lodash": "^4.2.0"
},
"devDependencies": {
"@babel/core": "^7.7.0",
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
"@babel/plugin-transform-react-jsx": "^7.7.0",
"@babel/plugin-transform-react-jsx-source": "^7.7.4",
"@babel/preset-env": "^7.7.1",
"@babel/register": "^7.7.0",
"@types/chai": "^4.1.7",
"@types/lodash": "^4.14.119",
"@types/mocha": "^7.0.1",
"@types/node": "^13.1.0",
"babel-core": "^6.4.0",
"babel-loader": "^6.2.1",
"babel-preset-es2015": "^6.3.13",
"babel-preset-stage-2": "^6.3.13",
"babel-loader": "^8.0.6",
"benchmark": "^2.1.4",
"chai": "^4.2.0",
"dtslint": "^2.0.0",
@ -51,25 +52,22 @@
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-prettier": "^2.0.1",
"exports-loader": "^0.7.0",
"gulp": "^3.6.0",
"gulp-babel": "^7.0.1",
"gulp-eslint": "^3.0.1",
"gulp-mocha": "^2.0.0",
"karma": "^4.3.0",
"karma-babel-preprocessor": "^7.0.0",
"karma-babel-preprocessor": "^8.0.1",
"karma-chrome-launcher": "^3.1.0",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.5",
"karma-phantomjs-launcher": "^1.0.4",
"karma-webpack": "^2.0.13",
"karma-webpack": "^4.0.2",
"mocha": "^7.0.0",
"phantomjs-prebuilt": "^2.1.14",
"prettier": "^1.1.0",
"rimraf": "^3.0.0",
"typescript": "^3.6.3",
"webpack": "^1.10.5",
"webpack": "^4.42.1",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.1.11",
"webpack-stream": "^2.1.0"
"webpack-stream": "^5.2.1"
},
"types": "types"
}

4609
yarn.lock

File diff suppressed because it is too large Load Diff