]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Set up source maps
authorDaniel Imms <daimms@microsoft.com>
Sat, 12 Nov 2016 22:24:57 +0000 (14:24 -0800)
committerDaniel Imms <daimms@microsoft.com>
Sat, 12 Nov 2016 22:24:57 +0000 (14:24 -0800)
Fixes #354

bin/build
package.json
tsconfig.json

index 00a732368d47ac0687caadad6dfc2a24a5c20eb3..d1b403d28e42d5fde47aa4c19bc9bd87f8aa6ae7 100755 (executable)
--- a/bin/build
+++ b/bin/build
@@ -4,7 +4,13 @@
 tsc
 
 # Concat all xterm.js files into a single file and output as a UMD to dist/xterm.js
-browserify out/xterm.js --standalone Terminal -p [ tsify ] --outfile dist/xterm.js
+browserify ./out/xterm.js --standalone Terminal --debug --outfile ./dist/xterm.js
+cat ./dist/xterm.js | exorcist ./dist/xterm.js.map -b ./dist > ./dist/xterm.temp.js
+rm ./dist/xterm.js
+mv ./dist/xterm.temp.js ./dist/xterm.js
+
+# Resolve the chain of sourcemaps so that ./dist/xterm.js.map points at ./src
+sorcery -i dist/xterm.js
 
 # Copy all CSS files from src/ to dist/
 cd src
index 93ed9a7b867d09ac5a2b04ca495e0b314548c0dc..72c27e7d09c2ede17354d5251c5056fc376d2380 100644 (file)
@@ -14,6 +14,7 @@
     "browserify": "^13.1.0",
     "chai": "3.5.0",
     "docdash": "0.4.0",
+    "exorcist": "^0.4.0",
     "express": "4.13.4",
     "express-ws": "2.0.0-rc.1",
     "glob": "^7.0.5",
@@ -22,7 +23,7 @@
     "nodemon": "1.10.2",
     "pty.js": "0.3.1",
     "sleep": "^3.0.1",
-    "tsify": "^1.0.7",
+    "sorcery": "^0.10.0",
     "typescript": "^2.0.3"
   },
   "scripts": {
index beb83261931e7f9fea4df996c8e19a9e2d1b5011..01e72bc14d43f77d9d8cdcdd5c60420e16126241 100644 (file)
@@ -4,7 +4,8 @@
     "target": "es5",
     "rootDir": "src",
     "allowJs": true,
-    "outDir": "out"
+    "outDir": "out",
+    "sourceMap": true
   },
   "exclude": [
     "addons",