|
|
|
@ -6,9 +6,13 @@
@@ -6,9 +6,13 @@
|
|
|
|
|
"scripts": { |
|
|
|
|
"start": "node scripts/server.js", |
|
|
|
|
"build": "webpack --config scripts/webpack.config.prod.js", |
|
|
|
|
"prepublishOnly": "npm run build", |
|
|
|
|
"test": "npm run test:node", |
|
|
|
|
"wait": "wait-on http://localhost:3000/package.json", |
|
|
|
|
"test": "npm-run-all -p -r start test:all", |
|
|
|
|
"test:all": "npm-run-all wait test:browser:* test:node", |
|
|
|
|
"test:node": "nyc mocha --exit --bail --require ./scripts/test-helper.js ./tests/*.test.js", |
|
|
|
|
"test:browser-tpl": "mocha-headless-chrome -a incognito -a no-sandbox -a disable-setuid-sandbox -t 300000", |
|
|
|
|
"test:browser:detect": "npm run test:browser-tpl -- -f ./tests/browser/detect.test.html", |
|
|
|
|
"test:browser:recognize": "npm run test:browser-tpl -- -f ./tests/browser/recognize.test.html", |
|
|
|
|
"lint": "eslint src" |
|
|
|
|
}, |
|
|
|
|
"browser": { |
|
|
|
@ -20,6 +24,7 @@
@@ -20,6 +24,7 @@
|
|
|
|
|
], |
|
|
|
|
"license": "Apache-2.0", |
|
|
|
|
"devDependencies": { |
|
|
|
|
"cors": "^2.8.5", |
|
|
|
|
"eslint": "^5.9.0", |
|
|
|
|
"eslint-config-airbnb": "^17.1.0", |
|
|
|
|
"eslint-plugin-import": "^2.14.0", |
|
|
|
@ -28,7 +33,10 @@
@@ -28,7 +33,10 @@
|
|
|
|
|
"expect.js": "^0.3.1", |
|
|
|
|
"express": "^4.16.4", |
|
|
|
|
"mocha": "^5.2.0", |
|
|
|
|
"mocha-headless-chrome": "^2.0.2", |
|
|
|
|
"npm-run-all": "^4.1.5", |
|
|
|
|
"nyc": "^13.1.0", |
|
|
|
|
"wait-on": "^3.2.0", |
|
|
|
|
"webpack": "^4.26.0", |
|
|
|
|
"webpack-cli": "^3.1.2", |
|
|
|
|
"webpack-dev-middleware": "^3.4.0" |
|
|
|
|