]> git.proxmox.com Git - mirror_xterm.js.git/blobdiff - bin/build
Merge pull request #447 from Tyriar/425_xon_xoff_on_280
[mirror_xterm.js.git] / bin / build
index 2def2c2b7d785a19fbbc6f7c3c0a5eea64b8ad90..a01a1b9f4be4517958229d3a356c3968780146a0 100755 (executable)
--- a/bin/build
+++ b/bin/build
@@ -9,14 +9,14 @@ BUILD_DIR=${BUILD_DIR:=build}
 mkdir -p $BUILD_DIR
 
 
-# Clean out/* to prevent confusion if files were deleted in src/
-rm -rf out/*
+# Clean lib/* to prevent confusion if files were deleted in src/
+rm -rf lib/*
 
-# Build all TypeScript files (including tests) to out/
+# Build all TypeScript files (including tests) to lib/
 tsc
 
 # Concat all xterm.js files into a single file and output as a UMD to $BUILD_DIR/xterm.js
-browserify ./out/xterm.js --standalone Terminal --debug --outfile ./$BUILD_DIR/xterm.js
+browserify ./lib/xterm.js --standalone Terminal --debug --outfile ./$BUILD_DIR/xterm.js
 cat ./$BUILD_DIR/xterm.js | exorcist ./$BUILD_DIR/xterm.js.map -b ./$BUILD_DIR > ./$BUILD_DIR/xterm.temp.js
 rm ./$BUILD_DIR/xterm.js
 mv ./$BUILD_DIR/xterm.temp.js ./$BUILD_DIR/xterm.js
@@ -24,12 +24,13 @@ mv ./$BUILD_DIR/xterm.temp.js ./$BUILD_DIR/xterm.js
 # Resolve the chain of sourcemaps so that ./$BUILD_DIR/xterm.js.map points at ./src
 sorcery -i $BUILD_DIR/xterm.js
 
-# Copy all CSS files from src/ to $BUILD_DIR/
+# Copy all CSS files from src/ to $BUILD_DIR/ and lib/
 cd src
 find . -name '*.css' | cpio -pdm ../$BUILD_DIR
+find . -name '*.css' | cpio -pdm ../lib
 cd ..
 
-# Copy addons from out/ to $BUILD_DIR/
-cd out/addons
+# Copy addons from lib/ to $BUILD_DIR/
+cd lib/addons
 find . -name '*.js' | cpio -pdm ../../$BUILD_DIR/addons
 cd ../..