Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 790 Bytes

js-scripts.md

File metadata and controls

42 lines (29 loc) · 790 Bytes

JS scripts

  • visualize source complexity with plato:
npx plato -d report -r -e .eslintrc src
  • summarise all code annotation like TODO or FIXME with code-notes
npx code-notes --git-ignore .gitignore
  • npm check for updates
npx npm-check-updates '/babel/' -a
  • check dead code with webpack [#webpack #bundle #stats #analyze]:
npx webpack --json | npx webpack-unused -s src | grep '.js'
  • measure bundle size [#webpack #bundle #size]:
npx bundlesize
npx size-limit
  • why this module in a bundle? [#webpack #bundle #stats #analyze]:
npx whybundled stats.json
npx whybundled stats.json --by styled-components