open-index/open-npm huggingface dataset:
npm package: @io-arc/preset-setup-files
Description: Make it easy to install frequently used files.
Author: arc one
Latest version: 1.0.3

# 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 <target directory>
$ 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.