npm scripts change

This commit is contained in:
jpellizzari
2017-01-24 17:41:41 -08:00
parent b3f3dc180e
commit 33844ca650
2 changed files with 2 additions and 2 deletions

View File

@@ -170,7 +170,7 @@ ui-upload: client/build-external/index.html
ui-build-pkg:
AWS_ACCESS_KEY_ID=$$UI_BUCKET_KEY_ID \
AWS_SECRET_ACCESS_KEY=$$UI_BUCKET_KEY_SECRET \
cd client && npm run build-pkg && aws s3 cp weave-scope.tgz s3://weaveworks-npm-modules/weave-scope/ --acl public-read
cd client && npm run build-pkg && npm run bundle && npm run s3-publish
clean:
$(GO) clean ./...

View File

@@ -91,7 +91,7 @@
"build": "webpack --config webpack.production.config.js",
"build-external": "EXTERNAL=true webpack --config webpack.production.config.js",
"build-pkg": "mkdir -p build-pkg && node node_modules/.bin/babel app/scripts --ignore __tests__ --out-dir build-pkg && cp package.json build-pkg/ && cp -R app/styles build-pkg/",
"bundle": "npm pack build-pkg && mv weave-scope-$npm_package_version.tgz weave-scope.tgz",
"bundle": "npm pack build-pkg --quiet && mv weave-scope-$npm_package_version.tgz weave-scope.tgz",
"start": "node server.js",
"start-production": "NODE_ENV=production node server.js",
"test": "jest",