breaking up grafana into multiple packages poc
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
{
|
||||
"name": "grafana-ui",
|
||||
"name": "@grafana/ui",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.ts",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/types",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"test": "tsc --noEmit"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC"
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"typescript": "^3.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
export { Other } from './other';
|
||||
import { TimeSeries } from '../types';
|
||||
|
||||
export class Google {
|
||||
data: TimeSeries;
|
||||
|
||||
hello() {
|
||||
return 'hello';
|
||||
}
|
||||
}
|
||||
|
||||
class Singleton {
|
||||
constructor(private state) {}
|
||||
constructor(private state: string) {}
|
||||
|
||||
hello() {
|
||||
return this.state;
|
||||
@@ -0,0 +1,5 @@
|
||||
export class Other {
|
||||
static hello() {
|
||||
return "hello from other";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.tsx"
|
||||
],
|
||||
"exclude": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc"
|
||||
},
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "es5",
|
||||
"lib": ["es6", "dom"],
|
||||
"jsx": "react",
|
||||
"module": "esnext",
|
||||
"outDir": "dist",
|
||||
"declaration": false,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"importHelpers": true,
|
||||
"noEmitHelpers": true,
|
||||
"removeComments": false,
|
||||
"inlineSourceMap": false,
|
||||
"sourceMap": true,
|
||||
"noEmitOnError": false,
|
||||
"emitDecoratorMetadata": false,
|
||||
"experimentalDecorators": true,
|
||||
"declaration": true,
|
||||
"declarationDir": "./dist/types",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
export interface TimeSeries {
|
||||
name: string;
|
||||
}
|
||||
Reference in New Issue
Block a user