From 6ba79c454d4d9004be4347c235feb266db0f53d8 Mon Sep 17 00:00:00 2001 From: Alfred Melch Date: Thu, 2 Jan 2020 23:48:11 +0100 Subject: [PATCH] Add makefile --- .eslintrc | 3 +++ Makefile | 11 +++++++++++ README.md | 8 ++++---- 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 .eslintrc create mode 100644 Makefile diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..6c0ab87 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,3 @@ +{ + "extends": ["react-app", "prettier"] +} diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..866dfde --- /dev/null +++ b/Makefile @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index 909e74d..09ecf9a 100644 --- a/README.md +++ b/README.md @@ -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`)