mirror of https://github.com/grafana/grafana
parent
82061c7c3b
commit
abac8bccc6
@ -0,0 +1,6 @@ |
||||
|
||||
export * from './time_series' |
||||
export * from './directives/cool_dir' |
||||
export * from './routes/module_loader' |
||||
|
||||
|
@ -0,0 +1,7 @@ |
||||
|
||||
export class CoolDir { |
||||
getName() : string { |
||||
return "CoolDir"; |
||||
} |
||||
} |
||||
|
@ -0,0 +1,19 @@ |
||||
///<reference path="../../headers/require.d.ts" />
|
||||
|
||||
export class ModuleLoader { |
||||
lazy: any |
||||
|
||||
constructor(moduleName) { |
||||
|
||||
this.lazy = ["$q", "$route", "$rootScope", function($q, $route, $rootScope) { |
||||
var defered = $q.defer(); |
||||
|
||||
require([moduleName], function () { |
||||
defered.resolve(); |
||||
}); |
||||
|
||||
return defered.promise; |
||||
}]; |
||||
|
||||
} |
||||
} |
@ -0,0 +1,6 @@ |
||||
export class TimeSeries { |
||||
getName() : string { |
||||
return "TimeSeries"; |
||||
} |
||||
} |
||||
|
@ -1,6 +1,16 @@ |
||||
// Lint and build CSS
|
||||
module.exports = function(grunt) { |
||||
grunt.registerTask('css', ['less:src', 'concat:cssDark', 'concat:cssLight']); |
||||
grunt.registerTask('default', ['jscs', 'jshint', 'css']); |
||||
'use strict'; |
||||
|
||||
grunt.registerTask('css', ['less', 'concat:cssDark', 'concat:cssLight']); |
||||
grunt.registerTask('default', [ |
||||
'jscs', |
||||
'jshint', |
||||
'clean:gen', |
||||
'copy:everything_but_ts_and_less', |
||||
'css', |
||||
'typescript:build' |
||||
]); |
||||
|
||||
grunt.registerTask('test', ['default', 'karma:test']); |
||||
}; |
||||
|
@ -1,6 +1,9 @@ |
||||
module.exports = function(config) { |
||||
'use strict'; |
||||
|
||||
return { |
||||
on_start: ['<%= destDir %>', '<%= tempDir %>'], |
||||
release: ['<%= destDir %>', '<%= tempDir %>', '<%= genDir %>'], |
||||
gen: ['<%= genDir %>'], |
||||
temp: ['<%= tempDir %>'] |
||||
}; |
||||
}; |
||||
|
@ -1,25 +1,16 @@ |
||||
module.exports = function(config) { |
||||
|
||||
return { |
||||
// this is the only task, other than copy, that runs on the src directory, since we don't really need
|
||||
// the less files in the dist. Everything else runs from on temp, and require copys everything
|
||||
// from temp -> dist
|
||||
dist:{ |
||||
expand: true, |
||||
cwd:'<%= srcDir %>/vendor/bootstrap/less/', |
||||
src: ['bootstrap.dark.less', 'bootstrap.light.less'], |
||||
dest: '<%= tempDir %>/css/', |
||||
}, |
||||
// Compile in place when not building
|
||||
src:{ |
||||
options: { |
||||
paths: ["<%= srcDir %>/vendor/bootstrap/less", "<%= srcDir %>/css/less"], |
||||
yuicompress:true |
||||
paths: ["<%= srcDir %>/vendor/bootstrap/less", "<%= srcDir %>/less"], |
||||
yuicompress: true |
||||
}, |
||||
files: { |
||||
"<%= srcDir %>/css/bootstrap.dark.min.css": "<%= srcDir %>/css/less/bootstrap.dark.less", |
||||
"<%= srcDir %>/css/bootstrap.light.min.css": "<%= srcDir %>/css/less/bootstrap.light.less", |
||||
"<%= srcDir %>/css/bootstrap-responsive.min.css": "<%= srcDir %>/css/less/grafana-responsive.less" |
||||
"<%= genDir %>/css/bootstrap.dark.min.css": "<%= srcDir %>/less/bootstrap.dark.less", |
||||
"<%= genDir %>/css/bootstrap.light.min.css": "<%= srcDir %>/less/bootstrap.light.less", |
||||
"<%= genDir %>/css/bootstrap-responsive.min.css": "<%= srcDir %>/less/grafana-responsive.less" |
||||
} |
||||
} |
||||
}; |
||||
}; |
||||
}; |
||||
|
Loading…
Reference in new issue