# qcloud-test-cli

> CLI for easily bootstrapping modern react libraries

Latest version **3.3.7** (published 2019-03-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install qcloud-test-cli
pnpm add qcloud-test-cli
yarn add qcloud-test-cli
bun add qcloud-test-cli
```

Provides the command `qcloud`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.3.7 |
| Published | 2019-03-24 |
| First published | 2019-03-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 16 |
| Unpacked size | 283.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4751 |
| Author | Travis Fischer |
| Maintainers | panda_pan |
| Keywords | react, preact, library, module, create-react-app, cli, component, rollup, babel, publish |

## Links

- npm: https://www.npmjs.com/package/qcloud-test-cli
- Repository: https://github.com/transitive-bullshit/create-react-library
- Homepage: https://github.com/transitive-bullshit/create-react-library#readme
- Issues: https://github.com/transitive-bullshit/create-react-library/issues
- npm.io page: https://npm.io/package/qcloud-test-cli

## Dependencies (16)

- [ora](https://npm.io/package/ora.md) ^3.1.0
- [conf](https://npm.io/package/conf.md) ^2.2.0
- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [execa](https://npm.io/package/execa.md) ^1.0.0
- [which](https://npm.io/package/which.md) ^1.3.1
- [globby](https://npm.io/package/globby.md) ^9.0.0
- [cp-file](https://npm.io/package/cp-file.md) ^6.0.0
- [inquirer](https://npm.io/package/inquirer.md) ^6.2.2
- [make-dir](https://npm.io/package/make-dir.md) ^2.0.0
- [commander](https://npm.io/package/commander.md) ^2.19.0
- [handlebars](https://npm.io/package/handlebars.md) ^4.1.0
- [p-each-series](https://npm.io/package/p-each-series.md) ^1.0.0
- [git-config-path](https://npm.io/package/git-config-path.md) ^2.0.0
- [github-username](https://npm.io/package/github-username.md) ^4.1.0
- [parse-git-config](https://npm.io/package/parse-git-config.md) ^3.0.0
- [validate-npm-package-name](https://npm.io/package/validate-npm-package-name.md) ^3.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 3.3.7 (latest) — 2019-03-24
- 3.3.6 — 2019-03-24
- 3.3.5 — 2019-03-24
- 3.3.4 — 2019-03-24
- 3.3.3 — 2019-03-24
- 1.0.3 — 2019-03-24
- 1.0.2 — 2019-03-24
- 1.0.1 — 2019-03-24
- 1.0.0 — 2019-03-24
- 3.0.4 — 2019-03-20

## README

# tcloud-test-cli
modify by https://github.com/transitive-bullshit/create-react-library

安装cli工具
```
npm i qcloud-test-cli -g
```
创建一个组件
```
mkdir qcloud-component && cd qcloud-component
npx qcloud
```
开发
本地开发分为两个部分.

首先, 你可以运行rollup去监听你的src/模块, 当你有任何更改会自动编译到dist/
```
npm start # 运行rollup和监听更改 
```
然后, 在本地开发中需要在example/目录中链接你的模块

 (打开新的终端窗口中) 
```
cd example
npm link
npm start
```
现在, 当你对库的src/目录或演示程序的example/src目录有任何更改, create-react-app会重新加载本地开发服务, 这样就能很愉快的对你的组件进行快速开发迭代.

发布到NPM
将库发布到 npm 时请务必要确保所有的依赖模块已经正确添加在了peerDependencies中, rollup会自动识别peerDependencies配置选项, 而不会将它捆绑在你的模块中(或者可以叫他外部依赖).

然后就可以愉快的发布拉

 注意下面的命令会编译`commonjs`和`es`的版本到你模块的dist/目录中 
```
npm publish
```
Github Pages
将示例部署到github pages相当简单, 我们需要先给example编译一个生产版本, 这个example用于演示你的库. 然后运行gh-pages来部署生成的bundle文件到github.
```
npm run deploy
```


## License

MIT © [Travis Fischer](https://github.com/transitive-bullshit)

---
_Source: https://npm.io/package/qcloud-test-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
