Skip to content

Commit

Permalink
Add a browser build (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
cronvel committed May 28, 2021
1 parent 786a281 commit d32f77a
Show file tree
Hide file tree
Showing 7 changed files with 61,720 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

v2.1.4
------

Add a browser build (#176)


v2.1.3
------

Expand Down
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,30 @@ publish: log/npm-publish.log log/github-push.log
# Clean temporary things, or things that can be automatically regenerated
clean: clean-all

# browserify
browser: browser/termkit.js browser/termkit.min.js



# Variables

MOCHA=./node_modules/mocha/bin/mocha
JSHINT=./node_modules/jshint/bin/jshint --verbose
BROWSERIFY=browserify
UGLIFY=uglifyjs



# Files rules

# Build the browser lib
browser/termkit.js: lib/*.js lib/*/*.js
${BROWSERIFY} lib/browser.js -s TerminalKit -i get-pixels -i child_pty -o browser/termkit.js

# Build the browser minified lib
browser/termkit.min.js: browser/termkit.js
${UGLIFY} browser/termkit.js -o browser/termkit.min.js -m

# JsHint STDOUT test
log/jshint.log: log/npm-dev-install.log lib/*.js lib/colorScheme/*.json lib/termconfig/*.js
${JSHINT} lib/*.js lib/colorScheme/*.json lib/termconfig/*.js | tee log/jshint.log ; exit $${PIPESTATUS[0]}
Expand Down

0 comments on commit d32f77a

Please sign in to comment.