# create-segma-app

> segma frontend team's internal tool for creating app with different templates

Latest version **0.4.0** (published 2021-10-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install create-segma-app
pnpm add create-segma-app
yarn add create-segma-app
bun add create-segma-app
```

Provides the commands `csa`, `create-segma-app`.

## 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.4.0 |
| Published | 2021-10-11 |
| First published | 2021-10-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | SatiousRan |
| Maintainers | satious |

## Links

- npm: https://www.npmjs.com/package/create-segma-app
- Repository: https://github.com/RanSatious/create-segma-app
- Issues: https://github.com/RanSatious/create-segma-app/issues
- npm.io page: https://npm.io/package/create-segma-app

## Dependencies (2)

- [fs-extra](https://npm.io/package/fs-extra.md) ^9.0.1
- [minimist](https://npm.io/package/minimist.md) ^1.2.5

## Recent versions

- 0.4.0 (latest) — 2021-10-11
- 0.3.6 — 2021-10-11

## README

# create-segma-app

## 简介

使用不同的模板来初始化一个新的工程。

inspired by [create-vite-app](https://github.com/vitejs/create-vite-app)。

## 仓库地址

```
https://github.com/RanSatious/create-segma-app
```

## 快速开始

```bash
# set the correct registry first
$ npm config set registry http://npm.segma.tech/

$ npm init segma-app <project-name>
$ cd <project-name>
$ npm i
$ npm run dev
```

## 模板

**可用的模板**

-   `vue` (default)
-   `vue3`
-   `segma-vue`
-   `segma-vue3`
-   `typescript`
-   `empty`

**注意**

`vue` 、 `vue3` 2 个模板只包含基本的配置，主要是为创建新的 vue 工程提供便利。  
要为新项目创建正式模板，请使用`segma-vue`模板。

`typescript` 模板作为 [template-typescript](https://github.com/RanSatious/segma-template-typescript) 的替代者，可使用该模板来创建新的 typescript 工程。

**使用指定的模板进行初始化：**

```bash
$ npm init segma-app <project-name> --template typescript
# or
$ npm init segma-app <project-name> -t typescript
```

## eol

指定文件换行符。

### auto `默认值`

windows 下为 `crlf`，其他环境为 `lf`。

```bash
$ npm init segma-app <project-name>
$ npm init segma-app <project-name> --eol auto
```

### lf

`\n`

```bash
$ npm init segma-app <project-name> --eol lf
```

### crlf

`\r\n`

```bash
$ npm init segma-app <project-name> --eol crlf
```

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