This change is largely just moving files with minor tweaks to them to fix, the rest of the commit is build process changes: - The addons/ and test/ dirs have been moved to src/ - The build directory has been removed - TypeScript builds are output in out/, this is where tests are run - The demo now relies on the dist/ build which is performed as part of ./bin/build - Addons are now shipped under the ./build directory
18 lines
451 B
Python
Executable File
18 lines
451 B
Python
Executable File
#! /usr/bin/env bash
|
|
|
|
# Build all TypeScript files (including tests) to out/
|
|
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
|
|
|
|
# Copy all CSS files from src/ to dist/
|
|
cd src
|
|
find . -name '*.css' | cpio -pdm ../dist
|
|
cd ..
|
|
|
|
# Copy addons from out/ to dist/
|
|
cd out/addons
|
|
find . -name '*.js' | cpio -pdm ../../dist/addons
|
|
cd ../..
|