Skip to content

Commit

Permalink
version 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jifwin committed Mar 20, 2018
1 parent 6c76b49 commit 25deaea
Show file tree
Hide file tree
Showing 327 changed files with 7,451 additions and 1,599 deletions.
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

123 changes: 106 additions & 17 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,108 @@
'use strict';
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-typescript');
module.exports = function (grunt) {
require("load-grunt-tasks")(grunt);
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks("grunt-execute");
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-package-modules");
grunt.loadNpmTasks("grunt-tslint");
grunt.loadNpmTasks("grunt-karma");

grunt.initConfig({
typescript: {
base: {
src: ['*.ts'],
dest: '.',
options: {
module: 'amd'
}
}
}
});
grunt.initConfig({
clean: {
dist: ["dist"],
post: ["dist/node_modules"]
},
packageModules: {
dist: {
src: "package.json",
dest: "dist"
},
},
copy: {
src_to_dist: {
cwd: "src",
expand: true,
src: ["**/*", "!**/*.js", "!**/*.scss", "!node_modules/**/*"],
dest: "dist"
},
pluginDef: {
expand: true,
src: ["plugin.json"],
dest: "dist"
}
},
watch: {
rebuild_all: {
files: ["src/**/*"],
tasks: ["watch-ts"],
options: {spawn: false}
}
},
tslint: {
options: {
configuration: "tslint.json"
},
files: {
src: [
"src/**/*.ts"
]
},
test: {
src: [
"specs/*.ts",
"specs/**/*.ts"
]
}
},
typescript: {
build: {
src: [
"dist/**/*.ts"
],
dest: "dist/",
options: {
module: "system",
target: "es5",
rootDir: "dist/",
keepDirectoryHierarchy: false,
declaration: true,
emitDecoratorMetadata: true,
experimentalDecorators: true,
sourceMap: true,
noImplicitAny: false
}
}
},
babel: {
options: {
sourceMap: true,
presets: ["es2015"]
},
distTestsSpecsNoSystemJs: {
files: [{
expand: true,
cwd: "src/spec",
src: ["**/*.js"],
dest: "dist/test/spec",
ext: ".js"
}]
}
},
karma: {
unit: {
configFile: "karma.conf.js"
}
}
});

grunt.registerTask('default', ['typescript']);

}
grunt.registerTask("default", [
"clean:dist",
"copy",
"packageModules",
"tslint",
"typescript:build",
"babel",
// "karma",
"clean:post"
]);
};
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ Starting in Grafana 3.x the KairosDB data source is no longer included out of th

But it is easy to install this plugin!

## Documentation
[KairosDB Plugin Documentation](http://docs.grafana.org/datasources/kairosdb/)

## Installation
Either clone this repo into your grafana plugins directory (default /var/lib/grafana/plugins if your installing grafana with package). Then run grunt to compile typescript.
Restart grafana-server and the plugin should be automatically detected and used.

```
git clone git@github.com:grafana/datasource-plugin-kairosdb.git
git clone https://github.com/grafana/kairosdb-datasource
npm install
grunt
sudo service grafana-server restart
Expand Down
11 changes: 0 additions & 11 deletions config_ctrl.js

This file was deleted.

11 changes: 0 additions & 11 deletions config_ctrl.ts

This file was deleted.

2 changes: 0 additions & 2 deletions datasource.d.ts

This file was deleted.

Loading

0 comments on commit 25deaea

Please sign in to comment.