Merge pull request #67 from dkarter/fix-prettier-script
Add `yarn format` script (`yarn prettier` was not writing formatted version)
This commit is contained in:
commit
3a17646692
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@
|
||||||
"eject": "react-scripts eject",
|
"eject": "react-scripts eject",
|
||||||
"lint": "eslint --config .eslintrc.js",
|
"lint": "eslint --config .eslintrc.js",
|
||||||
"prettier": "prettier --config .prettierrc.js '{data,src}/**/*.{json,ts,tsx}'",
|
"prettier": "prettier --config .prettierrc.js '{data,src}/**/*.{json,ts,tsx}'",
|
||||||
|
"format": "prettier -w --config .prettierrc.js '{data,src}/**/*.{json,ts,tsx}'",
|
||||||
"http-server:data": "http-server ./ -c-1",
|
"http-server:data": "http-server ./ -c-1",
|
||||||
"http-server:app": "http-server ./build --proxy http://localhost:8080 --port 3000",
|
"http-server:app": "http-server ./build --proxy http://localhost:8080 --port 3000",
|
||||||
"serve:production": "npm-run-all --parallel http-server:data http-server:app"
|
"serve:production": "npm-run-all --parallel http-server:data http-server:app"
|
||||||
|
|
Loading…
Reference in a new issue