@rebuildjs/tailwindcss 0.8.78 → 0.9.0

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 CHANGED
@@ -1,70 +1,71 @@
1
1
  {
2
- "name": "@rebuildjs/tailwindcss",
3
- "version": "0.8.78",
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": {
25
- "name": "Brian Takita",
26
- "url": "https://briantakita.me",
27
- "email": "info+rebuildjs-tailwindcss@briantakita.me"
28
- },
29
- "type": "module",
30
- "files": [
31
- "*.d.ts",
32
- "*.js",
33
- "*.json",
34
- "rebuild_tailwind_plugin"
35
- ],
36
- "types": "./index.d.ts",
37
- "exports": {
38
- ".": "./index.js",
39
- "./package.json": "./package.json"
40
- },
41
- "dependencies": {
42
- "ctx-core": "^6.6.2",
43
- "esbuild": "^0.20.2",
44
- "postcss": "^8.4.38",
45
- "rebuildjs": "^0.66.3",
46
- "tailwindcss": "^3.4.1"
47
- },
48
- "devDependencies": {
49
- "c8": "^9.1.0",
50
- "check-dts": "^0.7.2",
51
- "esmock": "^2.6.4",
52
- "relementjs": "^0.75.5",
53
- "tsx": "^4.7.1",
54
- "typescript": "next",
55
- "uvu": "^0.5.6"
56
- },
57
- "publishConfig": {
58
- "access": "public"
59
- },
60
- "sideEffects": false,
61
- "scripts": {
62
- "build": ":",
63
- "clean": ":",
64
- "exec": "$@",
65
- "test": "pnpm run /^test:/",
66
- "test:types": "check-dts",
67
- "test:unit": "NODE_OPTIONS=--loader=esmock tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
68
- "disable:test:unit:coverage": "c8 pnpm test:unit"
69
- }
2
+ "name": "@rebuildjs/tailwindcss",
3
+ "version": "0.9.0",
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": {
25
+ "name": "Brian Takita",
26
+ "url": "https://briantakita.me",
27
+ "email": "info+rebuildjs-tailwindcss@briantakita.me"
28
+ },
29
+ "type": "module",
30
+ "files": [
31
+ "*.d.ts",
32
+ "*.js",
33
+ "*.json",
34
+ "rebuild_tailwind_plugin"
35
+ ],
36
+ "types": "./index.d.ts",
37
+ "exports": {
38
+ ".": "./index.js",
39
+ "./package.json": "./package.json"
40
+ },
41
+ "scripts": {
42
+ "build": ":",
43
+ "clean": ":",
44
+ "exec": "$@",
45
+ "prepublishOnly": "pnpm clean && pnpm build && pnpm test",
46
+ "test": "pnpm run /^test:/",
47
+ "test:types": "check-dts",
48
+ "test:unit": "NODE_OPTIONS=--loader=esmock tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
49
+ "disable:test:unit:coverage": "c8 pnpm test:unit"
50
+ },
51
+ "dependencies": {
52
+ "ctx-core": "^6.6.2",
53
+ "esbuild": "^0.20.2",
54
+ "postcss": "^8.4.38",
55
+ "rebuildjs": "^0.66.3",
56
+ "tailwindcss": "^3.4.1"
57
+ },
58
+ "devDependencies": {
59
+ "c8": "^9.1.0",
60
+ "check-dts": "^0.7.2",
61
+ "esmock": "^2.6.4",
62
+ "relementjs": "^0.75.5",
63
+ "tsx": "^4.7.1",
64
+ "typescript": "next",
65
+ "uvu": "^0.5.6"
66
+ },
67
+ "publishConfig": {
68
+ "access": "public"
69
+ },
70
+ "sideEffects": false
70
71
  }
@@ -95,26 +95,35 @@ export function rebuild_tailwind_plugin_(config) {
95
95
  server__output__relative_path_M_middleware_ctx,
96
96
  )=>{
97
97
  try {
98
- let server__metafile_updated
99
- let browser__metafile_updated
100
98
  await cmd(rebuildjs__esbuild__done__wait())
101
99
  const _server__metafile = server__metafile_(app_ctx)
102
100
  const _browser__metafile = browser__metafile_(app_ctx)
101
+ const server_output__process_promise_a1 = []
102
+ const browser_output__process_promise_a1 = []
103
103
  for (const middleware_ctx of server__output__relative_path_M_middleware_ctx.values()) {
104
- server__metafile_updated ||= await output__process(
105
- _server__metafile,
106
- server__output__relative_path_(middleware_ctx),
107
- server__output_(middleware_ctx))
108
- browser__metafile_updated ||= await output__process(
109
- _browser__metafile,
110
- browser__output__relative_path_(middleware_ctx),
111
- browser__output_(middleware_ctx))
104
+ server_output__process_promise_a1.push(
105
+ output__process(
106
+ _server__metafile,
107
+ server__output__relative_path_(middleware_ctx),
108
+ server__output_(middleware_ctx)))
109
+ browser_output__process_promise_a1.push(
110
+ output__process(
111
+ _browser__metafile,
112
+ browser__output__relative_path_(middleware_ctx),
113
+ browser__output_(middleware_ctx)))
112
114
  }
113
- let update_promise_a1 = []
114
- if (server__metafile_updated) {
115
+ const [
116
+ server__metafile_updated_a1,
117
+ browser__metafile_updated_a1,
118
+ ] = await Promise.all([
119
+ Promise.all(server_output__process_promise_a1),
120
+ Promise.all(browser_output__process_promise_a1)
121
+ ])
122
+ const update_promise_a1 = []
123
+ if (server__metafile_updated_a1.some($=>$)) {
115
124
  update_promise_a1.push(server__metafile__update(_server__metafile))
116
125
  }
117
- if (browser__metafile_updated) {
126
+ if (browser__metafile_updated_a1.some($=>$)) {
118
127
  update_promise_a1.push(browser__metafile__update(_browser__metafile))
119
128
  }
120
129
  if (update_promise_a1.length) {
@@ -141,7 +150,7 @@ export function rebuild_tailwind_plugin_(config) {
141
150
  const esbuild_cssBundle_path = join(cwd_(app_ctx), esbuild_cssBundle)
142
151
  await cmd(file_exists__waitfor(
143
152
  esbuild_cssBundle_path,
144
- 1000,
153
+ 30_000,
145
154
  ()=>cmd(sleep(0))))
146
155
  const esbuild_cssBundle_map_path = esbuild_cssBundle_path + '.map'
147
156
  const esbuild_cssBundle_map_exists = await cmd(file_exists_(esbuild_cssBundle_map_path))