Skip to content

Commit

Permalink
打包
Browse files Browse the repository at this point in the history
  • Loading branch information
biaov committed Oct 11, 2023
1 parent e1ac6f6 commit d7ce35d
Show file tree
Hide file tree
Showing 5 changed files with 268 additions and 30 deletions.
264 changes: 264 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"scripts": {
"start": "npm run dev",
"dev": "node scripts/dev",
"build": "node scripts/build",
"build": "vite build && node scripts/build",
"prettier": "prettier --write '**/*.{js,ts,md,json}'",
"ncu": "ncu --configFileName .ncurc.json && npm i",
"pre-publish": "start cmd /k cd ./dist"
Expand Down
3 changes: 1 addition & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { createViteBuild, rewritePackage, copyAssets } from './hooks.js'
import { rewritePackage, copyAssets } from './hooks.js'

!(async () => {
try {
await createViteBuild()
await rewritePackage()
await copyAssets()
} catch (e) {
Expand Down
Loading

0 comments on commit d7ce35d

Please sign in to comment.