@k8slens/typescript 6.4.0-cron.2550b1e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +26 -0
- package/README.md +23 -0
- package/config/base.json +46 -0
- package/config/styles.d.ts +17 -0
- package/package.json +26 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Copyright (c) 2022 OpenLens Authors.
|
|
2
|
+
|
|
3
|
+
Portions of this software are licensed as follows:
|
|
4
|
+
|
|
5
|
+
* All content residing under the "docs/" directory of this repository, if that
|
|
6
|
+
directory exists, is licensed under "Creative Commons: CC BY-SA 4.0 license".
|
|
7
|
+
* Content outside of the above mentioned directories or restrictions above is
|
|
8
|
+
available under the "MIT" license as defined below.
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @k8slens/typescript
|
|
2
|
+
|
|
3
|
+
This package contains typescript configurations for Lens packages.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
$ npm install @k8slens/typescript
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
### Base configuration
|
|
14
|
+
Base configuration for minimal duplication.
|
|
15
|
+
|
|
16
|
+
**tsconfig.json**
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"extends": "@k8slens/typescript/config/base.json"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
|
package/config/base.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"jsx": "react",
|
|
5
|
+
"target": "ES2019",
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
|
|
8
|
+
"lib": [
|
|
9
|
+
"ESNext",
|
|
10
|
+
"DOM",
|
|
11
|
+
"DOM.Iterable"
|
|
12
|
+
],
|
|
13
|
+
|
|
14
|
+
"moduleResolution": "node16",
|
|
15
|
+
"sourceMap": true,
|
|
16
|
+
"strict": true,
|
|
17
|
+
"noImplicitAny": true,
|
|
18
|
+
"noUnusedLocals": true,
|
|
19
|
+
"noImplicitReturns": true,
|
|
20
|
+
"isolatedModules": true,
|
|
21
|
+
"skipLibCheck": true,
|
|
22
|
+
"allowJs": false,
|
|
23
|
+
"esModuleInterop": true,
|
|
24
|
+
"allowSyntheticDefaultImports": true,
|
|
25
|
+
"importsNotUsedAsValues": "error",
|
|
26
|
+
"traceResolution": false,
|
|
27
|
+
"resolveJsonModule": true,
|
|
28
|
+
"useDefineForClassFields": true,
|
|
29
|
+
|
|
30
|
+
"plugins": [
|
|
31
|
+
{
|
|
32
|
+
"name": "typescript-plugin-css-modules"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
"ts-node": {
|
|
38
|
+
"transpileOnly": true,
|
|
39
|
+
|
|
40
|
+
"compilerOptions": {
|
|
41
|
+
"module": "CommonJS"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
"include": ["./styles.d.ts"]
|
|
46
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Support import for custom module extensions
|
|
2
|
+
// https://www.typescriptlang.org/docs/handbook/modules.html#wildcard-module-declarations
|
|
3
|
+
|
|
4
|
+
declare module "*.module.scss" {
|
|
5
|
+
const classes: { [key: string]: string };
|
|
6
|
+
export default classes;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare module "*.module.css" {
|
|
10
|
+
const classes: { [key: string]: string };
|
|
11
|
+
export default classes;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare module "*.scss" {
|
|
15
|
+
const content: string;
|
|
16
|
+
export = content;
|
|
17
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@k8slens/typescript",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "6.4.0-cron.2550b1e",
|
|
5
|
+
"description": "Typescript configuration for Lens packages.",
|
|
6
|
+
"type": "commonjs",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public",
|
|
9
|
+
"registry": "https://registry.npmjs.org/"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/lensapp/lens.git"
|
|
14
|
+
},
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "OpenLens Authors",
|
|
17
|
+
"email": "info@k8slens.dev"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"homepage": "https://github.com/lensapp/lens",
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"typescript": "^4.9.3",
|
|
23
|
+
"typescript-plugin-css-modules": "^3.4.0"
|
|
24
|
+
},
|
|
25
|
+
"gitHead": "292544f5b06e4bf206dc6ea0516b15f9f1934fda"
|
|
26
|
+
}
|