open-index/open-npm huggingface dataset:
npm package: @lugia/libs-example
Description: This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
Latest version: 1.2.10

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br>
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.<br>
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.<br>
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br>
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).
npm package: @lugia/lugia-complie
Description: lugia-compile 命令工具
Latest version: 1.0.6

lugia-compile 命令工具



## usage

### 静态检查 lint
```json
lugia-compile lint
```

使用正则
```json
"lugia-compile lint src/lib/*.js src/test/*.js
```

使用环境变量
```js
process.env.LINS = ['src/lib/*.js', 'src/test/*.js'];
```
package.json
```json
lugia-compile lint
```

### 单元测试 test
** lugia-compile test [test_file]
```
lugia-compile test
```

使用正则
```json
运行test目录下以.test.js命名结尾的用例
lugia-compile test test/**/*.test.js"
}
```

```json
"scripts": {
    "test": "lugia-compile test test/**/b.js test/**/a.js"
}
```

使用环境变量
```js
process.env.TESTS = ['test/*.js', 'test/**/*.test.js'];
```


### 代码覆盖率 cov
package.json
```
"scripts": {
    "lint": "lugia-compile cov"
}
```


### 清理 clean

** clean 清理构建目标目录

package.json
```json
"scripts": {
    "clean": "lugia-compile clean",
    ...
}
```

### 构建 build

** build 编译，将源码代码编译到目标目录

package.json
```json
"scripts": {
    "build": "lugia-compile build",
    ...
}
```



### 开发套餐 dev

** dev 监听源码变更自动编译

package.json
```json
"scripts": {
    "dev": "lugia-compile dev"
    ...
}
```


### 发布 publish
以初始版本号为1.1.1为例
** publish --patch 发布补丁版本，版本号升级为1.1.2
```
lugia-compile publish --patch
or
lugia-compile publish
```
** publish 发布minor版本，版本号升级为1.2.0
```
lugia-compile publish --minor
```
** publish 发布major版本，版本号升级为2.0.0
```
lugia-compile publish --major
```

### 删除发布 unpublish
** unpublish module[@version] npm仓库删除发布
```
删除全部版本
lugia-compile unpublish test
删除指定版本
lugia-compile unpublish test@1.0.0
```
npm package: @lugia/lugia-grid-types
Description: @lugia/ide-grid-types 存放关于 @lugia/lugia-grid 和 @lugia/lugia-table-design 页面布局相关项目的公用TS类型定义。
Latest version: 1.0.3

@lugia/ide-grid-types
存放关于 @lugia/lugia-grid 和 @lugia/lugia-table-design 页面布局相关项目的公用TS类型定义。
npm package: @lugia/lugia-lugiad-parser
Description: npm i -g @lugia/lugia-lugiad-parser
Latest version: 1.0.17

# 安装

npm i -g @lugia/lugia-lugiad-parser

# 参数说明

```shell
-V, --version                  output the version number
-p, --path <String>            指定目标mega项目地址
-m, --module <String>          指定查找替换的组件库名称
-w, --widgetName <String>      指定查找替换的组件名称
-nm, --newModule <String>      替换为新的模块名称
-nw, --newWidgetName <String>  替换为新的组件名称
-nv, --newVersion <String>     替换为新的组件库版本
-mp, --mergeProps  <JSON>      指定要合并到组件的属性JSON信息
-h, --help       display help for command
```

# 组件属性替换

将{text: 'hell12312'}合并设置到当前目录下的所有@lugia/lugia-web 组件库的 Progress 组件。

```shell
lugiad -p /Users/liguoxin/LugiaMegaProjects/test -m @lugia/lugia-web -w Progress -mp '{"text": "adfafa"}'
```

# 组件替换

将@lugia/lugia-web/Progress 替换为 @lugia/test-web/TestInput@1.2.0

```shell
lugiad -p . -m @lugia/lugia-web -w Progress   -nm @lugia/test-web -nw TestInput -nv 1.2.0
```
npm package: @lugia/lugia-mega-ui
Description: 一套基于 `Lugia Design Language` 的高品质 React 组件，适用于 Web 端
Author: ysstech
Latest version: 1.1.8

# @lugia/lugia-web

一套基于 `Lugia Design Language` 的高品质 React 组件，适用于 Web 端

> ~~[文档](http://doc.gointech.net/sv-widget/)~~

## 开发方式

[Fork 工作流](https://github.com/geeeeeeeeek/git-recipes/wiki/3.5-%E5%B8%B8%E8%A7%81%E5%B7%A5%E4%BD%9C%E6%B5%81%E6%AF%94%E8%BE%83#fork-%E5%B7%A5%E4%BD%9C%E6%B5%81)

### 补充：

在 gitlab 中，当中央仓库合并了你的开发分支请求后（Merge Request !X was merged），怎样与中央仓库同步并删除开发分支：

```bash
git checkout <本地主分支>
git pull <中央仓库名字> <中央仓库主分支>
git push
git branch -d <本地开发分支>
git push <自己仓库名字> -d <自己仓库开发分支>
```

查看本地连接到的仓库

```bash
git remote -v
```

> [在 VSCode 中开发调试](./.vscode/README.md)

## 安装新的包

### 1、切换 npm 源到 taobao

```bash
# 安装 nrm
npm i nrm -g

# 查看是否安装成功
nrm ls

# 切换源
nrm use taobao
```

### 2、设置 @lugia/xxx 走私服源

```bash
npm config set @lugia:registry http://192.168.102.79:5001/

# 查看是否设置成功
$ npm config get @lugia:registry
# http://192.168.102.79:5001/
```

## 其他

为什么不使用 `lugia-scripts test -w`

> 和以前用的 create-react-app 的 jest 的配置不同，以前写的许多测试用例过不了