mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
refactor: update package path and bundle folder (#3016)
This commit is contained in:
@@ -63,7 +63,7 @@ EOF
|
||||
cat > $DIRNAME/package.json <<EOF
|
||||
{
|
||||
"name": "@element-plus/$INPUT_NAME",
|
||||
"version": "0.0.0",
|
||||
"version": "0.0.1",
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
||||
47
scripts/monorepo.sh
Normal file
47
scripts/monorepo.sh
Normal file
@@ -0,0 +1,47 @@
|
||||
#! /usr/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
yarn bootstrap
|
||||
yarn clean:lib
|
||||
yarn update:version
|
||||
yarn gen:version
|
||||
|
||||
# build all packages in case of error
|
||||
|
||||
yarn build:comps
|
||||
rsync -a dist/types/components/ dist/element-plus/es/components/
|
||||
rsync -a dist/types/components/ dist/element-plus/lib/components/
|
||||
|
||||
yarn build:style
|
||||
|
||||
yarn build:theme
|
||||
yarn build:locale
|
||||
yarn build:utils
|
||||
yarn build:hooks
|
||||
yarn build:directives
|
||||
yarn build:tokens
|
||||
yarn build:full-bundle
|
||||
|
||||
rsync -a dist/entry/types/ dist/element-plus/es/
|
||||
rsync -a dist/entry/types/ dist/element-plus/lib/
|
||||
|
||||
yarn 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/
|
||||
|
||||
cp -R packages dist/element-plus
|
||||
cp packages/element-plus/package.json dist/element-plus/package.json
|
||||
|
||||
|
||||
cd dist/element-plus
|
||||
npm publish --access public
|
||||
cd -
|
||||
|
||||
echo "Publish completed"
|
||||
Reference in New Issue
Block a user