mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
cleanup of useless files when building release artifacts
This commit is contained in:
parent
4cd1a0ee7d
commit
d4e1900f89
@ -17,6 +17,7 @@ cd ..
|
|||||||
mv dist/node-v${NODE_VERSION}-linux-x64 $PKG_DIR/node
|
mv dist/node-v${NODE_VERSION}-linux-x64 $PKG_DIR/node
|
||||||
|
|
||||||
rm -r $PKG_DIR/node/lib/node_modules/npm
|
rm -r $PKG_DIR/node/lib/node_modules/npm
|
||||||
|
rm -r $PKG_DIR/node/include/node
|
||||||
|
|
||||||
rm -r $PKG_DIR/node_modules/electron*
|
rm -r $PKG_DIR/node_modules/electron*
|
||||||
|
|
||||||
|
@ -29,6 +29,17 @@ cp webpack-* $DIR/
|
|||||||
# run in subshell (so we return to original dir)
|
# run in subshell (so we return to original dir)
|
||||||
(cd $DIR && npm install --only=prod)
|
(cd $DIR && npm install --only=prod)
|
||||||
|
|
||||||
|
# cleanup of useless files in dependencies
|
||||||
|
rm -r $DIR/node_modules/image-q/demo
|
||||||
|
rm -r $DIR/node_modules/better-sqlite3/deps/sqlite3.tar.gz
|
||||||
|
rm -r $DIR/node_modules/@jimp/plugin*
|
||||||
|
rm -r $DIR/node_modules/jimp/browser
|
||||||
|
|
||||||
|
# delete all tests (there are often large images as test file for jimp etc.)
|
||||||
|
find $DIR/node_modules -name test -exec rm -rf {} \;
|
||||||
|
find $DIR/node_modules -name docs -exec rm -rf {} \;
|
||||||
|
find $DIR/node_modules -name demo -exec rm -rf {} \;
|
||||||
|
|
||||||
find $DIR/libraries -name "*.map" -type f -delete
|
find $DIR/libraries -name "*.map" -type f -delete
|
||||||
|
|
||||||
rm -r $DIR/src/public/app
|
rm -r $DIR/src/public/app
|
||||||
|
@ -58,7 +58,6 @@
|
|||||||
"open": "7.2.0",
|
"open": "7.2.0",
|
||||||
"portscanner": "2.2.0",
|
"portscanner": "2.2.0",
|
||||||
"rand-token": "1.0.1",
|
"rand-token": "1.0.1",
|
||||||
"rcedit": "2.2.0",
|
|
||||||
"request": "^2.88.2",
|
"request": "^2.88.2",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"sanitize-filename": "1.6.3",
|
"sanitize-filename": "1.6.3",
|
||||||
@ -86,6 +85,7 @@
|
|||||||
"jasmine": "3.6.1",
|
"jasmine": "3.6.1",
|
||||||
"jsdoc": "3.6.5",
|
"jsdoc": "3.6.5",
|
||||||
"lorem-ipsum": "2.0.3",
|
"lorem-ipsum": "2.0.3",
|
||||||
|
"rcedit": "2.2.0",
|
||||||
"webpack": "5.0.0-beta.28",
|
"webpack": "5.0.0-beta.28",
|
||||||
"webpack-cli": "4.0.0-beta.8"
|
"webpack-cli": "4.0.0-beta.8"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user