1.0.3 • Published 3 years ago
@io-arc/preset-setup-files v1.0.3
Preset setup files
You can use commands to generate files that are often used in web production.
Install
# 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.
$ cd <target directory>
$ preset-setup-files
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.
$ preset-setup-files --custom
Default choices
* Same as default command, but not copy files
Template directory to browse
Remove custom settings
Delete .preset-setup-files-config.json
.
See configuration
Check the current settings.
$ preset-setup-files --config
# or
$ preset-setup-files -c
Request
If you have a template you would like to see added, please suggest it in Issues.