From 6425ef42610bd8a1476cdeb041ab0f042d655cb9 Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Wed, 30 Mar 2016 14:07:16 -0700 Subject: [PATCH] restrict mocha scope to /spec; break out link tasks --- package.json | 13 +++++-------- spec/package.json | 5 +++++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 29085205956f..4b4691abb3ba 100644 --- a/package.json +++ b/package.json @@ -11,21 +11,18 @@ }, "standard": { "ignore": [ + "/out", + "/spec", "/vendor" - ], - "env": { - "mocha": true - }, - "globals": [ - "$", - "location" ] }, "private": true, "scripts": { "bootstrap": "python ./script/bootstrap.py", "build": "python ./script/build.py -c D", - "lint": "standard && python ./script/cpplint.py", + "lint": "npm run lint-js && npm run lint-cpp", + "lint-js": "standard && standard spec", + "lint-cpp": "python ./script/cpplint.py", "preinstall": "node -e 'process.exit(0)'", "repl": "python ./script/start.py --interactive", "start": "python ./script/start.py", diff --git a/spec/package.json b/spec/package.json index 6d49f0da8b8a..a6ca81c5ee98 100644 --- a/spec/package.json +++ b/spec/package.json @@ -18,5 +18,10 @@ "optionalDependencies": { "ffi": "2.0.0", "runas": "3.x" + }, + "standard": { + "env": { + "mocha": true + } } }