1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-10 08:15:25 +02:00

refactor(build-system): clarify build system usage through yarn (#3140)

* refactor(build-system): clarify build system usage through yarn

* refactor(build-system): rename azure devops build scripts
This commit is contained in:
Anthony Lapenna 2019-09-09 12:40:22 +12:00 committed by GitHub
parent 849ff8cf9b
commit 2b48f1e49a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 87 additions and 82 deletions

View file

@ -20,13 +20,25 @@
}
],
"scripts": {
"start": "grunt run-dev",
"start:client": "webpack-dev-server",
"start:server": "yarn build:server:offline && grunt shell:run:amd64",
"clean:all": "grunt clean:all",
"build": "NODE_ENV=production grunt build",
"build": "grunt clean:all && grunt build",
"build:server": "grunt clean:server && grunt build:server",
"build:client": "grunt clean:client && grunt build:client",
"clean": "grunt clean:all",
"start": "grunt clean:all && grunt start",
"start:server": "grunt clean:server && grunt start:server",
"start:client": "grunt clean:client && grunt start:client",
"build:server:offline": "cd ./api/cmd/portainer && CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags '-s' && mv -f portainer ../../../dist/portainer",
"build:client": "NODE_ENV=production grunt build-webapp"
"clean:all": "grunt clean:all"
},
"scriptsComments": {
"build": "Build the entire app (backend/frontend) in development mode",
"build:server": "Build the backend",
"build:client": "Build the frontend (development mode)",
"clean": "Clean the entire dist folder",
"start": "Build the entire app (backend/frontend) in development mode, run it inside a container locally and start a watch process for the frontend files",
"start:server": "Build the backend and run it inside a container",
"clean:all": "Deprecated. Use the clean script instead",
"build:server:offline": "Deprecated. Use the build:server script instead"
},
"engines": {
"node": ">= 0.8.4"