Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 65 lines (49 sloc) 1.874 kb
b6a1415 John Bender deploy target converted using prefix args for deploy variables
johnbender authored
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
5
a213cfa Eddie Monge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
6 # The output folder for the finished files
7 OUTPUT = compiled
96c1647 Eddie Monge Changes so make can be run with just make nightly for the nightly builds
eddiemonge authored
8
a213cfa Eddie Monge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
9 # Build Targets
10 # When no build target is specified, all gets ran
e7ee7fe Ghislain Seguin More house cleaning
gseguin authored
11 all: css js zip notify
38b8ee5 Eddie Monge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
12
fbc0878 John Bender move init to custom_init, issues with default grunt task
johnbender authored
13 clean: init
14 @@node node_modules/.bin/grunt clean
de92360 Ghislain Seguin House cleaning: clean target cleans, init target inits
gseguin authored
15
1afbfc4 John Bender fix for bsd/linux sed incompat
johnbender authored
16 # Create the output directory.
fbc0878 John Bender move init to custom_init, issues with default grunt task
johnbender authored
17 # NOTE it doesn't appear as though you can override init from a task file
e7ee7fe Ghislain Seguin More house cleaning
gseguin authored
18 init:
5ba6130 John Bender correct version requirement information
johnbender authored
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
5fe3f99 John Bender switched Makefile to grunt for js and css build targets, fixed image cop...
johnbender authored
20 @@npm install
fbc0878 John Bender move init to custom_init, issues with default grunt task
johnbender authored
21 @@node node_modules/.bin/grunt custom_init
38b8ee5 Eddie Monge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
22
a213cfa Eddie Monge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
23 # Build and minify the CSS files
24 css: init
4998f8c John Bender handle the name definition in the deploy build target
johnbender authored
25 @@${ARGS} node node_modules/.bin/grunt css
a213cfa Eddie Monge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
26
0c5cc21 John Bender moved css and js build targets out to shell scripts, first step in grunt...
johnbender authored
27 # Build and minify the JS files
28 js: init
4998f8c John Bender handle the name definition in the deploy build target
johnbender authored
29 @@${ARGS} node node_modules/.bin/grunt js
a213cfa Eddie Monge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
30
5fe3f99 John Bender switched Makefile to grunt for js and css build targets, fixed image cop...
johnbender authored
31 # -------------------------------------------------
32 #
33 # For jQuery Team Use Only
34 #
35 # -------------------------------------------------
bf4c4c8 Ghislain Seguin docs are not using requireJS anymore so use generated js/css resulting f...
gseguin authored
36 docs: init js css
b6a1415 John Bender deploy target converted using prefix args for deploy variables
johnbender authored
37 @@${ARGS} bash build/bin/docs.sh
a213cfa Eddie Monge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
38
39 # Output a message saying the process is complete
40 notify: init
41 @@echo "The files have been built and are in: " $$(pwd)/${OUTPUT}
e2fa299 John Resig Adjust sub-directory URLs before deploying the demos.
jeresig authored
42
43
a213cfa Eddie Monge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
44 # Zip up the jQm files without docs
b183972 John Bender remove all zip files before compressing, add build latest and deploy lat...
johnbender authored
45 zip: init css js
b6a1415 John Bender deploy target converted using prefix args for deploy variables
johnbender authored
46 @@${ARGS} bash build/bin/zip.sh
19c952a Eddie Monge For all versions of make except for deploy, the outputted scripts will h...
eddiemonge authored
47
84f6085 John Bender remove init from latest build target
johnbender authored
48 build_latest: css docs js zip
b6a1415 John Bender deploy target converted using prefix args for deploy variables
johnbender authored
49 @@${ARGS} bash build/bin/build_latest.sh
a213cfa Eddie Monge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
50
48e8b1d John Bender remove the version sed, keep the defines in the lib js (not compiled) fo...
johnbender authored
51 # Push the latest git version to the CDN. This is done on a post commit hook
0b858d2 John Bender split up latest build and deploy
johnbender authored
52 deploy_latest:
b6a1415 John Bender deploy target converted using prefix args for deploy variables
johnbender authored
53 @@${ARGS} bash build/bin/deploy_latest.sh
a213cfa Eddie Monge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
54
0b858d2 John Bender split up latest build and deploy
johnbender authored
55 # TODO target name preserved to avoid issues during refactor, latest -> deploy_latest
56 latest: build_latest deploy_latest
57
9dcc864 John Bender push the latest build output as nightlies
johnbender authored
58 # Push the nightly backups. This is done on a server cronjob
59 deploy_nightlies:
b6a1415 John Bender deploy target converted using prefix args for deploy variables
johnbender authored
60 @@${ARGS} bash build/bin/deploy_nightlies.sh
a213cfa Eddie Monge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
61
62 # Deploy a finished release. This is manually done.
4a0085b John Bender add clean as a deploy prereq
johnbender authored
63 deploy: clean init css js docs zip
b6a1415 John Bender deploy target converted using prefix args for deploy variables
johnbender authored
64 @@${ARGS} bash build/bin/deploy.sh
Something went wrong with that request. Please try again.