Add makefile

This commit is contained in:
Alfred Melch 2020-01-02 23:48:11 +01:00
parent 234919d56c
commit 6ba79c454d
3 changed files with 18 additions and 4 deletions

3
.eslintrc Normal file
View File

@ -0,0 +1,3 @@
{
"extends": ["react-app", "prettier"]
}

11
Makefile Normal file
View File

@ -0,0 +1,11 @@
serve:
./node_modules/.bin/webpack-dev-server --mode development
build:
./node_modules/.bin/webpack --mode production
lint:
./node_modules/.bin/eslint src
format:
./node_modules/.bin/prettier --write src/**/*.js

View File

@ -2,7 +2,7 @@
## Available scripts
- `npm start`: starts a development server
- `npm run build`: make a production build
- `npm run lint`: lint js files using eslint
- `npm run format`: format js files using prettier
- `npm start`: starts a development server (`make` or `make serve`)
- `npm run build`: make a production build (`make build`)
- `npm run lint`: lint js files using eslint (`make lint`)
- `npm run format`: format js files using prettier (`make format`)