forked from guillaumepotier/Parsley.js
-
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 powershell scripts to build with on windows
- Loading branch information
Xavier Zwirtz
committed
Mar 21, 2013
1 parent
64fc9a4
commit bb34a9d
Showing
2 changed files
with
35 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
$1 = $Args[0] | ||
$2 = $Args[1] | ||
|
||
if($1 -eq $null) { | ||
echo "You must give a version number. eg: ./bin/build.sh 1.0.0" | ||
} | ||
else { | ||
echo "** building parsley.min.js version " $1 | ||
ruby ./bin/minify parsley.js dist/parsley.min.js $1 --force | ||
echo " done!" | ||
|
||
echo "** building parsley-standalone.min.js version " $1 | ||
ruby ./bin/minify tests/resources/zepto-1.0rc1[zepto.event.data.ajax.fx.fx_modules].js parsley.js dist/parsley-standalone.min.js $1 --force | ||
echo " done!" | ||
|
||
echo "** building parsley.extend.min.js version " $1 | ||
ruby ./bin/minify parsley.extend.js dist/parsley.extend.min.js $1 --force | ||
echo " done!" | ||
} | ||
|
||
if($2 -eq "doc") { | ||
echo "** generating API doc " | ||
./bin/doc.sh $1 | ||
echo " done!" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
$1 = $Args[0] | ||
|
||
if($1 -ne $null) { | ||
yuidoc -n -o doc/api --project-version $1 --quiet . | ||
} | ||
else { | ||
yuidoc -n -o doc/api . | ||
} |