Makefile changes

This commit is contained in:
jpellizzari
2017-01-24 17:21:31 -08:00
parent a0b1aa12c0
commit b3f3dc180e
2 changed files with 4 additions and 2 deletions

View File

@@ -168,7 +168,9 @@ ui-upload: client/build-external/index.html
aws s3 cp client/build-external/ s3://static.weave.works/scope-ui/ --recursive --exclude '*.html'
ui-build-pkg:
cd client && npm run build-pkg && npm run s3-publish
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
clean:
$(GO) clean ./...

View File

@@ -90,7 +90,7 @@
"scripts": {
"build": "webpack --config webpack.production.config.js",
"build-external": "EXTERNAL=true webpack --config webpack.production.config.js",
"build-pkg": "babel app/scripts --ignore __tests__ --out-dir build-pkg && cp package.json build-pkg/ && cp -R app/styles build-pkg/",
"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",
"start": "node server.js",
"start-production": "NODE_ENV=production node server.js",