Skip to content

Commit 6e6b29c

Browse files
committed
build(uglify): Add uglify dependency and correct the release.sh
1. Provide uglify-js package for release.js 2. Add shebang in release.sh
1 parent 42f793b commit 6e6b29c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"phantomjs-prebuilt": "^2.1.12",
2222
"rollup": "^0.34.10",
2323
"rollup-plugin-buble": "^0.14.0",
24-
"rollup-watch": "^2.5.0"
24+
"rollup-watch": "^2.5.0",
25+
"uglify-js": "^2.8.15"
2526
},
2627
"bugs": "http://github.com/codemirror/CodeMirror/issues",
2728
"keywords": [

release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
uglifyjs --compress --mangle --output codemirror.min.js \
1+
#!/bin/bash
2+
./node_modules/.bin/uglifyjs --compress --mangle --output codemirror.min.js \
23
lib/codemirror.js \
34
addon/mode/overlay.js \
45
addon/mode/simple.js \

0 commit comments

Comments
 (0)