Code Monkey home page Code Monkey logo

kisbu's Introduction

[toc]

KISBU

业务组件库

安装

如何使用KISBU开发新的kis业务项目?

npm init -y

npm install @kis/cli --save-dev

@kis/cli create app my-project-name

使用

开发

如何在KISBU中开发新的业务组件?

npm link

# 创建新的业务组件
kis-bu create new-business-component-name

# 开发项目预览
kis-bu serve

# 打包项目
kis-bu build
# 查看kis-bu命令行帮助
kis-bu -h, kis-bu --help

命令行

serve

运行本地开发环境。

运行 serve 命令时,kis-bu 会通过 webpack-dev-server 启动一个本地服务器,用于在开发过程中对文档和示例进行预览。

配置指南

kisbu.config.js

kisbu.config.js中包含了 打包配置文档站点配置 ,请创建此文件并置于项目根目录下(kisbu-cli将以此文件所在目录作为根目录)。示例如下:

Webpack

通过根目录下的webpack.config.js文件可以修改webpack配置,配置内容会通过webpack-merge合并到最终配置中。

Babel

通过根目录下的babel.config.js文件可以对Bable进行配置。

Postcss

通过根目录下的postcss.config.js文件可以对Postcss进行配置

kisbu默认配置

module.exports = {
  plugins: {
    autoprefixer: {},
  }
}

功能支持

  • 【组件库】支持组件打包
  • 【文档】支持Web端浏览文档
  • 【文档】支持Web端浏览移动端模拟

kisbu's People

Contributors

schultzli avatar

Watchers

 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.