1
0
forked from x/icebergs
icebergs/misc/node/vue.shy
2023-06-04 21:27:34 +08:00

49 lines
915 B
Plaintext

section "vue"
refer `
官网 https://vuejs.org/
源码 https://github.com/vuejs/vue
入门 https://vuejs.org/guide/quick-start.html
`
shell `
cnpm install -g @vue/cli
vue create demo && cd demo
vue serve
vue build
`
section "grpc"
shell `
cnpm i --save-dev grpc-web
cnpm i --save-dev google-protobuf
cnpm i -g protoc-gen-js protoc-gen-grpc-web
protoc --js_out=import_style=commonjs:./demo/src --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./demo/src ./idl/*.proto
`
section "axios"
refer `
官网 https://www.axios-http.cn
文档 https://www.axios-http.cn/docs/intro
源码 https://github.com/axios/axios
`
section "router"
refer `
https://router.vuejs.org/zh/guide/essentials/nested-routes.html
`
section "element"
refer `
https://element.eleme.cn/2.0/#/zh-CN/component/installation
`
shell `
npm install element-ui
`
field inner `
// main.js
import ElementUI from "element-ui"
Vue.use(ElementUI)
`