Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
d6e81295
Commit
d6e81295
authored
Jul 10, 2019
by
Tobias Skarhed
Committed by
Dominik Prokop
Jul 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Packages: create shared tsconfig.json (#18010)
parent
6a3a2f5f
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
27 additions
and
53 deletions
+27
-53
packages/grafana-data/tsconfig.json
+3
-11
packages/grafana-runtime/tsconfig.json
+3
-11
packages/grafana-toolkit/src/cli/tasks/changelog.ts
+0
-1
packages/grafana-toolkit/src/cli/tasks/plugin.build.ts
+0
-2
packages/grafana-toolkit/src/cli/tasks/plugin.ci.ts
+0
-1
packages/grafana-toolkit/src/cli/tasks/plugin/bundle.ts
+0
-2
packages/grafana-toolkit/src/cli/tasks/plugin/tests.ts
+0
-1
packages/grafana-toolkit/src/cli/tasks/searchTestDataSetup.ts
+0
-1
packages/grafana-toolkit/src/cli/tasks/toolkit.build.ts
+1
-1
packages/grafana-toolkit/src/config/webpack.plugin.config.ts
+2
-1
packages/grafana-toolkit/src/config/webpack/loaders.test.ts
+0
-1
packages/grafana-toolkit/src/config/webpack/loaders.ts
+0
-3
packages/grafana-toolkit/tsconfig.json
+2
-6
packages/grafana-ui/tsconfig.json
+3
-11
packages/tsconfig.json
+13
-0
No files found.
packages/grafana-data/tsconfig.json
View file @
d6e81295
{
{
"extends"
:
"../
../
tsconfig.json"
,
"extends"
:
"../tsconfig.json"
,
"include"
:
[
"src/**/*.ts"
,
"src/**/*.tsx"
,
"../../public/app/types/jquery/*.ts"
],
"include"
:
[
"src/**/*.ts"
,
"src/**/*.tsx"
,
"../../public/app/types/jquery/*.ts"
],
"exclude"
:
[
"dist"
,
"node_modules"
],
"exclude"
:
[
"dist"
,
"node_modules"
],
"compilerOptions"
:
{
"compilerOptions"
:
{
"rootDirs"
:
[
"."
],
"rootDirs"
:
[
"."
],
"module"
:
"esnext"
,
"outDir"
:
"compiled"
,
"declaration"
:
true
,
"declarationDir"
:
"dist"
,
"strict"
:
true
,
"alwaysStrict"
:
true
,
"noImplicitAny"
:
true
,
"strictNullChecks"
:
true
,
"typeRoots"
:
[
"./node_modules/@types"
,
"types"
],
"typeRoots"
:
[
"./node_modules/@types"
,
"types"
],
"
skipLibCheck"
:
true
,
//
Temp
workaround
for
Duplicate
identifier
tsc
errors
,
"
declarationDir"
:
"dist"
,
"
removeComments"
:
false
"
outDir"
:
"compiled"
}
}
}
}
packages/grafana-runtime/tsconfig.json
View file @
d6e81295
{
{
"extends"
:
"../
../
tsconfig.json"
,
"extends"
:
"../tsconfig.json"
,
"include"
:
[
"src/**/*.ts"
,
"src/**/*.tsx"
,
"../../public/app/types/jquery/*.ts"
],
"include"
:
[
"src/**/*.ts"
,
"src/**/*.tsx"
,
"../../public/app/types/jquery/*.ts"
],
"exclude"
:
[
"dist"
,
"node_modules"
],
"exclude"
:
[
"dist"
,
"node_modules"
],
"compilerOptions"
:
{
"compilerOptions"
:
{
"rootDirs"
:
[
"."
],
"rootDirs"
:
[
"."
],
"module"
:
"esnext"
,
"outDir"
:
"compiled"
,
"declaration"
:
true
,
"declarationDir"
:
"dist"
,
"strict"
:
true
,
"alwaysStrict"
:
true
,
"noImplicitAny"
:
true
,
"strictNullChecks"
:
true
,
"typeRoots"
:
[
"./node_modules/@types"
,
"types"
],
"typeRoots"
:
[
"./node_modules/@types"
,
"types"
],
"
skipLibCheck"
:
true
,
//
Temp
workaround
for
Duplicate
identifier
tsc
errors
,
"
declarationDir"
:
"dist"
,
"
removeComments"
:
false
"
outDir"
:
"compiled"
}
}
}
}
packages/grafana-toolkit/src/cli/tasks/changelog.ts
View file @
d6e81295
import
axios
from
'axios'
;
// @ts-ignore
// @ts-ignore
import
*
as
_
from
'lodash'
;
import
*
as
_
from
'lodash'
;
import
{
Task
,
TaskRunner
}
from
'./task'
;
import
{
Task
,
TaskRunner
}
from
'./task'
;
...
...
packages/grafana-toolkit/src/cli/tasks/plugin.build.ts
View file @
d6e81295
...
@@ -4,7 +4,6 @@ import execa = require('execa');
...
@@ -4,7 +4,6 @@ import execa = require('execa');
import
path
=
require
(
'path'
);
import
path
=
require
(
'path'
);
import
fs
=
require
(
'fs'
);
import
fs
=
require
(
'fs'
);
import
glob
=
require
(
'glob'
);
import
glob
=
require
(
'glob'
);
import
util
=
require
(
'util'
);
import
{
Linter
,
Configuration
,
RuleFailure
}
from
'tslint'
;
import
{
Linter
,
Configuration
,
RuleFailure
}
from
'tslint'
;
import
*
as
prettier
from
'prettier'
;
import
*
as
prettier
from
'prettier'
;
...
@@ -17,7 +16,6 @@ interface PluginBuildOptions {
...
@@ -17,7 +16,6 @@ interface PluginBuildOptions {
export
const
bundlePlugin
=
useSpinner
<
PluginBundleOptions
>
(
'Compiling...'
,
async
options
=>
await
bundleFn
(
options
));
export
const
bundlePlugin
=
useSpinner
<
PluginBundleOptions
>
(
'Compiling...'
,
async
options
=>
await
bundleFn
(
options
));
const
readFileAsync
=
util
.
promisify
(
fs
.
readFile
);
// @ts-ignore
// @ts-ignore
export
const
clean
=
useSpinner
<
void
>
(
'Cleaning'
,
async
()
=>
await
execa
(
'rimraf'
,
[
`
${
process
.
cwd
()}
/dist`
]));
export
const
clean
=
useSpinner
<
void
>
(
'Cleaning'
,
async
()
=>
await
execa
(
'rimraf'
,
[
`
${
process
.
cwd
()}
/dist`
]));
...
...
packages/grafana-toolkit/src/cli/tasks/plugin.ci.ts
View file @
d6e81295
import
{
Task
,
TaskRunner
}
from
'./task'
;
import
{
Task
,
TaskRunner
}
from
'./task'
;
import
{
pluginBuildRunner
}
from
'./plugin.build'
;
import
{
pluginBuildRunner
}
from
'./plugin.build'
;
import
{
useSpinner
}
from
'../utils/useSpinner'
;
import
{
restoreCwd
}
from
'../utils/cwd'
;
import
{
restoreCwd
}
from
'../utils/cwd'
;
import
{
getPluginJson
}
from
'../../config/utils/pluginValidation'
;
import
{
getPluginJson
}
from
'../../config/utils/pluginValidation'
;
...
...
packages/grafana-toolkit/src/cli/tasks/plugin/bundle.ts
View file @
d6e81295
import
path
=
require
(
'path'
);
import
fs
=
require
(
'fs'
);
import
webpack
=
require
(
'webpack'
);
import
webpack
=
require
(
'webpack'
);
import
{
getWebpackConfig
}
from
'../../../config/webpack.plugin.config'
;
import
{
getWebpackConfig
}
from
'../../../config/webpack.plugin.config'
;
import
formatWebpackMessages
=
require
(
'react-dev-utils/formatWebpackMessages'
);
import
formatWebpackMessages
=
require
(
'react-dev-utils/formatWebpackMessages'
);
...
...
packages/grafana-toolkit/src/cli/tasks/plugin/tests.ts
View file @
d6e81295
import
path
=
require
(
'path'
);
import
*
as
jestCLI
from
'jest-cli'
;
import
*
as
jestCLI
from
'jest-cli'
;
import
{
useSpinner
}
from
'../../utils/useSpinner'
;
import
{
useSpinner
}
from
'../../utils/useSpinner'
;
import
{
jestConfig
}
from
'../../../config/jest.plugin.config'
;
import
{
jestConfig
}
from
'../../../config/jest.plugin.config'
;
...
...
packages/grafana-toolkit/src/cli/tasks/searchTestDataSetup.ts
View file @
d6e81295
...
@@ -46,7 +46,6 @@ export async function getTeam(team: any): Promise<any> {
...
@@ -46,7 +46,6 @@ export async function getTeam(team: any): Promise<any> {
}
}
export
async
function
addToTeam
(
team
:
any
,
user
:
any
):
Promise
<
any
>
{
export
async
function
addToTeam
(
team
:
any
,
user
:
any
):
Promise
<
any
>
{
const
members
=
await
client
.
get
(
`/teams/
${
team
.
id
}
/members`
);
console
.
log
(
`Adding user
${
user
.
name
}
to team
${
team
.
name
}
`
);
console
.
log
(
`Adding user
${
user
.
name
}
to team
${
team
.
name
}
`
);
await
client
.
post
(
`/teams/
${
team
.
id
}
/members`
,
{
userId
:
user
.
id
});
await
client
.
post
(
`/teams/
${
team
.
id
}
/members`
,
{
userId
:
user
.
id
});
}
}
...
...
packages/grafana-toolkit/src/cli/tasks/toolkit.build.ts
View file @
d6e81295
import
execa
=
require
(
'execa'
);
import
execa
=
require
(
'execa'
);
import
*
as
fs
from
'fs'
;
import
*
as
fs
from
'fs'
;
import
{
changeCwdToGrafanaUi
,
restoreCwd
,
changeCwdToGrafanaToolkit
}
from
'../utils/cwd'
;
import
{
restoreCwd
,
changeCwdToGrafanaToolkit
}
from
'../utils/cwd'
;
import
chalk
from
'chalk'
;
import
chalk
from
'chalk'
;
import
{
useSpinner
}
from
'../utils/useSpinner'
;
import
{
useSpinner
}
from
'../utils/useSpinner'
;
import
{
Task
,
TaskRunner
}
from
'./task'
;
import
{
Task
,
TaskRunner
}
from
'./task'
;
...
...
packages/grafana-toolkit/src/config/webpack.plugin.config.ts
View file @
d6e81295
...
@@ -7,7 +7,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
...
@@ -7,7 +7,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const
OptimizeCssAssetsPlugin
=
require
(
'optimize-css-assets-webpack-plugin'
);
const
OptimizeCssAssetsPlugin
=
require
(
'optimize-css-assets-webpack-plugin'
);
import
*
as
webpack
from
'webpack'
;
import
*
as
webpack
from
'webpack'
;
import
{
hasThemeStylesheets
,
getStyleLoaders
,
getStylesheetEntries
,
getFileLoaders
}
from
'./webpack/loaders'
;
import
{
getStyleLoaders
,
getStylesheetEntries
,
getFileLoaders
}
from
'./webpack/loaders'
;
interface
WebpackConfigurationOptions
{
interface
WebpackConfigurationOptions
{
watch
?:
boolean
;
watch
?:
boolean
;
...
@@ -51,6 +51,7 @@ const getManualChunk = (id: string) => {
...
@@ -51,6 +51,7 @@ const getManualChunk = (id: string) => {
};
};
}
}
}
}
return
null
;
};
};
const
getEntries
=
()
=>
{
const
getEntries
=
()
=>
{
...
...
packages/grafana-toolkit/src/config/webpack/loaders.test.ts
View file @
d6e81295
...
@@ -3,7 +3,6 @@ import { getStylesheetEntries, hasThemeStylesheets } from './loaders';
...
@@ -3,7 +3,6 @@ import { getStylesheetEntries, hasThemeStylesheets } from './loaders';
describe
(
'Loaders'
,
()
=>
{
describe
(
'Loaders'
,
()
=>
{
describe
(
'stylesheet helpers'
,
()
=>
{
describe
(
'stylesheet helpers'
,
()
=>
{
const
logSpy
=
jest
.
spyOn
(
console
,
'log'
).
mockImplementation
();
const
logSpy
=
jest
.
spyOn
(
console
,
'log'
).
mockImplementation
();
const
errorSpy
=
jest
.
spyOn
(
console
,
'error'
).
mockImplementation
();
afterAll
(()
=>
{
afterAll
(()
=>
{
logSpy
.
mockRestore
();
logSpy
.
mockRestore
();
...
...
packages/grafana-toolkit/src/config/webpack/loaders.ts
View file @
d6e81295
import
{
getPluginJson
}
from
'../utils/pluginValidation'
;
const
path
=
require
(
'path'
);
const
fs
=
require
(
'fs'
);
const
fs
=
require
(
'fs'
);
const
MiniCssExtractPlugin
=
require
(
'mini-css-extract-plugin'
);
const
MiniCssExtractPlugin
=
require
(
'mini-css-extract-plugin'
);
...
...
packages/grafana-toolkit/tsconfig.json
View file @
d6e81295
{
{
"extends"
:
"../tsconfig.json"
,
"include"
:
[
"src/**/*.ts"
],
"include"
:
[
"src/**/*.ts"
],
"exclude"
:
[
"dist"
,
"node_modules"
],
"exclude"
:
[
"dist"
,
"node_modules"
],
"compilerOptions"
:
{
"compilerOptions"
:
{
"module"
:
"commonjs"
,
"module"
:
"commonjs"
,
"rootDirs"
:
[
"."
],
"rootDirs"
:
[
"."
],
"outDir"
:
"dist/src"
,
"outDir"
:
"dist/src"
,
"strict"
:
true
,
"declaration"
:
false
,
"alwaysStrict"
:
true
,
"noImplicitAny"
:
true
,
"strictNullChecks"
:
true
,
"typeRoots"
:
[
"./node_modules/@types"
],
"typeRoots"
:
[
"./node_modules/@types"
],
"skipLibCheck"
:
true
,
//
Temp
workaround
for
Duplicate
identifier
tsc
errors
,
"removeComments"
:
false
,
"esModuleInterop"
:
true
,
"esModuleInterop"
:
true
,
"lib"
:
[
"es2015"
,
"es2017.string"
]
"lib"
:
[
"es2015"
,
"es2017.string"
]
}
}
...
...
packages/grafana-ui/tsconfig.json
View file @
d6e81295
{
{
"extends"
:
"../
../
tsconfig.json"
,
"extends"
:
"../tsconfig.json"
,
"include"
:
[
"src/**/*.ts"
,
"src/**/*.tsx"
],
"include"
:
[
"src/**/*.ts"
,
"src/**/*.tsx"
],
"exclude"
:
[
"dist"
,
"node_modules"
],
"exclude"
:
[
"dist"
,
"node_modules"
],
"compilerOptions"
:
{
"compilerOptions"
:
{
"rootDirs"
:
[
"."
,
"stories"
],
"rootDirs"
:
[
"."
,
"stories"
],
"module"
:
"esnext"
,
"outDir"
:
"compiled"
,
"declaration"
:
true
,
"declarationDir"
:
"dist"
,
"strict"
:
true
,
"alwaysStrict"
:
true
,
"noImplicitAny"
:
true
,
"strictNullChecks"
:
true
,
"typeRoots"
:
[
"./node_modules/@types"
,
"types"
],
"typeRoots"
:
[
"./node_modules/@types"
,
"types"
],
"
skipLibCheck"
:
true
,
//
Temp
workaround
for
Duplicate
identifier
tsc
errors
,
"
declarationDir"
:
"dist"
,
"
removeComments"
:
false
"
outDir"
:
"compiled"
}
}
}
}
packages/tsconfig.json
0 → 100644
View file @
d6e81295
{
"extends"
:
"../tsconfig.json"
,
"compilerOptions"
:
{
"module"
:
"esnext"
,
"declaration"
:
true
,
"strict"
:
true
,
"alwaysStrict"
:
true
,
"noImplicitAny"
:
true
,
"strictNullChecks"
:
true
,
"skipLibCheck"
:
true
,
//
Temp
workaround
for
Duplicate
identifier
tsc
errors
,
"removeComments"
:
false
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment