chrome_point_plus/Gruntfile.js

57 lines
1.6 KiB
JavaScript
Raw Normal View History

2014-12-31 19:49:19 +00:00
var vendorCopy = [
'jquery/jquery.min.js',
'fancybox/source/jquery.fancybox.pack.js',
'fancybox/source/helpers/jquery.fancybox-media.js',
'fancybox/source/jquery.fancybox.css',
'markitup/markitup/jquery.markitup.js',
'markitup/markitup/skins/markitup/style.css'
].map(function(file) {
return {
src: 'vendor/' + file,
dest: 'chrome_point_plus/vendor/' + file
};
});
vendorCopy.push({
expand: true,
src: [ 'vendor/fancybox/source/*.png' ],
dest: 'chrome_point_plus/'
});
module.exports = function(grunt) {
// Настройки
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Что копировать
copy: {
main: {
files: vendorCopy
}
2015-01-03 11:23:45 +00:00
},
bump: {
options: {
files: [ 'package.json', 'bower.json', 'chrome_point_plus/manifest.json' ],
commit: true,
commitMessage: 'Release v%VERSION%',
commitFiles: [ 'package.json', 'bower.json', 'chrome_point_plus/manifest.json' ],
createTag: true,
tagName: 'v%VERSION%',
tagMessage: 'Version %VERSION%',
push: false,
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d',
globalReplace: true
}
},
2014-12-31 19:49:19 +00:00
});
// Загрузить плагины
grunt.loadNpmTasks('grunt-contrib-copy');
2015-01-03 11:23:45 +00:00
grunt.loadNpmTasks('grunt-bump');
2014-12-31 19:49:19 +00:00
// Что выполнять по команде `grunt`
grunt.registerTask('default', [ 'copy' ]);
};