Browse Source

Separate source and example linting

Garrett Johnson 6 years ago
parent
commit
08d5ffb17f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      package.json

+ 3 - 1
package.json

@@ -50,7 +50,9 @@
     "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"http-server -c-1 -p 8080\"",
     "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"http-server -c-1 -p 8080\"",
     "dev-test": "concurrently --names \"ROLLUP,ROLLUPTEST,HTTP\" -c \"bgBlue.bold,bgRed.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"rollup -c test/rollup.unit.config.js -w -m inline\" \"http-server -p 8080\"",
     "dev-test": "concurrently --names \"ROLLUP,ROLLUPTEST,HTTP\" -c \"bgBlue.bold,bgRed.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"rollup -c test/rollup.unit.config.js -w -m inline\" \"http-server -p 8080\"",
     "start": "npm run dev",
     "start": "npm run dev",
-    "lint": "eslint src --ext js --ext ts && tsc src/Three.d.ts --noEmit && eslint examples/js --ext js --ext ts --ignore-pattern libs && tsc examples/js",
+    "lint": "npm run lint-source && npm run lint-examples",
+    "lint-source": "eslint src --ext js --ext ts && tsc src/Three.d.ts --noEmit",
+    "lint-examples": "eslint examples/js --ext js --ext ts --ignore-pattern libs && tsc examples/js",
     "test": "npm run build-test && qunit -r failonlyreporter test/unit/three.source.unit.js",
     "test": "npm run build-test && qunit -r failonlyreporter test/unit/three.source.unit.js",
     "travis": "npm run lint && npm test"
     "travis": "npm run lint && npm test"
   },
   },