Skip to content

Commit

Permalink
build mocha.js using browserify
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanong committed Jul 8, 2014
1 parent aaddbc6 commit 8501241
Show file tree
Hide file tree
Showing 10 changed files with 20,501 additions and 4,872 deletions.
15 changes: 3 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,12 @@
REPORTER ?= dot
TM_BUNDLE = JavaScript\ mocha.tmbundle
SRC = $(shell find lib -name "*.js" -type f | sort)
SUPPORT = $(wildcard support/*.js)
BIN = ./node_modules/.bin/

all: mocha.js

lib/browser/diff.js: node_modules/diff/diff.js
cp node_modules/diff/diff.js lib/browser/diff.js

mocha.js: $(SRC) $(SUPPORT) lib/browser/diff.js
@node support/compile $(SRC)
@cat \
support/head.js \
_mocha.js \
support/tail.js \
support/foot.js \
> mocha.js
mocha.js: $(SRC)
@$(BIN)browserify lib/mocha.js --standalone Mocha -o mocha.js

clean:
rm -f mocha.js
Expand Down
5 changes: 0 additions & 5 deletions lib/browser/debug.js

This file was deleted.

178 changes: 0 additions & 178 deletions lib/browser/events.js

This file was deleted.

Empty file removed lib/browser/fs.js
Empty file.
Empty file removed lib/browser/path.js
Empty file.

0 comments on commit 8501241

Please sign in to comment.