Fetching contributors…
Cannot retrieve contributors at this time
65 lines (49 sloc) 1.82 KB
# in build/bin/ this setting will alter the variable definitions to match
# the changes for the deploy target in the makefile. temp solution
deploy: ARGS = IS_DEPLOY_TARGET=true
# The output folder for the finished files
OUTPUT = compiled
# Build Targets
# When no build target is specified, all gets ran
all: css js zip notify
clean: init
@@node node_modules/.bin/grunt clean
# Create the output directory.
# NOTE it doesn't appear as though you can override init from a task file
@@if ! (node -v | grep "\(v0.[6-9]\|v[1-9].[0-9]\)" > /dev/null); then echo "!!! node.js ~> 0.6.x required" && exit 1; fi
@@npm install
@@node node_modules/.bin/grunt custom_init
# Build and minify the CSS files
css: init
@@node node_modules/.bin/grunt css
# Build and minify the JS files
js: init
@@node node_modules/.bin/grunt js
# -------------------------------------------------
# For jQuery Team Use Only
# -------------------------------------------------
docs: init js css
@@${ARGS} bash build/bin/
# Output a message saying the process is complete
notify: init
@@echo "The files have been built and are in: " $$(pwd)/${OUTPUT}
# Zip up the jQm files without docs
zip: init css js
@@${ARGS} bash build/bin/
build_latest: css docs js zip
@@${ARGS} bash build/bin/
# Push the latest git version to the CDN. This is done on a post commit hook
@@${ARGS} bash build/bin/
# TODO target name preserved to avoid issues during refactor, latest -> deploy_latest
latest: build_latest deploy_latest
# Push the nightly backups. This is done on a server cronjob
@@${ARGS} bash build/bin/
# Deploy a finished release. This is manually done.
deploy: clean init css js docs zip
@@${ARGS} bash build/bin/