You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
46 lines
1.2 KiB
module.exports = function(grunt){ |
|
grunt.initConfig({ |
|
gitclone: { |
|
fontawesome: { |
|
options: { |
|
repository: 'https://github.com/FortAwesome/Font-Awesome.git', |
|
directory: 'tmp/fontawesome' |
|
}, |
|
}, |
|
fancybox: { |
|
options: { |
|
repository: 'https://github.com/fancyapps/fancyBox.git', |
|
directory: 'tmp/fancybox' |
|
} |
|
} |
|
}, |
|
copy: { |
|
fontawesome: { |
|
expand: true, |
|
cwd: 'tmp/fontawesome/fonts/', |
|
src: ['**'], |
|
dest: 'source/css/fonts/' |
|
}, |
|
fancybox: { |
|
expand: true, |
|
cwd: 'tmp/fancybox/source/', |
|
src: ['**'], |
|
dest: 'source/fancybox/' |
|
} |
|
}, |
|
_clean: { |
|
tmp: ['tmp'], |
|
fontawesome: ['source/css/fonts'], |
|
fancybox: ['source/fancybox'] |
|
} |
|
}); |
|
|
|
require('load-grunt-tasks')(grunt); |
|
|
|
grunt.renameTask('clean', '_clean'); |
|
|
|
grunt.registerTask('fontawesome', ['gitclone:fontawesome', 'copy:fontawesome', '_clean:tmp']); |
|
grunt.registerTask('fancybox', ['gitclone:fancybox', 'copy:fancybox', '_clean:tmp']); |
|
grunt.registerTask('default', ['gitclone', 'copy', '_clean:tmp']); |
|
grunt.registerTask('clean', ['_clean']); |
|
}; |