🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

cfship

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cfship

[![Build Status](https://api.travis-ci.com/yanyunchangfeng/cfship.svg?branch=master&status=passed)](https://travis-ci.com/yanyunchangfeng/cfship)

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
1
-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

cfship component library

使用 React+typescript 从零到一打造一套你自己的组件库

Build Status

安装最后已经发布的组件库来试试

npm install cfship --save

使用

// 加载样式
import 'cfship/dist/index.css'
// 引入组件
import { Button } from 'cfship'

流程

  • 🔥typescript with React Hooks
  • ⛑️使用 react-testing-library 完成单元测试
  • 📚使用 storybook 本地调试和生成文档页面
  • 🌹样式(Sass)文件从零开始,大型应用的 CSS 组织方法
  • 🎉涉及全部流程,包括最后的 npm publish,husky提交发布前验证,travis CI/CD 集成,发布文档站点等

发布的组件预览站点

github page cfship

一些本地开发命令

//启动本地环境
npm run stroybook

//跑单元测试
npm test

//build可发布静态文件
npm run builds

//发布到 npm
npm run publish

Keywords

Component

FAQs

Package last updated on 17 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts