forked from nodeca/js-yaml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added make task to build browserified version
- Loading branch information
Showing
3 changed files
with
33 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/tmp/ | ||
/node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.