1
0
Fork 0
intro-to-vagrant/bower_components/reveal-highlight-themes/Gruntfile.js

62 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

2015-02-11 14:37:10 -05:00
module.exports = function (grunt) {
'use strict';
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
// Project configuration
grunt.initConfig({
replace: {
hljs: {
src: ['bower_components/highlightjs/styles/*.css'],
dest: 'styles/',
replacements: [{
from: '.hljs-',
to: '.'
}, {
from: '.hljs',
to: 'pre code'
},{
from: /^\./mg,
to: 'pre .'
}]
}
},
bump: {
options: {
files: [
'package.json',
'bower.json',
'README.md'
],
updateConfigs: [],
commit: true,
commitMessage: 'Release v%VERSION% #noissue',
commitFiles: ['-a'], // '-a' for all files
createTag: true,
tagName: '%VERSION%',
tagMessage: 'Version %VERSION%',
push: true,
pushTo: 'origin master',
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d' // options to use with '$ git describe'
}
}
});
// Default task
grunt.registerTask('build', [
'replace:hljs'
]);
grunt.registerTask('default', [
'build'
]);
grunt.registerTask('release', [
'build',
'bump'
]);
};