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',
|
2015-01-05 20:39:12 +00:00
|
|
|
'markitup/markitup/skins/markitup/style.css',
|
|
|
|
|
|
|
|
'soundcloud/soundcloud.player.api.js'
|
2014-12-31 19:49:19 +00:00
|
|
|
].map(function(file) {
|
|
|
|
return {
|
|
|
|
src: 'vendor/' + file,
|
|
|
|
dest: 'chrome_point_plus/vendor/' + file
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
vendorCopy.push({
|
|
|
|
expand: true,
|
2015-02-08 10:39:39 +00:00
|
|
|
src: [
|
|
|
|
'vendor/fancybox/source/*.png',
|
|
|
|
'vendor/fancybox/source/*.gif'
|
|
|
|
],
|
2014-12-31 19:49:19 +00:00
|
|
|
dest: 'chrome_point_plus/'
|
|
|
|
});
|
|
|
|
|
2014-11-26 21:38:14 +00:00
|
|
|
/* global module */
|
2014-12-31 19:49:19 +00:00
|
|
|
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,
|
2015-01-05 20:48:03 +00:00
|
|
|
commitMessage: 'Release %VERSION%',
|
2015-01-03 11:23:45 +00:00
|
|
|
commitFiles: [ 'package.json', 'bower.json', 'chrome_point_plus/manifest.json' ],
|
|
|
|
createTag: true,
|
2015-01-05 20:48:03 +00:00
|
|
|
tagName: '%VERSION%',
|
2015-01-03 11:23:45 +00:00
|
|
|
tagMessage: 'Version %VERSION%',
|
|
|
|
push: false,
|
|
|
|
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d',
|
|
|
|
globalReplace: true
|
|
|
|
}
|
2014-11-26 21:38:14 +00:00
|
|
|
}
|
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' ]);
|
|
|
|
};
|