skoda-scripts v0.0.3
Install
$ yarn add --dev skoda-scriptsNOTE: it includes all the dependencies (prettier, jest, eslint, etc) so you don't have to install them.
Usage
skoda-scripts exposes a series of scripts to handle development tasks.
$ skoda-scripts [script] [options]Available scripts
init
Adds the available scripts to the project's package.json.
WARNING: it will override anything you have in the properties
test,lintandformatof thescriptsfield.
format
Runs prettier on write mode.
lint
Runs ESLint with --cache flag, you can override that with --no-cache.
Since ESLint editor integrations require project based configuration to work a local eslintrc is needed, for that you can use eslint-config-d.
{
"extends": [
"skoda"
]
}NOTE: a
.eslintignoreis required until this eslint issue is resolved.
test
Runs Jest. By default it runs in watch mode unless you are checking coverage (--coverage), used the --no-watch flag or is running in CI (checked by is-ci).
Configuration
skoda-scripts provides an opinionated set of configurations. But all of it can be overridden by adding your own. skoda-scripts will use the configuration files (or package.json property) for each tool if present. The default configuration can be found here.
TODO
precommithook to format and lint code.- Run (lint, format) with the provided list of files instead of the default ones.
- Forward options & flags to the scripts.
Inspiration
skoda-scripts is our take to provide "tools without config". It was strongly inspired by @kentcdodds's version kcd-scripts.
react-scriptsfromcreate-react-app.- Dan Abramov - The Melting Pot of JavaScript.
- Tools without config 🛠📦 by @kentcdodds.
LICENSE
MIT