Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Added command for generating source-map of the js bundles

Ilian Sapundshievb5ce8b413110
diff --git a/.gitignore b/.gitignore
index 007adff39..15b5d1347 100644
--- a/.gitignore
+++ b/.gitignore
@@ -83,3 +83,5 @@ app/extconfig1.js
web/extconfig.js
web/extconfig1.js
cordova/www/extconfig.js
+
+reports/*
diff --git a/package.json b/package.json
index a501b9f5f..03b2144bd 100644
--- a/package.json
+++ b/package.json
@@ -56,7 +56,11 @@
"start-android": "yarn build-cordova && yarn run-android",
"start-android-dev": "yarn prepare-cordova && yarn build-cordova-dev && yarn run-android",
"update-changelog": "git log v3.1.5..HEAD --no-merges --format=%B > CHANGELOG.TXT",
- "clean": "rimraf app/dist && rimraf node_modules && rimraf app/node_modules"
+ "clean": "rimraf app/dist && rimraf node_modules && rimraf app/node_modules",
+ "source-map-app": "source-map-explorer app/dist/*.* --html reports/source-map-app.html",
+ "source-map-web": "source-map-explorer web/dist/*.* --html reports/source-map-web.html",
+ "source-map-cordova": "source-map-explorer cordova/www/dist/*.* --html reports/source-map-cordova.html",
+ "source-map": "yarn source-map-app && yarn source-map-web && yarn source-map-cordova"
},
"browserslist": "electron 2.0",
"repository": {