diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-07-11 13:03:53 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-07-16 20:34:15 +0200 |
| commit | 6393f0fb92f901c6978a89f430c3aa9704a5452a (patch) | |
| tree | 3e5a7aba059ea32bdf5bd4f28d815aadccc0fa44 | |
| parent | 8e219adbcc3523badf5a0351ca4a8e91596b4114 (diff) | |
| download | mullvadvpn-6393f0fb92f901c6978a89f430c3aa9704a5452a.tar.xz mullvadvpn-6393f0fb92f901c6978a89f430c3aa9704a5452a.zip | |
Add private:format helper for prettier
| -rw-r--r-- | package.json | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/package.json b/package.json index 47b9d2c4ef..8f5455e0bc 100644 --- a/package.json +++ b/package.json @@ -73,8 +73,8 @@ "develop": "cross-env BABEL_ENV=electron npm run private:compile -- --source-maps true && run-p -r private:watch private:serve", "test": "cross-env BABEL_ENV=electron electron-mocha --renderer -R spec --require babel-core/register --require-main test/setup/main.js --preload test/setup/renderer.js test/*.spec.js test/**/*.spec.js", "lint": "eslint --no-ignore scripts app test *.js", - "format": "cross-env prettier --write 'app/**/*.js' 'test/**/*.js'", - "check-format": "cross-env prettier --list-different 'app/**/*.js' 'test/**/*.js'", + "format": "npm run private:format -- --write", + "check-format": "npm run private:format -- --list-different", "flow": "flow", "pack:mac": "cross-env BABEL_ENV=electron run-s private:clean private:compile private:build:mac && rm -r ./dist/mac", "pack:win": "cross-env BABEL_ENV=electron run-s private:clean private:compile private:build:win", @@ -86,6 +86,7 @@ "private:watch": "cross-env BABEL_ENV=electron npm run private:compile -- --source-maps true --watch --skip-initial-build", "private:serve": "cross-env BABEL_ENV=electron babel-node scripts/serve.js", "private:compile": "babel app/ --copy-files --out-dir build", - "private:clean": "rimraf build" + "private:clean": "rimraf build", + "private:format": "cross-env prettier 'app/**/*.js' 'test/**/*.js'" } } |
