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
#!/usr/bin/env bash | |
JENKINS_URL=http://jenkins.postapp.com/job | |
if [ $# -eq 0 ] | |
then | |
echo "usage: fd <jenkins build task> [<jenkins build task> ...]" | |
fi | |
for var in "$@" |
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
#!/usr/bin/env bash | |
# Run this script in your grunt-0.3.x project directory that has been updated to use grunt-0.4.x | |
set -e | |
# Make sure node-0.8.x is installed | |
if node -v | grep ^v0.8.\* ; then | |
echo "You have node 0.8.x installed..." | |
else |
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
desc('Minify javascript.'); | |
task('minify', function (params) { | |
var task = this, startTime = +new Date(), minifiedCount = 0, | |
targetPath = process.env.JS_BUILD_DIR || './'; | |
debugFiles = barkeep.fileListRecursive(path.join(BUILD_GLOBALS.output, targetPath), BUILD_GLOBALS.debugExpr), | |
uglifyBin = path.join(__dirname, 'node_modules', 'uglify-js', 'bin', 'uglifyjs'); | |
console.log('Minifying javascript files...'.green); | |
barkeep.directory(BUILD_GLOBALS.output); // Create build directory (if it doesn't exist). | |
async.forEach(debugFiles, function (fileName, callback) { | |
var extension = path.extname(fileName); |
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
<target name="js-compile-all" description="Compile JavaScript files with Closure" unless="skip-js-compile"> | |
<echo>Compiling JS files in ${input.scripts.dir} in closure...</echo> | |
<apply executable="java" dest="${output.scripts.dir}"> | |
<arg value="-jar"/> | |
<arg path="${jar.lib.dir}/closure-compiler.jar"/> | |
<arg line="--js"/> | |
<srcfile/> | |
<arg line="--js_output_file"/> | |
<targetfile/> | |
<fileset dir="${output.scripts.dir}" includes="**/*-main.debug.js" /> |
NewerOlder