Skip to content

Commit

Permalink
Moved configs to package.json; updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Sisley committed Jul 29, 2018
1 parent 111c596 commit 72ee90a
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 54 deletions.
15 changes: 0 additions & 15 deletions .babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

19 changes: 0 additions & 19 deletions .eslintrc

This file was deleted.

11 changes: 0 additions & 11 deletions .lintstagedrc

This file was deleted.

1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ __Nothing is hidden, nothing is magical__, and all of the "plumbing" is accessib
- [Features](#features)
- [Documentation](#documentation)
- [Install](#install)
- [Configuration](#configuration)
- [Develop](#develop)
- [Test](#test)
- [Unit Tests](#unit-tests)
Expand Down Expand Up @@ -80,6 +81,14 @@ Install dependencies:
$ npm install
```

## Configuration

Configurations for __Babel__, __ESLint__, __lint-staged__, and __prettier__ are contained within the `package.json` file.

Configurations for __Webpack__ can be found in the `scripts/config` directory.

Configuration for __CircleCI__ is contained in the `.circleci/config.yml` file.

## Develop

Run the application in development mode:
Expand Down Expand Up @@ -190,7 +199,7 @@ npm run deploy

This starter kit is pre-configured with a [git pre-commit hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks), which will automatically clean up your staged code using [Prettier](https://prettier.io/) and [ESLint](https://eslint.org/), then execute your unit and functional tests. This is done using [lint-staged](https://github.com/okonet/lint-staged) and [husky](https://github.com/typicode/husky).

You can modify the pre-commit workflow using the `.lintstagedrc` and `scripts/precommit.sh` files.
You can modify the pre-commit workflow using the `lint-staged` property in `package.json` and the `scripts/precommit.sh` file.

## Continuous Delivery

Expand Down
56 changes: 56 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,61 @@
"webpack": "4.16.3",
"webpack-cli": "3.1.0",
"webpack-dev-server": "3.1.5"
},
"config": {
"registry": "https://registry.npmjs.org/"
},
"babel": {
"presets": [
"@babel/preset-env",
"@babel/preset-react",
"stage-0"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-transform-runtime",
"react-hot-loader/babel",
"syntax-trailing-function-commas",
"transform-async-to-generator"
]
},
"eslintConfig": {
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"extends": "airbnb",
"globals": {
"beforeAll": true,
"beforeEach": true,
"describe": true,
"document": true,
"expect": true,
"it": true,
"jest": true,
"page": true,
"test": true,
"window": true
}
},
"eslintIgnore": [
"coverage/**",
"dist/**"
],
"lint-staged": {
"*.js": [
"prettier --write",
"eslint --ignore-pattern /dist/ --fix ./",
"git add"
],
"*.{css,json}": [
"prettier --write",
"git add"
]
},
"prettier": {
"singleQuote": true,
"trailingComma": "all"
}
}

0 comments on commit 72ee90a

Please sign in to comment.