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

nbugs-component-tools-test

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nbugs-component-tools-test

## 安装

latest
npmnpm
Version
0.0.6
Version published
Weekly downloads
14
75%
Maintainers
1
Weekly downloads
 
Created
Source

nbugs 组件发布辅助工具

安装

yarn add --dev nbugs-component-tools

使用

package.json:

{
    "scripts":{
        "compile": "nbugs-component-tools build --autoUpdateVersion=C",
        "deploy": "npm run compile && npm publish",
    }
}

命令

build:

将./src 文件夹中的所有文件编译成可以发布到 npm 上,并且可以让别的项目引用的版本,输出目录为./build。

可选参数:

--autoUpdateVersion=version:“--autoUpdateVersion”命令意为自动更新 package.json 中的 version,值的可选项为“A”、“B”、“C”,对应版本中的 A.B.C,不填值或填错值时,默认为“C”。

clear:

删除 build 目录。

编译流程

  • 删除原本的输出文件夹(./build)
  • 复制 less 文件,并输出。
  • 将 jsx 或 js 转换为 es5,并输出。
  • 复制其他文件,并输出。

FAQs

Package last updated on 04 Jan 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