-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
131 lines (131 loc) · 4.54 KB
/
package.json
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"name": "stylex",
"displayName": "StyleX Intellisense",
"description": "Intellisense for StyleX inside Visual Studio Code",
"author": "Yash Singh",
"license": "MIT",
"version": "0.0.14",
"icon": "assets/stylexlogo.png",
"repository": {
"type": "git",
"url": "https://github.com/Yash-Singh1/stylex-vscode"
},
"publisher": "yash-singh",
"categories": [],
"keywords": [
"multi-root ready",
"lsp",
"language-server",
"stylex"
],
"engines": {
"vscode": "^1.75.0"
},
"activationEvents": [
"onLanguage:javascript",
"onLanguage:typescript",
"onLanguage:javascriptreact",
"onLanguage:typescriptreact",
"onStartupFinished"
],
"main": "./client/out/extension",
"contributes": {
"configuration": {
"type": "object",
"title": "StyleX Intellisense",
"properties": {
"stylex.includedLanguages": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {},
"markdownDescription": "Enable features in languages that are not supported by default. Add a mapping here between the new language and an already supported language.\n E.g.: `{\"plaintext\": \"javascriptreact\"}`"
},
"stylex.aliasModuleNames": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"@stylexjs/stylex",
"stylex"
],
"markdownDescription": "List of custom module names that should be considered as the StyleX package for detecting StyleX workspaces and imports. Default is `[\"@stylexjs/stylex\", \"stylex\"]`."
},
"stylex.useRemForFontSize": {
"type": "boolean",
"default": false,
"description": "Should `px` values for fontSize be converted to `rem`? It is considered a best practice to use rem for font sizes to allow users to scale the font size up or down."
},
"stylex.hover": {
"type": "boolean",
"default": true,
"description": "Enable/disable hover support for StyleX classes and keyframes."
},
"stylex.suggestions": {
"type": "boolean",
"default": true,
"description": "Enable/disable autocomplete suggestions."
},
"stylex.colorDecorators": {
"type": "boolean",
"default": true,
"description": "Enable/disable whether the editor should render color decorators for styles."
},
"stylex.inspectPort": {
"type": [
"number",
"null"
],
"default": null,
"markdownDescription": "Port that will be used for Node.js debugger connections for the language server. Debugging is disabled by default."
},
"stylex.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile:client": "cd client/; tsup; cd ..",
"compile:server": "cd server/; tsup; cd ..",
"compile": "concurrently \"npm run compile:client\" \"npm run compile:server\"",
"watch": "concurrently \"tsc -w -p ./client\" \"tsup server/src/server.ts --no-splitting --out-dir server/out --watch --ignore-watch client\"",
"lint": "eslint ./client/src ./server/src --ext .ts,.tsx && prettier --check \"**/*.{ts,tsx,js,json,md}\"",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"package": "vsce package --baseImagesUrl https://stylexvscode.pages.dev/",
"//test": "sh ./scripts/e2e.sh",
"test": "cd server; npm run test; cd ..",
"type-check": "tsc -p ./client --noEmit && tsc -p ./server --noEmit && tsc -p ./server/tsconfig.tests.json --noEmit",
"code-style": "prettier --write \"**/*.{ts,tsx,js,json,md}\""
},
"devDependencies": {
"@swc/wasm-web": "^1.3.102",
"@types/mocha": "^10.0.6",
"@types/node": "^18.14.6",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@vscode/vsce": "^2.29.0",
"concurrently": "^8.2.2",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"mkdirp": "^3.0.1",
"mocha": "^10.2.0",
"nodemon": "^3.0.2",
"typescript": "^5.3.3"
},
"dependencies": {
"prettier": "^3.2.2",
"tsup": "^8.0.1"
}
}