diff --git a/package.json b/package.json index 3548a66..a03ca2b 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,10 @@ "scripts": { "eslint": "eslint lib/{compile/,}*.js spec/{**/,}*.js scripts --ignore-pattern spec/JSON-Schema-Test-Suite", "jshint": "jshint lib/{compile/,}*.js", + "lint": "npm run jshint && npm run eslint", "test-spec": "mocha spec/{**/,}*.spec.js -R spec", "test-fast": "AJV_FAST_TEST=true npm run test-spec", - "test-debug": "mocha spec/*.spec.js --debug-brk -R spec", + "test-debug": "npm run test-spec -- --inspect-brk", "test-cov": "nyc npm run test-spec", "test-ts": "tsc --target ES5 --noImplicitAny --noEmit spec/typescript/index.ts", "bundle": "del-cli dist && node ./scripts/bundle.js . Ajv pure_getters", @@ -24,7 +25,8 @@ "build": "del-cli lib/dotjs/*.js '!lib/dotjs/index.js' && node scripts/compile-dots.js", "test-karma": "karma start", "test-browser": "del-cli .browser && npm run bundle && scripts/prepare-tests && npm run test-karma", - "test": "npm run jshint && npm run eslint && npm run test-ts && npm run build && npm run test-cov && if-node-version 10 npm run test-browser", + "test-all": "npm run test-ts && npm run test-cov && if-node-version 10 npm run test-browser", + "test": "npm run lint && npm run build && npm run test-all", "prepublish": "npm run build && npm run bundle", "watch": "watch 'npm run build' ./lib/dot" },