-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
executable file
·115 lines (115 loc) · 3.8 KB
/
package.json
File metadata and controls
executable file
·115 lines (115 loc) · 3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"name": "configuru",
"displayName": "Configuru",
"description": "VS Code extension for the Configuru library for automatic config checking and suggestions",
"publisher": "ackee",
"version": "1.0.5",
"icon": "resources/logo.png",
"repository": {
"type": "git",
"url": "https://github.com/AckeeCZ/configuru-extension"
},
"engines": {
"vscode": "^1.79.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "Configuru extension",
"properties": {
"configuru.features.suggestEnvVariables": {
"type": "boolean",
"default": true,
"description": "Suggests variable names in ts file of secrets in env file"
},
"configuru.features.highlightInvalidVariables": {
"type": "boolean",
"default": true,
"description": "Highlights variables in ts file that are not presented in env file"
},
"configuru.features.highlightSecretsMissingDescription": {
"type": "boolean",
"default": true,
"description": "Highlights secret keys in env file that do not have a description provided in a comment"
},
"configuru.features.highlightUnsafeDefaultValues": {
"type": "boolean",
"default": true,
"description": "Highlights hidden variables in ts file that have unsafe default values in env file"
},
"configuru.features.highlightLoaderTypeMismatch": {
"type": "boolean",
"default": true,
"description": "Highlights loader type mismatches between the ts config file and the default values in env file"
},
"configuru.paths": {
"type": "array",
"description": "Paths to the ts config file and relevant env files",
"default": [
{
"loader": "src/config.ts",
"envs": [
".env.jsonc"
]
}
],
"items": {
"type": "object",
"properties": {
"loader": {
"type": "string",
"description": "Relative path to the ts config file that is loading the env file keys"
},
"envs": {
"type": "array",
"items": {
"type": "string",
"description": "Relative path to the env.jsonc file that contains the secret definition"
}
}
}
}
}
}
}
},
"scripts": {
"compile": "npm run check-types && node esbuild.js",
"check-types": "tsc --noEmit",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"vscode:prepublish": "npm run package",
"package": "npm run check-types && node esbuild.js --production",
"pretest": "npm run compile && npm run lint",
"lint": "eslint '**/*.ts' -f codeframe --fix --max-warnings=0",
"codestyle": "npm run lint && npm run prettier",
"ci:codestyle": "eslint '**/*.ts' -f codeframe --max-warnings=0 && prettier --check '**/*.{ts,js,json,md}'",
"prettier": "prettier --check --write '**/*.{ts,js,json,md}'",
"test": "tsx ./src/test/runTest.ts"
},
"devDependencies": {
"@ackee/styleguide-backend-config": "^1.0.1",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "20.2.5",
"@types/vscode": "^1.79.0",
"@vscode/test-electron": "^2.3.2",
"esbuild": "^0.27.0",
"eslint": "^8.41.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"prettier": "^3.6.2",
"tsx": "^4.20.6"
},
"dependencies": {
"jsonc-parser": "^3.2.0",
"typescript": "^5.6.2"
}
}