mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
a979efa6ef
* console: disable change schema dropdown * console: fix graphiql scroll for document title
26 lines
869 B
Makefile
26 lines
869 B
Makefile
export PATH := node_modules/.bin:$(PATH)
|
|
DIST_PATH = /console/static/dist
|
|
CONSOLE_PATH = /console
|
|
BUCKET_NAME = hasura-graphql-engine
|
|
|
|
all: deps build gcloud-cp-stable gcloud-set-metadata
|
|
|
|
deps:
|
|
npm install
|
|
|
|
build:
|
|
npm run build
|
|
|
|
test:
|
|
npm run test
|
|
|
|
gcloud-cp-stable:
|
|
gsutil cp -r $(DIST_PATH)/main.css/* gs://$BUCKET_NAME/console/${VERSION}/main.css
|
|
gsutil cp -r $(DIST_PATH)/main.js/* gs://$BUCKET_NAME/console/${VERSION}/main.js
|
|
gsutil cp -r $(DIST_PATH)/vendor.js/* gs://$BUCKET_NAME/console/${VERSION}/vendor.js
|
|
|
|
gcloud-set-metadata:
|
|
gsutil setmeta -h "Content-Type: application/javascript" gs:// + $(BUCKET_NAME) + '/console/' + ${VERSION} + '/*.js'
|
|
gsutil setmeta -h "Content-Type: text/css" gs:// + $(BUCKET_NAME) + '/console/' + $(VERSION) + '/*.css'
|
|
gsutil setmeta -h "Content-Encoding: gzip" gs:// + $(BUCKET_NAME) + '/console/' + $(VERSION) + '/*'
|