0.1.1 • Published 6 years ago
@hedait/kit v0.1.1
hedait-spa-base
目录介绍
- public
- src
- assets 资源文件
- common 公共部分,包括PC和移动端公共部分
- examples 部分示例
- mobile 移动端部分
- pc pc部分
- index.js
其他项目依赖
先进入hedait-spa-base后,把核心模块发布到本地的npm目录中
cd hedait-spa-base
npm link再进入项目,关联。
cd project
npm link hedait-spa-base至此,就可以通过如下代码引入到项目中,其中没有结构的是基础能力,通过解构引入的是UI部分。
import base from 'hedait-spa-base'
import {pc, mobile} from 'hedait-spa-base'
//全局注册全部组件
Vue.use(pc)
//某页面单独注册某个组件
let card = pc.card;
export default {
components:{
card
}
}Project setup
yarn installCompiles and hot-reloads for development
yarn serveCompiles and minifies for production
yarn buildLints and fixes files
yarn lint