mirror of
https://git.unlock-music.dev/um/web.git
synced 2025-05-10 00:03:26 +00:00
ci: simplify build command
This commit is contained in:
parent
1676f9f095
commit
25aec6b199
@ -32,14 +32,8 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: npm test
|
run: npm test
|
||||||
|
|
||||||
- name: Build legacy
|
- name: Build all variants
|
||||||
run: ./scripts/build-and-package.sh legacy
|
run: npm run build:all
|
||||||
|
|
||||||
- name: Build extension
|
|
||||||
run: ./scripts/build-and-package.sh extension
|
|
||||||
|
|
||||||
- name: Build modern
|
|
||||||
run: ./scripts/build-and-package.sh modern
|
|
||||||
|
|
||||||
- name: Publish artifact
|
- name: Publish artifact
|
||||||
uses: christopherhx/gitea-upload-artifact@v4
|
uses: christopherhx/gitea-upload-artifact@v4
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
"postinstall": "patch-package",
|
"postinstall": "patch-package",
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
|
"build:all": "./scripts/build-and-package.sh --all",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"pretty": "prettier --write src/{**/*,*}.{js,ts,jsx,tsx,vue}",
|
"pretty": "prettier --write src/{**/*,*}.{js,ts,jsx,tsx,vue}",
|
||||||
"pretty:check": "prettier --check src/{**/*,*}.{js,ts,jsx,tsx,vue}",
|
"pretty:check": "prettier --check src/{**/*,*}.{js,ts,jsx,tsx,vue}",
|
||||||
@ -57,4 +58,4 @@
|
|||||||
"vue-cli-plugin-element": "^1.0.1",
|
"vue-cli-plugin-element": "^1.0.1",
|
||||||
"vue-template-compiler": "^2.6.14"
|
"vue-template-compiler": "^2.6.14"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -11,6 +11,12 @@ case "$1" in
|
|||||||
"modern") npm run build -- --modern ;;
|
"modern") npm run build -- --modern ;;
|
||||||
"legacy") npm run build ;;
|
"legacy") npm run build ;;
|
||||||
"extension") npm run make-extension ;;
|
"extension") npm run make-extension ;;
|
||||||
|
"--all")
|
||||||
|
"$0" legacy
|
||||||
|
"$0" extension
|
||||||
|
"$0" modern
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Unknown command: $1"
|
echo "Unknown command: $1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user