vue-fistnpm
v2.0.5
Published
A Vue component for select Taiwan county, city and zipcode.
Downloads
4
Readme
vue-fistnpm
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Customize configuration
package.json
"version": "2.0.2",//版本號 "main": "dist/vue-hello.common.js", //npm install 引入後位置 等同 --name vue-hello "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build --target lib --name vue-hello ./src/components/index.js", "build:doc": "vue-cli-service build ./src/main.js --dest docs --mode development" //沒用到OuO },
流程
npm adduser // 新增使用者 npm run build // 重新打包專案 npm publish //發佈到npm上
引入的專案的main.js
import First from 'vue-fistnpm' Vue.use(First)