Coder Social home page Coder Social logo

dumi-tpl's Introduction

基于 dumi+father-build 的组件库开发和文档模板

github

// 安装依赖,
$ npm i
// 查看文档 html
$ npm start
// 构建文档查阅html
$ npm run docs:build
// 测试
$ cd dumi-tpl
// 全局安装http-server
$ npm i -g http-server
$ http-server -p 3030
// 访问127.0.0.1:3030,进入dist/index.html即可
// 构建本地包,推送和更新前运行,最终在项目基本路径会找到dist三方包(组件库)
$ npm run lib:build
// 推送更新包
$ npm publish
// 业务使用
import DetailInfo from 'my-lib'

...
<DetailInfo />
...

注意事项

  1. 如果需要推送到 npm 或者私有 npm 域

修改 package.json 的 registry

 "publishConfig": {
        "registry": "https://your-publish-registry"
    },

github

dumi-tpl's People

Contributors

qld-cf avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.