Add makefile

dev
Alfred Melch 5 years ago
parent 234919d56c
commit 6ba79c454d

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

@ -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

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

Loading…
Cancel
Save