improved asset (css/js) build pipeline, added revision to css and js. Will remove issues related to the browser cache when upgrading grafana and improve load performance (Fixes #418)

This commit is contained in:
Torkel Ödegaard
2014-06-02 20:29:30 +02:00
parent 62af77979b
commit 0f7a55d031
4 changed files with 5 additions and 74 deletions
+2 -16
View File
@@ -61,9 +61,6 @@ module.exports = function(config,grunt) {
'jquery.flot.pie',
'angular-sanitize',
'angular-dragdrop',
'panels/graphite/module',
'panels/text/module',
'panels/timepicker/module'
]
}
];
@@ -73,19 +70,8 @@ module.exports = function(config,grunt) {
// create a module for each directory in src/app/panels/
fs.readdirSync(panelPath).forEach(function (panelName) {
if(!grunt.file.exists(panelPath+'/'+panelName+'/module.js')) {
fs.readdirSync(panelPath+"/"+panelName).forEach(function (subName) {
requireModules.push({
name: 'panels/'+panelName+'/'+subName+'/module',
exclude: ['app']
});
})
} else {
requireModules.push({
name: 'panels/'+panelName+'/module',
exclude: ['app']
});
}
requireModules[0].include.push('panels/'+panelName+'/module');
requireModules[0].include.push('text!panels/'+panelName+'/module.html');
});
// exclude the literal config definition from all modules