Merge pull request #536 in FS/freeswitch from feature/vc-help-about to master

* commit 'c1736915ade5ae554d990271f8e5940428ca0c07':
  FS-8288 About Screen and Help link
This commit is contained in:
Ken Rice
2015-10-02 17:54:01 -05:00
11 changed files with 90 additions and 2 deletions

View File

@@ -63,6 +63,26 @@ module.exports = function (grunt) {
}
},
revision: {
options: {
property: 'meta.revision',
ref: 'HEAD',
short: true
}
},
preprocess: {
options: {
context: {
revision: '<%= meta.revision %>'
}
},
js: {
src: 'src/vertoControllers/controllers/AboutController.source.js',
dest: 'src/vertoControllers/controllers/AboutController.js'
},
},
postcss: {
options: {
map: true,
@@ -286,6 +306,7 @@ module.exports = function (grunt) {
'*.html',
'*.json',
'partials/**/*.html',
'img/*.png',
'images/{,*/}*.{webp}',
'css/fonts/{,*/}*.*',
'sounds/*.*'
@@ -327,6 +348,9 @@ module.exports = function (grunt) {
},
});
grunt.loadNpmTasks('grunt-git-revision');
grunt.loadNpmTasks('grunt-preprocess');
grunt.registerTask('serve', function (target) {
var tasks = [
'wiredep',
@@ -339,9 +363,13 @@ module.exports = function (grunt) {
grunt.task.run(tasks);
});
grunt.registerTask('default', ['build']);
grunt.registerTask('build', [
'clean:dist',
'revision',
'preprocess',
'wiredep',
'useminPrepare',
'concurrent:dist',