]>
git.proxmox.com Git - mirror_xterm.js.git/blob - bin/build
5 # $BUILD_DIR should default to "build"
6 BUILD_DIR
=${BUILD_DIR:=build}
8 # Create the build directory
12 # Clean lib/* to prevent confusion if files were deleted in src/
15 # Build all TypeScript files (including tests) to lib/
18 # Concat all xterm.js files into a single file and output as a UMD to $BUILD_DIR/xterm.js
19 browserify .
/lib
/xterm.js
--standalone Terminal
--debug --outfile .
/$BUILD_DIR/xterm.js
20 cat .
/$BUILD_DIR/xterm.js | exorcist .
/$BUILD_DIR/xterm.js.map
-b .
/$BUILD_DIR > .
/$BUILD_DIR/xterm.temp.js
21 rm .
/$BUILD_DIR/xterm.js
22 mv .
/$BUILD_DIR/xterm.temp.js .
/$BUILD_DIR/xterm.js
24 # Resolve the chain of sourcemaps so that ./$BUILD_DIR/xterm.js.map points at ./src
25 sorcery
-i $BUILD_DIR/xterm.js
27 # Copy all CSS files from src/ to $BUILD_DIR/ and lib/
29 find .
-name '*.css' |
cpio -pdm ..
/$BUILD_DIR
30 find .
-name '*.css' |
cpio -pdm ..
/lib
33 # Copy addons from lib/ to $BUILD_DIR/
35 find .
-name '*.js' |
cpio -pdm ..
/..
/$BUILD_DIR/addons