Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"target": "es5",
"rootDir": "src",
"allowJs": true,
"outDir": "out"
"outDir": "out",
"sourceMap": true
},
"exclude": [
"addons",
Expand Down