1.1.7 • Published 3 years ago
tophant-ui v1.1.7
@tophant/tophant-ui-ts
Project setup
npm installCompiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildRun your unit tests
npm run test:unitLints and fixes files
npm run lintCustomize 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"