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`)