Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Build: Add a dist:git task, along with a copy:git target for git-cdn …
Browse files Browse the repository at this point in the history
…deploys
  • Loading branch information
jzaefferer committed Jun 12, 2013
1 parent b431897 commit 988d0dd
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Gruntfile.js
Expand Up @@ -338,6 +338,46 @@ module.exports = function( grunt ) {
dest: "<%= files.cdn %>"
}
]
},
git: {
files: [
{
src: "dist/jquery.mobile.js",
dest: "dist/git/jquery.mobile-git.js"
},
{
src: "dist/jquery.mobile.min.js",
dest: "dist/git/jquery.mobile-git.min.js"
},
{
src: "dist/jquery.mobile.css",
dest: "dist/git/jquery.mobile-git.css"
},
{
src: "dist/jquery.mobile.min.css",
dest: "dist/git/jquery.mobile-git.min.css"
},
{
src: "dist/jquery.mobile.structure.css",
dest: "dist/git/jquery.mobile.structure-git.css"
},
{
src: "dist/jquery.mobile.structure.min.css",
dest: "dist/git/jquery.mobile.structure-git.min.css"
},
{
src: "dist/jquery.mobile.zip",
dest: "dist/git/jquery.mobile-git.zip"
},
{
expand: true,
cwd: dist,
src: [
"images/*"
],
dest: "dist/git/"
}
]
}
},

Expand Down Expand Up @@ -555,6 +595,7 @@ module.exports = function( grunt ) {

grunt.registerTask( "dist", [ "config:fetchHeadHash", "js:release", "css:release", "copy:images", "demos", "compress:dist" ] );
grunt.registerTask( "dist:release", [ "release:init", "dist", "cdn" ] );
grunt.registerTask( "dist:git", ["dist", "copy:git"] );

grunt.registerTask( "test", [ "jshint", "config:fetchHeadHash", "js:release", "connect", "qunit:http" ] );
grunt.registerTask( "test:ci", [ "qunit_junit", "connect", "qunit:http" ] );
Expand Down

0 comments on commit 988d0dd

Please sign in to comment.