mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
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:
@@ -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',
|
||||
|
Reference in New Issue
Block a user