Skip to content

Commit 0515b5c

Browse files
committed
add check task
1 parent 0958153 commit 0515b5c

File tree

3 files changed

+2784
-6
lines changed

3 files changed

+2784
-6
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
*.tgz
33
dist
44
node_modules
5-
pnpm-lock.yaml

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
"url": "https://github.com/Shuunen/vue-image-compare.git"
4141
},
4242
"scripts": {
43-
"build": "vite build && unique-mark dist/assets/index.*.js",
44-
"ci": "npm run build && npm run lint",
43+
"build": "vite build && unique-mark dist/assets/index.*.js && echo build success",
44+
"check": "pnpm install && echo install success && pnpm build && pnpm lint",
4545
"dev": "vite",
46-
"lint": "eslint --fix --ignore-path .gitignore --ext .js,.html,.vue .",
46+
"lint": "eslint --fix --ignore-path .gitignore --ext .js,.html,.vue . && echo lint success",
4747
"postversion": "git push && git push --tags && npm publish",
48-
"preversion": "npm run ci",
48+
"preversion": "pnpm check",
4949
"serve": "vite preview"
5050
},
5151
"version": "1.0.0"
52-
}
52+
}

0 commit comments

Comments
 (0)