@rebuildjs/tailwindcss 0.3.5 → 0.3.6
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/package.json +65 -66
- package/rebuild_tailwind_plugin/index.js +14 -6
package/package.json
CHANGED
|
@@ -1,68 +1,67 @@
|
|
|
1
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
|
-
"sideEffects": false
|
|
2
|
+
"name": "@rebuildjs/tailwindcss",
|
|
3
|
+
"version": "0.3.6",
|
|
4
|
+
"description": "Tailwindcss integration with rebuildjs",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"tailwindcss",
|
|
7
|
+
"reactive",
|
|
8
|
+
"multi page apps",
|
|
9
|
+
"web app",
|
|
10
|
+
"web server",
|
|
11
|
+
"esbuild",
|
|
12
|
+
"rmemo",
|
|
13
|
+
"ctx-core"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://github.com/rebuildjs/tailwindcss#readme",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/rebuildjs/tailwindcss/issues"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/rebuildjs/tailwindcss.git"
|
|
22
|
+
},
|
|
23
|
+
"license": "Apache-2.0",
|
|
24
|
+
"author": "Brian Takita",
|
|
25
|
+
"type": "module",
|
|
26
|
+
"files": [
|
|
27
|
+
"*.d.ts",
|
|
28
|
+
"*.js",
|
|
29
|
+
"*.json",
|
|
30
|
+
"rebuild_tailwind_plugin"
|
|
31
|
+
],
|
|
32
|
+
"types": "./index.d.ts",
|
|
33
|
+
"exports": {
|
|
34
|
+
".": "./index.js",
|
|
35
|
+
"./package.json": "./package.json"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"ctx-core": "^5.33.0",
|
|
39
|
+
"esbuild": "^0.20.0",
|
|
40
|
+
"postcss": "^8.4.33",
|
|
41
|
+
"rebuildjs": "^0.51.0",
|
|
42
|
+
"tailwindcss": "^3.4.1"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"c8": "^9.1.0",
|
|
46
|
+
"check-dts": "^0.7.2",
|
|
47
|
+
"esmock": "^2.6.3",
|
|
48
|
+
"relementjs": "^0.58.0",
|
|
49
|
+
"tsx": "^4.7.0",
|
|
50
|
+
"typescript": "next",
|
|
51
|
+
"uvu": "^0.5.6"
|
|
52
|
+
},
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"access": "public",
|
|
55
|
+
"cache": "~/.npm"
|
|
56
|
+
},
|
|
57
|
+
"sideEffects": false,
|
|
58
|
+
"scripts": {
|
|
59
|
+
"build": ":",
|
|
60
|
+
"clean": ":",
|
|
61
|
+
"exec": "$@",
|
|
62
|
+
"test": "pnpm test:unit && pnpm test:types",
|
|
63
|
+
"test:types": "check-dts",
|
|
64
|
+
"test:unit": "NODE_OPTIONS=--loader=esmock tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
|
|
65
|
+
"test:unit:coverage": "c8 pnpm test:unit"
|
|
66
|
+
}
|
|
68
67
|
}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { file_exists_, file_exists__waitfor } from 'ctx-core/fs'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
be,
|
|
4
|
+
be_memo_pair_,
|
|
5
|
+
be_sig_triple_,
|
|
6
|
+
Cancel,
|
|
7
|
+
memo_,
|
|
8
|
+
nullish__none_,
|
|
9
|
+
promise__cancel__throw,
|
|
10
|
+
run,
|
|
11
|
+
sleep,
|
|
12
|
+
tup
|
|
13
|
+
} from 'ctx-core/rmemo'
|
|
3
14
|
import { readFile, writeFile } from 'node:fs/promises'
|
|
4
15
|
import { join } from 'node:path'
|
|
5
16
|
import postcss from 'postcss'
|
|
@@ -115,12 +126,9 @@ export function rebuild_tailwind_plugin_(config) {
|
|
|
115
126
|
}
|
|
116
127
|
}
|
|
117
128
|
async function cmd(promise) {
|
|
118
|
-
if (cancel_())
|
|
129
|
+
if (cancel_()) promise__cancel__throw(promise)
|
|
119
130
|
const rv = await promise
|
|
120
|
-
if (cancel_())
|
|
121
|
-
promise.cancel?.()
|
|
122
|
-
throw new Cancel()
|
|
123
|
-
}
|
|
131
|
+
if (cancel_()) promise__cancel__throw(promise)
|
|
124
132
|
return rv
|
|
125
133
|
}
|
|
126
134
|
function cancel_() {
|