# s4s-cli

> A simple CLI for creating s4s projects

Latest version **0.0.7** (published 2018-07-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install s4s-cli
pnpm add s4s-cli
yarn add s4s-cli
bun add s4s-cli
```

Provides the command `s4s`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2018-07-18 |
| First published | 2018-07-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 28.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | charsunny |
| Maintainers | charsunny |
| Keywords | s4s, cli, es6 |

## Links

- npm: https://www.npmjs.com/package/s4s-cli
- Repository: http://git.mys4s.cn/UIKit/s4s_cli
- Homepage: http://git.mys4s.cn/UIKit/s4s_cli.git#readme
- Issues: http://git.mys4s.cn/UIKit/s4s_cli.git/issues
- npm.io page: https://npm.io/package/s4s-cli

## Dependencies (8)

- [co](https://npm.io/package/co.md) ^4.6.0
- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [parse5](https://npm.io/package/parse5.md) ^5.0.0
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.2
- [fs-extra](https://npm.io/package/fs-extra.md) ^6.0.1
- [co-prompt](https://npm.io/package/co-prompt.md) ^1.0.0
- [commander](https://npm.io/package/commander.md) ^2.16.0
- [ansi-regex](https://npm.io/package/ansi-regex.md) ^3.0.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.0.7 (latest) — 2018-07-18
- 0.0.6 — 2018-07-17
- 0.0.5 — 2018-07-16

## README

![s4s Logo](./logo.png)

# s4s cli

齐车大圣前段脚手架工具.

# Installation
```
npm install s4s-cli -g
```
or
```
git clone http://git.mys4s.cn/UIKit/s4s_cli.git

cd s4s_cli && npm install

npm link
```

# Usage
Open your terminal and type `s4s` or `s4s -h` , you'll see the help infomation below:
```
  Usage: s4s <command>


  Commands:

    wechat|w    Generate a wechat tiny app project
    alipay|a    Generate a alipay tiny app project
    w2a   Convert wechat app to aliapy app
    a2w   Convert wechat app to aliapy app
    h5    Generate a h5 project
    rn   Generate a react native project
    update|u update components project used

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
```

# Commands
### wechat | w
This command would help you to create a new wechat tiny app, which will be used by s4s to generate projects.
```
$ s4s wechat <project>
```
```
Project name: myapp
```
Once confirm you'll see the message like below:
```
The last template list is:
```
Now you've added a new template to s4s successfully.

### aliapy | a
This command would help you to create a new wechat tiny app, which will be used by s4s to generate projects.
```
$ s4s alipay <project>
```
```
Project name: myapp
```

### w2a
This command would help you to convert wechat tiny app to alipay tiny app.
```

$ s4s w2a <from> <to>

/* enter wechat app path: */
Template name: my-tpl-name

/* enter alipay project name */
Project name: my-new-project

```
After enter correct template name and confirm, you'll see the message below:
```
Start generating...

 √ Generation completed!

 cd my-new-project
```
It's easy, right?

# Template
The most important part of s4s is `template`. All templates' infomation were list in the `templates.json`.
A template means a project sample, which has a simple or complex file structure.

You can create your own templates repository, and push your templates in different branches. All you need to do then is to add the templates into s4s's `templates.json`.

# License
MIT.

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