Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/io-arc/preset-setup-files


https://github.com/io-arc/preset-setup-files

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Preset setup files

You can use commands to generate files that are often used in web production.

## Install

```shell
# npm
$ npm install -g @io-arc/preset-setup-files

# yarn
$ yarn add global @io-arc/preset-setup-files
```

### Supported files

- .editorconfig
- .gitignore
- .npmrc
- .npmignore
- .browserslistrc
- .prettierrc (json/json5/yaml/js/cjs/toml)
- .eslintrc (js/cjs/yaml/json)
- .eslintignore

## Usage

### Default

Execute the command in the directory where you want to set the file.

```shell
$ cd
$ preset-setup-files
```

![default preset setup files](docs/images/default.jpg)

### Custom configuration

In custom mode, you can below.

- Default choices
- Template directory to browse

Custom settings will be recorded in `.preset-setup-files-config.json` in your home directory.

```shell
$ preset-setup-files --custom
```

**Default choices**
\* Same as default command, but not copy files
![default preset setup files](docs/images/custom-choices.jpg)

**Template directory to browse**
![default preset setup files](docs/images/custom-directory.jpg)

#### Remove custom settings

Delete `.preset-setup-files-config.json`.

### See configuration

Check the current settings.

```shell
$ preset-setup-files --config
# or
$ preset-setup-files -c
```

![config](docs/images/see-config.jpg)

## Request

If you have a template you would like to see added, please suggest it in Issues.