Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

antd-test-demo

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antd-test-demo

latest
npmnpm
Version
1.2.3
Version published
Weekly downloads
6
200%
Maintainers
1
Weekly downloads
 
Created
Source

create-react-ts-webpack-npm-package

使用 webpack 打包 react+typescript 的 npm 包

特性

  • 使用 typescript 进行开发
  • 使用 postcss 同时兼容 less scss 处理
  • 使用 prettier 统一格式化代码
  • 采用 webapck 构建
  • 使用 precommit 钩子自动 Lint、格式化代码

构建与发布说明

安装

进入到项目根目录,安装依赖。(自动安装子项目依赖)

yarn install

开发

yarn start

发布

  • 首先打包
yarn build
  • 构建且发布到 npm 镜像
yarn publish

开发说明

  • index.tsx 文件可以作为发布的出口,注意发布时要注释掉 render 部分, render 部分只作为开发时的依赖

參考

  • 从零开始配置 react + typescript(三):webpack

FAQs

Package last updated on 17 Aug 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