mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
f9e192535f
* refactor: replace yarn with pnpm * chore: install pnpm * chore: disable cache * ignore pnpm-lock.yaml * resolve deps * setup pnpm
44 lines
1022 B
Bash
Executable File
44 lines
1022 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
pnpm clean:lib
|
|
|
|
# build all packages in case of error
|
|
|
|
# build components
|
|
pnpm build:comps
|
|
rsync -a dist/types/components/ dist/element-plus/es/components/
|
|
rsync -a dist/types/components/ dist/element-plus/lib/components/
|
|
|
|
# build style
|
|
pnpm build:style
|
|
|
|
pnpm build:theme
|
|
pnpm build:locale
|
|
pnpm build:utils
|
|
pnpm build:hooks
|
|
pnpm build:directives
|
|
pnpm build:tokens
|
|
pnpm build:full-bundle
|
|
|
|
rsync -a dist/entry/types/ dist/element-plus/es/
|
|
rsync -a dist/entry/types/ dist/element-plus/lib/
|
|
|
|
pnpm build:helper
|
|
|
|
echo "copy index.css"
|
|
cp dist/element-plus/theme-chalk/index.css dist/element-plus/dist/index.css
|
|
cp -R dist/element-plus/theme-chalk/fonts dist/element-plus/dist/fonts
|
|
|
|
echo "syncing style.js"
|
|
rsync -a dist/styles/es/ dist/element-plus/es/components/
|
|
rsync -a dist/styles/lib/ dist/element-plus/lib/components/
|
|
|
|
echo "copying source code"
|
|
cp -R packages dist/element-plus
|
|
cp packages/element-plus/package.json dist/element-plus/package.json
|
|
|
|
echo "copying README"
|
|
cp README.md dist/element-plus
|