From 5e8bacca4ccafec740d75f6fd498312b7c2a4bb6 Mon Sep 17 00:00:00 2001 From: Tony Jin Date: Thu, 22 Feb 2018 16:37:16 -0800 Subject: [PATCH] Chore: Adding yarn install before common package.json scripts (#682) This helps make sure development environment is up to date. --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 98d49b3b9..4067d3fae 100644 --- a/package.json +++ b/package.json @@ -101,8 +101,8 @@ "ci": "yarn run clean && yarn run build-rb && yarn run lint && yarn run test && yarn run build-ci", "clean": "rm -rf dist && rm -rf reports/coverage && rm -rf src/i18n/json", "commitmsg": "commitlint -e", - "debug": "NODE_ENV=test ./node_modules/.bin/karma start build/karma.conf.js --no-single-run --auto-watch", - "dev": "BABEL_ENV=dev NODE_ENV=dev ./node_modules/.bin/webpack --progress --colors --config build/webpack.config.js", + "debug": "yarn install && NODE_ENV=test ./node_modules/.bin/karma start build/karma.conf.js --no-single-run --auto-watch", + "dev": "yarn install && BABEL_ENV=dev NODE_ENV=dev ./node_modules/.bin/webpack --progress --colors --config build/webpack.config.js", "functional-tests": "python -m SimpleHTTPServer 8000 & node ./node_modules/codeceptjs/bin/codecept.js run --verbose ; killall python -m SimpleHTTPServer 8000", "functional-tests-ci": "yarn run clean && yarn run build-rb && yarn run build-ci && node ./node_modules/codeceptjs/bin/codecept.js run --verbose --grep @ci", "lint": "NODE_ENV=dev ./node_modules/.bin/eslint src/lib && ./node_modules/.bin/stylelint 'src/lib/**/*.scss'", @@ -111,10 +111,10 @@ "prettier": "prettier-eslint \"src/lib/**/*.js\" --print-width 120 --single-quote --tab-width 4 --write", "prod": "yarn run build-rb && BABEL_ENV=production NODE_ENV=production node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js --progress --colors --config build/webpack.config.js", "release": "yarn run clean && yarn run build-rb && yarn run lint && yarn run test && yarn run prod", - "test": "NODE_ENV=test node --max_old_space_size=4096 ./node_modules/.bin/karma start build/karma.conf.js", + "test": "yarn install && NODE_ENV=test node --max_old_space_size=4096 ./node_modules/.bin/karma start build/karma.conf.js", "upgrade-pdfjs": "./build/upgrade_pdfjs.sh && ./build/minify_pdfjs.sh", "upgrade-annotations": "./build/upgrade_annotations.sh", - "watch": "BABEL_ENV=dev NODE_ENV=dev ./node_modules/.bin/webpack --watch --progress --colors --config build/webpack.config.js", + "watch": "yarn install && BABEL_ENV=dev NODE_ENV=dev ./node_modules/.bin/webpack --watch --progress --colors --config build/webpack.config.js", "major": "./build/release.sh -m", "minor": "./build/release.sh -n", "patch": "./build/release.sh -p"