|
|
|
#!/bin/sh
|
|
|
|
# This script removes some stuff in `www/node_modules` that the app doesn't need to run.
|
|
|
|
# It removes about 6MB from the build size.
|
|
|
|
|
|
|
|
echo "Removing bloat in node_modules..."
|
|
|
|
|
|
|
|
pwd
|
|
|
|
|
|
|
|
cd www/node_modules
|
|
|
|
rm -rf {ansicolors,buffer-from,cardinal,concat-stream,core-util-is,csscolorparser}
|
|
|
|
rm -rf {dom7,earcut,esprima,geojson-vt,gl-matrix,grid-index,ieee754,inherits,isarray}
|
|
|
|
rm -rf {kdbush,@mapbox,minimist,murmurhash-js,path-to-regexp,pbf,potpack,process-nextick-args}
|
|
|
|
rm -rf {protocol-buffers-schema,quickselect,readable-stream,redeyed,resolve-protobuf-schema}
|
|
|
|
rm -rf {rw,safe-buffer,sharkdown,split,ssr-window,string_decoder,supercluster}
|
|
|
|
rm -rf {template7,text-encoding,through,tinyqueue,ts-custom-error,typedarray}
|
|
|
|
rm -rf {util-deprecate,vt-pbf,wgs84}
|
|
|
|
|
|
|
|
|
|
|
|
cd @fortawesome/fontawesome-free
|
|
|
|
rm -rf js
|
|
|
|
rm -rf less
|
|
|
|
rm -rf scss
|
|
|
|
rm -rf sprites
|
|
|
|
rm -rf svgs
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
cd jquery
|
|
|
|
rm -rf src
|
|
|
|
rm -rf external
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
cd jsbarcode
|
|
|
|
rm -rf .dockerignore .eslintignore .eslintrcautomation bower.json CONTRIBUTING.md docker-compose.yml Dockerfile example gulpfile.js jsbarcode.d.ts README.md src test .travis.yml
|
|
|
|
rm -rf dist/barcodes
|
|
|
|
rm -rf dist/JsBarcode.all.js
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
cd framework7
|
|
|
|
rm -rf components
|
|
|
|
rm -rf lazy-components
|
|
|
|
rm -rf less
|
|
|
|
rm -rf modules
|
|
|
|
rm -rf utils
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
cd material-design-icons
|
|
|
|
rm -rf action
|
|
|
|
rm -rf alert
|
|
|
|
rm -rf av
|
|
|
|
rm -rf bower.json
|
|
|
|
rm -rf communication
|
|
|
|
rm -rf content
|
|
|
|
rm -rf device
|
|
|
|
rm -rf editor
|
|
|
|
rm -rf file
|
|
|
|
rm -rf gulpfile.babel.js
|
|
|
|
rm -rf hardware
|
|
|
|
rm -rf image
|
|
|
|
rm -rf index.js
|
|
|
|
rm -rf maps
|
|
|
|
rm -rf navigation
|
|
|
|
rm -rf notification
|
|
|
|
rm -rf package.json
|
|
|
|
rm -rf places
|
|
|
|
rm -rf README.md
|
|
|
|
rm -rf social
|
|
|
|
rm -rf sprites
|
|
|
|
rm -rf toggle
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
cd mapbox-gl
|
|
|
|
rm -rf {build,flow-typed,src}
|
|
|
|
cd dist
|
|
|
|
rm -rf ./*.map
|
|
|
|
rm -rf ./*.flow
|
|
|
|
rm -rf {mapbox-gl-csp.js,mapbox-gl-csp-worker.js,mapbox-gl-dev.js,mapbox-gl-unminified.js}
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
|
|
|
echo "Cleanup finished"
|