Skip to content

Commit

Permalink
Added powershell scripts to build with on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Zwirtz committed Mar 21, 2013
1 parent 64fc9a4 commit bb34a9d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
26 changes: 26 additions & 0 deletions bin/build.ps1
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!"
}
9 changes: 9 additions & 0 deletions bin/doc.ps1
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 .
}

0 comments on commit bb34a9d

Please sign in to comment.