All Projects → youzan → zent-kit

youzan / zent-kit

Licence: MIT License
[DEPRACATED] React 组件库开发脚手架

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to zent-kit

Rebar3
Erlang build tool that makes it easy to compile and test Erlang applications and releases.
Stars: ✭ 1,295 (+4525%)
Mutual labels:  build, test
Gogradle
A Gradle Plugin Providing Full Support for Go
Stars: ✭ 712 (+2442.86%)
Mutual labels:  build, test
Bazel
a fast, scalable, multi-language and extensible build system
Stars: ✭ 17,790 (+63435.71%)
Mutual labels:  build, test
unity-test-runner
Run tests for any Unity project
Stars: ✭ 134 (+378.57%)
Mutual labels:  build, test
Go Plus
An Enhanced Go Experience For The Atom Editor
Stars: ✭ 1,519 (+5325%)
Mutual labels:  build, test
Packcheck
Universal build and CI testing for Haskell packages
Stars: ✭ 91 (+225%)
Mutual labels:  build, test
Unity Actions
Github actions for testing and building Unity projects
Stars: ✭ 358 (+1178.57%)
Mutual labels:  build, test
Zb
an opinionated repo based tool for linting, testing and building go source
Stars: ✭ 111 (+296.43%)
Mutual labels:  build, test
Buildbuddy
BuildBuddy is an open source Bazel build event viewer, result store, and remote cache.
Stars: ✭ 182 (+550%)
Mutual labels:  build, test
drevops
💧 + 🐳 + ✓✓✓ + 🤖 + ❤️ Build, Test, Deploy scripts for Drupal using Docker and CI/CD
Stars: ✭ 55 (+96.43%)
Mutual labels:  build, test
expectest
Crate provides matchers and matcher functions for unit testing.
Stars: ✭ 25 (-10.71%)
Mutual labels:  test
debug.js
Debugger of JavaScript, by JavaScript, for JavaScript
Stars: ✭ 19 (-32.14%)
Mutual labels:  test
twilio mock
Mock Twilio gem for Ruby
Stars: ✭ 26 (-7.14%)
Mutual labels:  test
brutal
A code-first approach to automate the writing of unit tests.
Stars: ✭ 54 (+92.86%)
Mutual labels:  test
tracecode-toolkit-strace
Trace software components, packages and files between Development/Source and Deployment/Distribution/Binaries codebases - strace build analysis
Stars: ✭ 21 (-25%)
Mutual labels:  build
google-datastore-emulator
Google Datastore Emulator wrapper to nodejs
Stars: ✭ 17 (-39.29%)
Mutual labels:  test
freedom-middleware-webpack2
webpack2前端项目开发构建中间件,方便统一管理前端项目中95%以上的构建工作
Stars: ✭ 35 (+25%)
Mutual labels:  build
rasa-train-test-gha
A GitHub action to run easily rasa train and rasa test in the CIs.
Stars: ✭ 26 (-7.14%)
Mutual labels:  test
airin
A framework for automated migration of your projects to Bazel build system.
Stars: ✭ 21 (-25%)
Mutual labels:  build
ngx-zombie-compiler
Fast JiT compiler for Angular testing
Stars: ✭ 15 (-46.43%)
Mutual labels:  test

[DEPRECATED]zent-kit

zent-kit is no longer supported, please consider other tools. zent-kit 不维护了,请使用别的工具。

组件库开发脚手架

NPM

Install

npm install zent-kit -g

初始化组件

zent-kit init <your component name>

初始化一个组件目录,组件的模版从zent-seed下载。

开发模式

zent-kit dev

创建一个本地服务器,同时watch本地代码修改。

测试

zent-kit test

集成了Jest测试框架,用来跑组件的单元测试。

打包

zent-kit prepublish

打包src目录下的文件,babel转码的文件会输出到lib目录下,同时dist目录下会生成一个包含所有代码的UMD模块文件。

File Structure

// 源文件(由开发者编写)
-- src
    // 组件源文件目录
-- assets
    // sass源文件目录
-- examples
    // demo文件目录
-- package.json

// 生成文件(由zent-kit生成)
-- README.md
    // 由package.json和src下文件生成
-- lib
    // 经过babel转码的组件文件以及编译过的css
-- dist
    // 经过webpack打包的,符合UMD规范的组件文件

Style

  • 考虑到让用户更加容易自定义样式,尽量不要在组件源文件当中import样式文件,应该在examples目录下的文件中进行import
  • 用户如果需要使用组件样式,可以直接引入我们在assets文件夹下的sass源文件,或者lib文件夹下编译完成的css文件

README

README文件的规范包含:

-- 描述
    // 必选项:简单描述包特性(写在package.json中)
-- 使用场景
    // 可选项:简单描述组件场景(写在src下文件中)
-- tips
    // 可选项:一些简单的设计思想的描述,或者特殊接口的介绍(写在src下文件中)
-- API
    // 必选项:介绍本组件的使用方式(写在src下文件中)

package.json

如果不使用zent-kit init,自行编写的package.json需参考以下代码

{
  ...
  "name": "组件名称",
  "description": "这是一个React组件的描述",
  "main": "./lib/index.js",
  "scripts": {
    "dev": "zent-kit dev",
    "lint": "eslint ./src",
    "prepublish": "npm run lint && zent-kit prepublish"
  },
  "files": [
    "src/",
    "assets/",
    "examples/",
    "lib/",
    "dist/"
  ],
  "dependencies": {
      ...
  },
  "devDependencies": {
      ...
  }
  ...
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].