🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

@ewtm/ewtm

Package Overview
Dependencies
Maintainers
5
Versions
188
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ewtm/ewtm

An ewtm component

latest
Source
npmnpm
Version
2.0.29
Version published
Maintainers
5
Created
Source

ewt 整包

Install

$ npm i @ewtm/ewtm

Usage

import {
  Icon,
  EmptyData,
} from '@ewtm/ewtm';
import '@ewtm/ewtm/dist/index.css';

按需加载

安装 babel-plugin-import 插件

npm install babel-plugin-import --save-dev

.babelrc 文件配置如下

{
  "plugins": [
    [ "import", {
        "libraryName": "@ewtm/ewtm"
      }
    ]
  ]
}

加入新组件流程

  • 复制模板组件 ./src/components/Template 并重名;
  • 更新 ./src/index.ts 加入该组件;
  • 更新 ./development/index.tsx 加入组件demo示例,开发、调试;
  • 调试结束后,执行 npm version patch 升级组件库版本;
  • 发布,执行命令 npm publish;

更新文档

  • 执行 npm run build:site;
  • 将生成的最新的 ./site 目录中的内容拷贝到文档站的 git 仓库 release 分支的 dist 目录下,文档站仓库地址是:ssh://git@git.mistong.com:10022/ewtm/mobile.git
  • 将文档站代码推到远端 git 仓库;
  • 前往发布平台搜索 mobile,发布 release 分支即可;

Keywords

react

FAQs

Package last updated on 03 Jan 2023

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