0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-12-04 22:04:55 +01:00

disable 'template' because of weird caching

This commit is contained in:
Rick Companje 2018-01-02 15:29:01 +01:00
parent d27ac15f15
commit c36da87a17

View File

@ -14,28 +14,28 @@ module.exports = function(grunt) {
options: {}, options: {},
commands: { 'tag': ['tag', '--points-at', 'HEAD'] } commands: { 'tag': ['tag', '--points-at', 'HEAD'] }
}, },
template: { // template: {
'add_build_info': { // 'add_build_info': {
options: { // options: {
data: function() { // data: function() {
grunt.task.requires('gitinfo'); // grunt.task.requires('gitinfo');
var gi = grunt.config('gitinfo'); // var gi = grunt.config('gitinfo');
var lbc = gi.local.branch.current; // var lbc = gi.local.branch.current;
var tags = (gi.tag == '') ? 'no_tag' : gi.tag; // var tags = (gi.tag == '') ? 'no_tag' : gi.tag;
tags = tags.split('\n').join(','); // tags = tags.split('\n').join(',');
var commitMsg = lbc.lastCommitMessage.slice(1, -1).split('\n')[0].replace(/"/g, '\\\"'); // var commitMsg = lbc.lastCommitMessage.slice(1, -1).split('\n')[0].replace(/"/g, '\\\"');
var buildInfo = lbc.shortSHA + "/" + lbc.name + "/" + tags + // var buildInfo = lbc.shortSHA + "/" + lbc.name + "/" + tags +
" (" + lbc.lastCommitTime.slice(1, -1) + "; \'" + commitMsg + "'"; // " (" + lbc.lastCommitTime.slice(1, -1) + "; \'" + commitMsg + "'";
return { 'build_info': buildInfo }; // return { 'build_info': buildInfo };
} // }
}, // },
files: { // files: {
'js/main.js.out': ['js/main.js'] // 'js/main.js.out': ['js/main.js']
} // }
} // }
}, // },
concat: { concat: {
options: { options: {
// separator: ';' // separator: ';'
@ -47,8 +47,9 @@ module.exports = function(grunt) {
'js/settings/*.js', 'js/settings/*.js',
'js/*.js', 'js/*.js',
// make sure we put main.js last // make sure we put main.js last
'!js/main.js', // '!js/main.js',
'js/main.js.out' // 'js/main.js.out'
'js/main.js'
], ],
dest: 'www/js/<%= pkg.name %>.js' dest: 'www/js/<%= pkg.name %>.js'
} }
@ -169,7 +170,7 @@ module.exports = function(grunt) {
// Default task. // Default task.
grunt.registerTask('default', [ grunt.registerTask('default', [
'gitinfo', 'gitinfo',
'template', // 'template',
'less', 'less',
'autoprefixer', 'autoprefixer',
'cssmin', 'cssmin',