Skip to content

Commit

Permalink
Added make task to build browserified version
Browse files Browse the repository at this point in the history
  • Loading branch information
ixti committed Nov 8, 2011
1 parent de2f720 commit 23f8083
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/tmp/
/node_modules/
41 changes: 29 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,34 @@
PATH := ./node_modules/.bin:${PATH}


.SILENT: test test_functional test_issues


test: test_functional test_issues

test_issues:
@echo
@echo "## ISSUES ######################################################################"
@echo "################################################################################"
@echo
@node ./test/issues/run.js
@echo
echo
echo "## ISSUES ######################################################################"
echo "################################################################################"
echo
node ./test/issues/run.js
echo

test_functional:
@echo
@echo "## FUNCTIONAL ##################################################################"
@echo "################################################################################"
@echo
@node ./test/functional/run.js
@echo
echo
echo "## FUNCTIONAL ##################################################################"
echo "################################################################################"
echo
node ./test/functional/run.js
echo


build: browserify uglify

browserify:
if test ! `which browserify` ; then npm install browserify ; fi
browserify index.js -o js-yaml.js

uglify:
if test ! `which uglifyjs` ; then npm install uglify-js ; fi
uglifyjs js-yaml.js > js-yaml.min.js
Loading

0 comments on commit 23f8083

Please sign in to comment.