Skip to content

Commit

Permalink
Add ability to easily run prettier from CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Tomasek committed Nov 20, 2019
1 parent fe87fdf commit 06468af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
bower_components
.cache-loader
.yarn
public/dist
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"test-suite": "ts-node -O '{\"module\":\"commonjs\"}' ./node_modules/.bin/protractor integration-tests/protractor.conf.ts",
"debug-test-suite": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' node -r ts-node/register --inspect-brk ./node_modules/.bin/protractor integration-tests/protractor.conf.ts",
"analyze": "NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 ts-node -O '{\"module\":\"commonjs\"}' ./node_modules/.bin/webpack --mode=production --profile --json | awk '{if(NR>2)print}' > public/dist/stats.json && ts-node -O '{\"module\":\"commonjs\"}' ./node_modules/.bin/webpack-bundle-analyzer --mode static -r public/dist/report.html public/dist/stats.json",
"plugin-stats": "node ./plugin-stats.js"
"plugin-stats": "node ./plugin-stats.js",
"prettier": "prettier --write '**/*.{js,jsx,ts,tsx}'"
},
"jest": {
"moduleFileExtensions": [
Expand Down

0 comments on commit 06468af

Please sign in to comment.