1.0.10 • Published 2 years ago
lien0103-vue-pkg v1.0.10
嘗試建立vue component package
參考資源:我的第一個 npm 套件:把 vue component 打包到 npm 吧
安裝&啟環境
yarn install
yarn serve
sh指令腳本
sh deploy.sh "commit 內容"
會執行下列的流程
set -e
npm run build
npm run build:doc
if [ "$1" != '' ]
then
git add .
git commit -m $1
git push
git commit -m 'rebuild pages' --allow-empty
npm publish
fi
if [$2 != '']
then
npm publish
fi
cd -
透過vue-cli啟開發環境
透過vue-cli打包成可發佈package
透過vue-cli打包出可預覽的demo頁面
github page https://lian0103.github.io/lien0103-vue-pkg/