mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
chore(): sync GitHub Actions with main
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
"description": "Vue specific wrapper for @ionic/core",
|
||||
"scripts": {
|
||||
"lint": "echo add linter",
|
||||
"lint.fix": "npm run lint -- --fix",
|
||||
"test": "jest",
|
||||
"build": "npm run clean && npm run copy && npm run copy.overlays && npm run compile && npm run bundle && npm run build.vetur && npm run build.web-types",
|
||||
"bundle": "rollup --config rollup.config.js",
|
||||
@ -13,7 +14,8 @@
|
||||
"build.web-types": "node ./scripts/build-web-types.js",
|
||||
"build.vetur": "node ./scripts/build-vetur.js",
|
||||
"copy": "node ./scripts/copy-css.js",
|
||||
"copy.overlays": "node ./scripts/copy-overlays.js"
|
||||
"copy.overlays": "node ./scripts/copy-overlays.js",
|
||||
"sync": "sh ./scripts/sync.sh"
|
||||
},
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.esm.js",
|
||||
|
9
packages/vue/scripts/sync.sh
Normal file
9
packages/vue/scripts/sync.sh
Normal file
@ -0,0 +1,9 @@
|
||||
# Copy core dist
|
||||
rm -rf node_modules/@ionic/core/dist node_modules/@ionic/core/loader
|
||||
cp -a ../../core/dist node_modules/@ionic/core/dist
|
||||
cp -a ../../core/loader node_modules/@ionic/core/loader
|
||||
cp -a ../../core/package.json node_modules/@ionic/core/package.json
|
||||
|
||||
# Copy ionicons
|
||||
rm -rf node_modules/ionicons
|
||||
cp -a ../../core/node_modules/ionicons node_modules/ionicons
|
@ -3,10 +3,10 @@
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"start": "npm run sync && vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
"test:unit": "vue-cli-service test:unit",
|
||||
"test:e2e": "concurrently \"npm run serve\" \"wait-on http-get://localhost:8080 && npm run cypress\" --kill-others --success first",
|
||||
"test:e2e": "concurrently \"npm run start\" \"wait-on http-get://localhost:8080 && npm run cypress\" --kill-others --success first",
|
||||
"lint": "vue-cli-service lint",
|
||||
"cypress": "node_modules/.bin/cypress run --headless --browser chrome",
|
||||
"sync": "sh ./scripts/sync.sh"
|
||||
|
Reference in New Issue
Block a user