1 # in build/bin/config.sh this setting will alter the variable definitions to match
2 # the changes for the deploy target in the makefile. temp solution
3 ARGS = IS_DEPLOY_TARGET=false
4 deploy: ARGS = IS_DEPLOY_TARGET=true
6 # The output folder for the finished files
10 # When no build target is specified, all gets ran
11 all: css js zip notify
14 @@node node_modules/.bin/grunt clean
16 # Create the output directory.
17 # NOTE it doesn't appear as though you can override init from a task file
19 @@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
21 @@node node_modules/.bin/grunt custom_init
23 # Build and minify the CSS files
25 @@${ARGS} node node_modules/.bin/grunt css
27 # Build and minify the JS files
29 @@${ARGS} node node_modules/.bin/grunt js
31 # -------------------------------------------------
33 # For jQuery Team Use Only
35 # -------------------------------------------------
37 @@${ARGS} bash build/bin/docs.sh
39 # Output a message saying the process is complete
41 @@echo "The files have been built and are in: " $$(pwd)/${OUTPUT}
44 # Zip up the jQm files without docs
46 @@${ARGS} bash build/bin/zip.sh
48 build_latest: css docs js zip
49 @@${ARGS} bash build/bin/build_latest.sh
51 # Push the latest git version to the CDN. This is done on a post commit hook
53 @@${ARGS} bash build/bin/deploy_latest.sh
55 # TODO target name preserved to avoid issues during refactor, latest -> deploy_latest
56 latest: build_latest deploy_latest
58 # Push the nightly backups. This is done on a server cronjob
60 @@${ARGS} bash build/bin/deploy_nightlies.sh
62 # Deploy a finished release. This is manually done.
63 deploy: clean init css js docs zip
64 @@${ARGS} bash build/bin/deploy.sh