forked from heybourn/headwind
-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
executable file
·165 lines (165 loc) · 6.81 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
"name": "tailwind-raw-reorder",
"displayName": "Tailwind Raw Reorder",
"description": "An opinionated class sorter for Tailwind CSS",
"keywords": [
"tailwind",
"tailwindcss",
"css",
"sort",
"sorter",
"vscode"
],
"galleryBanner": {
"color": "#f1f5f8"
},
"icon": "tailwind-raw-reorder-icon.gif",
"version": "3.2.0",
"publisher": "Trapfether",
"license": "MIT",
"author": "Andrew Trefethen <[email protected]>",
"repository": "https://github.com/Trapfether/tailwind-raw-reorder",
"engines": {
"vscode": "^1.32.0"
},
"categories": [
"Other"
],
"activationEvents": [
"workspaceContains:**/tailwind.config.*"
],
"main": "./dist/index.js",
"contributes": {
"commands": [
{
"command": "tailwind-raw-reorder.sortTailwindClasses",
"title": "Tailwind Raw Reorder: Sort Tailwind CSS Classes"
},
{
"command": "tailwind-raw-reorder.sortTailwindClassesOnWorkspace",
"title": "Tailwind Raw Reorder: Sort Tailwind CSS Classes on Entire Workspace"
},
{
"command": "tailwind-raw-reorder.sortTailwindClassesOnSelection",
"title": "Tailwind Raw Reorder: Sort Tailwind CSS Classes on current Selection"
}
],
"keybindings": [
{
"command": "tailwind-raw-reorder.sortTailwindClasses",
"key": "ctrl+alt+t",
"mac": "shift+alt+t",
"when": "editorFocus"
}
],
"configuration": [
{
"title": "Tailwind Raw Reorder",
"properties": {
"tailwind-raw-reorder.classRegex": {
"type": "object",
"default": {
"jade": [
{
"regex": "\\.([\\._a-zA-Z0-9\\-]+)",
"separator": "\\.",
"replacement": "."
},
"\\bclass\\s*=\\s*[\\\"\\']([\\._a-zA-Z0-9\\s\\-\\:\\/]+)[\\\"\\']"
],
"html": [
[
"\\sclass=(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2",
"[\"'`]([^]+)"
]
],
"css": "\\B@apply\\s+([\\._a-zA-Z0-9\\s\\-\\:\\/]+);",
"javascript": [
[
"((?:class(?:Name)?|tw)\\s*=\\s*([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>]\\2)",
"(?:class(?:Name)?|tw)\\s*=\\s*(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2",
"[\"'`]([^]+)"
]
],
"javascriptreact": [
[
"((?:class(?:Name)?|tw)\\s*=\\s*{?([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>]\\2)",
"(?:class(?:Name)?|tw)\\s*=\\s*{?(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2",
"[\"'`]([^]+)"
]
],
"typescript": [
[
"((?:class(?:Name)?|tw)\\s*=\\s*([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>]\\2)",
"(?:class(?:Name)?|tw)\\s*=\\s*(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2",
"[\"'`]([^]+)"
]
],
"typescriptreact": [
[
"((?:class(?:Name)?|tw)\\s*=\\s*{?([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>]\\2)",
"(?:class(?:Name)?|tw)\\s*=\\s*{?(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2",
"[\"'`]([^]+)"
]
],
"php": [
[
"\\sclass=(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2",
"[\"'`]([^]+)"
]
]
},
"description": "An object with language IDs as keys and their values determining the regex to search for Tailwind CSS classes.",
"scope": "window"
},
"tailwind-raw-reorder.IgnoreConfigNotFound": {
"type": "boolean",
"default": false,
"description": "A flag that controls whether or not to ignore 'Tailwind Raw Reorder: Tailwind config not found' Error Message.",
"scope":"window"
},
"tailwind-raw-reorder.runOnSave": {
"type": "boolean",
"default": true,
"description": "A flag that controls whether or not Tailwind Raw Reorder will sort your Tailwind CSS classes on save.",
"scope": "window"
},
"tailwind-raw-reorder.tailwindConfigPath": {
"type": ["string", "null"],
"default": null,
"description": "The path to your tailwind.config.js file. This is used to determine the order of your classes.",
"scope": "window"
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run build",
"_pre": "rimraf dist && cpy node_modules/tailwindcss/lib/css dist/css",
"_esbuild": "node build.mjs",
"prebuild": "npm run _pre",
"build": "npm run _esbuild -- --minify",
"test": "mocha",
"package": "vsce package"
},
"devDependencies": {
"@types/lodash": "^4.14.149",
"@types/node": "6.0.40",
"@types/vscode": "1.32.0",
"clear-module": "^4.1.2",
"cpy-cli": "^5.0.0",
"esbuild": "^0.19.4",
"escalade": "^3.1.1",
"eslint": "^8.51.0",
"eslint-config-google": "^0.14.0",
"mocha": "^10.2.0",
"resolve-from": "^5.0.0",
"rimraf": "^5.0.5",
"tailwindcss": "^3.3.3",
"typescript": "^3.5.1"
},
"dependencies": {
"rustywind": "^0.7.1"
}
}