progress on being able to use exact same code base for backend and standalone version, building optimized build needs a little more work

This commit is contained in:
Torkel Ödegaard
2014-12-31 14:18:34 +01:00
parent 53ff171436
commit f8ddfec98c
6 changed files with 107 additions and 9 deletions

View File

@@ -20,7 +20,7 @@ module.exports = function(grunt) {
'filerev',
'usemin',
'clean:temp',
'uglify:dest'
// 'uglify:dest'
]);
grunt.registerTask('build:grafanaVersion', function() {

View File

@@ -28,7 +28,7 @@ module.exports = function(config) {
js: {
src: [
'<%= destDir %>/vendor/require/require.js',
'<%= destDir %>/app/components/require.config.js',
'<%= destDir %>/app/components/require.standalone.js',
'<%= destDir %>/app/app.js',
],
dest: '<%= destDir %>/app/app.js'

View File

@@ -8,7 +8,7 @@ module.exports = function(config,grunt) {
dir: '<%= destDir %>',
baseUrl: './app',
mainConfigFile: '<%= tempDir %>/app/components/require.config.js',
mainConfigFile: '<%= tempDir %>/app/components/require.standalone.js',
modules: [], // populated below,
optimize: 'none',
@@ -63,7 +63,8 @@ module.exports = function(config,grunt) {
'directives/all',
'filters/all',
'controllers/all',
'routes/standalone/default',
'routes/standalone/all',
'routes/backend/all',
'components/partials',
]
}