build system changes

This commit is contained in:
Torkel Ödegaard 2014-05-31 15:32:00 +02:00
commit d499f4e0d0
9 changed files with 3823 additions and 14 deletions

View File

@ -3,6 +3,7 @@ vNext
- Allow special characters in serie names (influxdb datasource), PR #390 - thx @majst01 - Allow special characters in serie names (influxdb datasource), PR #390 - thx @majst01
- Refactoring of filterSrv (Issue #428), thx @Tetha - Refactoring of filterSrv (Issue #428), thx @Tetha
- New config for playlist feature. Set playlist_timespan to set default playlist interval (Issue #445) - thx @rmca - New config for playlist feature. Set playlist_timespan to set default playlist interval (Issue #445) - thx @rmca
- New InfluxDB function difference add to function dropdown (PR #455)
# Fixes # Fixes
- Filter option loading when having muliple nested filters now works better. - Filter option loading when having muliple nested filters now works better.

View File

@ -44,7 +44,11 @@
"karma-mocha": "~0.1.1", "karma-mocha": "~0.1.1",
"karma-expect": "~1.0.0", "karma-expect": "~1.0.0",
"grunt-cli": "~0.1.13", "grunt-cli": "~0.1.13",
"jshint-stylish": "~0.1.5" "jshint-stylish": "~0.1.5",
"grunt-contrib-concat": "^0.4.0",
"grunt-angular-templates": "^0.5.5",
"grunt-usemin": "^2.1.1",
"grunt-filerev": "^0.2.1"
}, },
"engines": { "engines": {
"node": "0.10.x", "node": "0.10.x",
@ -55,8 +59,6 @@
}, },
"license": "Apache License", "license": "Apache License",
"dependencies": { "dependencies": {
"grunt-contrib-concat": "^0.4.0",
"grunt-filerev": "^0.2.1",
"grunt-usemin": "^2.1.1"
} }
} }

View File

@ -98,8 +98,9 @@ function (angular, $, _, appLevelRequire) {
'pasvaz.bindonce' 'pasvaz.bindonce'
]; ];
_.each('controllers directives factories services services.dashboard filters'.split(' '), var module_types = ['controllers', 'directives', 'factories', 'services', 'services.dashboard', 'filters'];
function (type) {
_.each(module_types, function (type) {
var module_name = 'kibana.'+type; var module_name = 'kibana.'+type;
// create the module // create the module
app.useModule(angular.module(module_name, [])); app.useModule(angular.module(module_name, []));
@ -117,7 +118,8 @@ function (angular, $, _, appLevelRequire) {
require([ require([
'controllers/all', 'controllers/all',
'directives/all', 'directives/all',
'filters/all' 'filters/all',
'components/partials',
], function () { ], function () {
// bootstrap the app // bootstrap the app

View File

@ -0,0 +1,2 @@
define([
], function () {});

View File

@ -17,7 +17,10 @@ function (angular) {
$scope.rawQuery = false; $scope.rawQuery = false;
$scope.functions = ['count', 'mean', 'sum', 'min', 'max', 'mode', 'distinct', 'median', 'derivative', 'stddev', 'first', 'last']; $scope.functions = ['count', 'mean', 'sum', 'min',
'max', 'mode', 'distinct', 'median',
'derivative', 'stddev', 'first', 'last',
'difference'];
$scope.operators = ['=', '=~', '>', '<', '!~', '<>']; $scope.operators = ['=', '=~', '>', '<', '!~', '<>'];
$scope.oldSeries = $scope.target.series; $scope.oldSeries = $scope.target.series;
$scope.$on('typeahead-updated', function(){ $scope.$on('typeahead-updated', function(){

3791
src/css/default.min.css vendored

File diff suppressed because it is too large Load Diff

View File

@ -9,6 +9,7 @@ module.exports = function(grunt) {
'concat:css', 'concat:css',
'copy:everything_but_less_to_temp', 'copy:everything_but_less_to_temp',
'htmlmin:build', 'htmlmin:build',
'ngtemplates:app',
'cssmin:build', 'cssmin:build',
'ngmin:build', 'ngmin:build',
'requirejs:build', 'requirejs:build',

View File

@ -2,11 +2,11 @@ module.exports = function(config) {
return { return {
css: { css: {
src: [ src: [
'<%= srcDir %>/css/normalize.min.css', '<%= srcDir %>/css/normalize.min.css',
'<%= srcDir %>/css/bootstrap.dark.min.css', '<%= srcDir %>/css/bootstrap.dark.min.css',
'<%= srcDir %>/css/timepicker.css', '<%= srcDir %>/css/timepicker.css',
'<%= srcDir &>/css/spectrum.css', '<%= srcDir %>/css/spectrum.css',
'<%= srcDir &>/css/animate.min.css' '<%= srcDir %>/css/animate.min.css'
], ],
dest: '<%= srcDir %>/css/default.min.css' dest: '<%= srcDir %>/css/default.min.css'
}, },

View File

@ -0,0 +1,9 @@
module.exports = function(config) {
return {
kibana: {
cwd: '<%= tempDir %>',
src: 'app/**/*.html',
dest: '<%= tempDir %>/app/components/partials.js',
}
};
};