Always build TypeScript in lib/
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
*.swp
|
*.swp
|
||||||
.lock-wscript
|
.lock-wscript
|
||||||
out/
|
|
||||||
lib/
|
lib/
|
||||||
Makefile.gyp
|
Makefile.gyp
|
||||||
*.Makefile
|
*.Makefile
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ BUILD_DIR=${BUILD_DIR:=build}
|
|||||||
mkdir -p $BUILD_DIR
|
mkdir -p $BUILD_DIR
|
||||||
|
|
||||||
|
|
||||||
# Clean out/* to prevent confusion if files were deleted in src/
|
# Clean lib/* to prevent confusion if files were deleted in src/
|
||||||
rm -rf out/*
|
rm -rf lib/*
|
||||||
|
|
||||||
# Build all TypeScript files (including tests) to out/
|
# Build all TypeScript files (including tests) to lib/
|
||||||
tsc
|
tsc
|
||||||
|
|
||||||
# Concat all xterm.js files into a single file and output as a UMD to $BUILD_DIR/xterm.js
|
# 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
|
cat ./$BUILD_DIR/xterm.js | exorcist ./$BUILD_DIR/xterm.js.map -b ./$BUILD_DIR > ./$BUILD_DIR/xterm.temp.js
|
||||||
rm ./$BUILD_DIR/xterm.js
|
rm ./$BUILD_DIR/xterm.js
|
||||||
mv ./$BUILD_DIR/xterm.temp.js ./$BUILD_DIR/xterm.js
|
mv ./$BUILD_DIR/xterm.temp.js ./$BUILD_DIR/xterm.js
|
||||||
@@ -29,7 +29,7 @@ cd src
|
|||||||
find . -name '*.css' | cpio -pdm ../$BUILD_DIR
|
find . -name '*.css' | cpio -pdm ../$BUILD_DIR
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Copy addons from out/ to $BUILD_DIR/
|
# Copy addons from lib/ to $BUILD_DIR/
|
||||||
cd out/addons
|
cd lib/addons
|
||||||
find . -name '*.js' | cpio -pdm ../../$BUILD_DIR/addons
|
find . -name '*.js' | cpio -pdm ../../$BUILD_DIR/addons
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|||||||
+1
-1
@@ -36,6 +36,6 @@
|
|||||||
"test": "mocha --recursive ./lib",
|
"test": "mocha --recursive ./lib",
|
||||||
"build:docs": "jsdoc -c jsdoc.json",
|
"build:docs": "jsdoc -c jsdoc.json",
|
||||||
"build": "./bin/build",
|
"build": "./bin/build",
|
||||||
"prepublish": "tsc --outDir lib"
|
"prepublish": "tsc"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
"target": "es5",
|
"target": "es5",
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"outDir": "out",
|
"outDir": "lib",
|
||||||
"sourceMap": true
|
"sourceMap": true
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
|
|||||||
Reference in New Issue
Block a user