1.1.7 • Published 2 years ago
tophant-ui v1.1.7
@tophant/tophant-ui-ts
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Run your unit tests
npm run test:unit
Lints and fixes files
npm run lint
Customize configuration
####发布 $npm publish --access public
安装和使用@tophant/tophant-ui-ts
安装nrm 管理registry
$ npm intall nrm -g --save
$ nrm add tcnpm http://10.0.80.63:4873/
$ nrm use cnpm
正常安装模块
$ npm install @tophant/tophant-ui-ts
使用
import { createApp } from 'vue';
import App from './App.vue';
import TophantUI from '@tophant/tophant-ui-ts';
import '@tophant/tophant-ui-ts/lib/tophant-ui.css';
createApp(App).use(TophantUI)
.mount('#app')
<t-button>按钮</t-button>
###配置eslint 勾子 yarn install lint-staged husky npx husky install 手动开启husky npx husky add .husky/pre-commit "yarn precommit"