@inglorious/vite-plugin-jsx 1.0.0 → 1.1.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/.turbo/turbo-lint.log +2 -3
- package/.turbo/turbo-test.log +43 -44
- package/CHANGELOG.md +6 -0
- package/package.json +3 -3
- package/src/index.js +1 -0
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
[?9001h[?1004h[?25l[2J[m[
|
|
2
|
-
>
|
|
3
|
-
> eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0[5;1H[?25h[?9001l[?1004l
|
|
1
|
+
[?9001h[?1004h[?25l[2J[m[2;1H> @inglorious/vite-plugin-jsx@1.1.0 lint C:\Users\anton\Projects\ic\inglorious-forge\packages\vite-plugin-jsx
|
|
2
|
+
> eslint .[6;1H]0;C:\WINDOWS\system32\cmd.exe[?25h[?9001l[?1004l
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
[?9001h[?1004h[?25l[2J[m[
|
|
2
|
-
>
|
|
3
|
-
|
|
4
|
-
[?25l[36m[1m[7m RUN [m [36mv2.1.9 [90mC:/Users/anton/Projects/ic/inglorious-forge/packages/vite-plugin-jsx[8;1H[?25h[m]0;node (vitest 3)]0;node (vitest 1)]0;node (vitest 2)]0;node (vitest 5)]0;node (vitest 6)]0;node (vitest 7)]0;node (vitest 4)]0;node (vitest 9)]0;node (vitest 8)]0;node (vitest 10)]0;node (vitest 11)[?25l [90m· [mmoves api parameter to the end if it is not the last one
|
|
1
|
+
[?9001h[?1004h[?25l[2J[m[2;1H> @inglorious/vite-plugin-jsx@1.0.0 test C:\Users\anton\Projects\ic\inglorious-forge\packages\vite-plugin-jsx
|
|
2
|
+
> vitest run[5;1H]0;C:\WINDOWS\system32\cmd.exe[?25h]0;node (vitest)
|
|
3
|
+
[?25l[36m[1m[7m RUN [m [36mv2.1.9 [90mC:/Users/anton/Projects/ic/inglorious-forge/packages/vite-plugin-jsx[8;1H[?25h[m]0;node (vitest 1)]0;node (vitest 3)]0;node (vitest 11)]0;node (vitest 5)]0;node (vitest 2)]0;node (vitest 4)]0;node (vitest 12)]0;node (vitest 10)]0;node (vitest 15)]0;node (vitest 9)]0;node (vitest 17)]0;node (vitest 6)]0;node (vitest 18)]0;node (vitest 7)]0;node (vitest 13)]0;node (vitest 19)]0;node (vitest 8)]0;node (vitest 14)]0;node (vitest 16)[?25l [90m· [mmoves api parameter to the end if it is not the last one
|
|
5
4
|
[90m· [mdoes not change parameters if api is already the last argument
|
|
6
|
-
[90m· [mmoves api parameter to the end when it is in the middle[K[
|
|
7
|
-
[90m· [mdoes not inject api if no capitalized component is used[K[
|
|
8
|
-
[90m· [mdoes not inject api if component is not inside a 'render' method[K[
|
|
9
|
-
[90m· [mthrows an error when trying to inject api with a rest parameter present[K[
|
|
10
|
-
[90m· [minjects api argument when component is nested inside a Fragment[K[
|
|
11
|
-
[90m· [minjects api argument when component is nested inside standard elements[K[
|
|
12
|
-
[
|
|
5
|
+
[90m· [mmoves api parameter to the end when it is in the middle[K[76C
|
|
6
|
+
[90m· [mdoes not inject api if no capitalized component is used[K[76C
|
|
7
|
+
[90m· [mdoes not inject api if component is not inside a 'render' method[K[67C
|
|
8
|
+
[90m· [mthrows an error when trying to inject api with a rest parameter present[K[60C
|
|
9
|
+
[90m· [minjects api argument when component is nested inside a Fragment[K[68C
|
|
10
|
+
[90m· [minjects api argument when component is nested inside standard elements[K[61C
|
|
11
|
+
[138C[H [32m✓ [mmoves api parameter to the end if it is not the last one[K
|
|
13
12
|
[32m✓ [mdoes not change parameters if api is already the last argument[K
|
|
14
13
|
[32m✓ [mmoves api parameter to the end when it is in the middle[K
|
|
15
14
|
[32m✓ [mdoes not inject api if no capitalized component is used[K
|
|
@@ -17,41 +16,41 @@
|
|
|
17
16
|
[32m✓ [mthrows an error when trying to inject api with a rest parameter present[K
|
|
18
17
|
[32m✓ [minjects api argument when component is nested inside a Fragment[K
|
|
19
18
|
[32m✓ [minjects api argument when component is nested inside standard elements[K
|
|
20
|
-
[K[
|
|
21
|
-
[32m✓ [mvite-plugin-jsx[2m (29)[33m[22m
|
|
22
|
-
[32m✓ [mtransforms basic JSX elements
|
|
19
|
+
[K[138C[H [32m✓ [m[2msrc/[22mindex[2m.test.js (29)[33m[22m 591[2mms[m[K
|
|
20
|
+
[32m✓ [mvite-plugin-jsx[2m (29)[33m[22m 590[2mms[m[K
|
|
21
|
+
[32m✓ [mtransforms basic JSX elements[K
|
|
23
22
|
[32m✓ [minjects the html import only when JSX is present[K
|
|
24
23
|
[32m✓ [mtransforms className to class[K
|
|
25
24
|
[32m✓ [mhandles event listeners (@event syntax)[K
|
|
26
25
|
[32m✓ [mhandles boolean attributes[K
|
|
27
26
|
[32m✓ [mdistinguishes between properties (.) and attributes[K
|
|
28
|
-
[32m✓ [mhandles fragments[K[
|
|
29
|
-
[32m✓ [mhandles nested expressions and elements[K[
|
|
30
|
-
[32m✓ [mtransforms Array.map to repeat directive[K[
|
|
31
|
-
[32m✓ [mtransforms Array.map with key to keyed repeat directive[K[
|
|
32
|
-
[32m✓ [mtransforms ternary operators to when directive[K[
|
|
33
|
-
[32m✓ [mtransforms logical AND to when directive[K[
|
|
34
|
-
[32m✓ [mmerges imports if @inglorious/web is already imported[K[
|
|
35
|
-
[32m✓ [mthrows error for missing event handler expression[K[
|
|
36
|
-
[32m✓ [mthrows error for string literal event handler[K[
|
|
37
|
-
[32m✓ [mdoes not generate closing tag for void elements[K[
|
|
38
|
-
[32m✓ [mhandles SVG self-closing tags correctly[K[
|
|
39
|
-
[32m✓ [mexpands self-closing non-void HTML tags[K[
|
|
40
|
-
[32m✓ [mignores empty expressions and comments[K[
|
|
41
|
-
[32m✓ [mtransforms capitalized components to api.render calls[K[
|
|
42
|
-
[32m✓ [minjects api argument into render function if missing when using components[K[
|
|
43
|
-
[32m✓ [mmoves api parameter to the end if it is not the last one[K[
|
|
44
|
-
[32m✓ [mdoes not change parameters if api is already the last argument[K[
|
|
45
|
-
[32m✓ [mmoves api parameter to the end when it is in the middle[K[
|
|
46
|
-
[32m✓ [mdoes not inject api if no capitalized component is used[K[
|
|
47
|
-
[32m✓ [mdoes not inject api if component is not inside a 'render' method[K[
|
|
48
|
-
[32m✓ [mthrows an error when trying to inject api with a rest parameter present[K[
|
|
49
|
-
[32m✓ [minjects api argument when component is nested inside a Fragment[K[
|
|
50
|
-
[32m✓ [minjects api argument when component is nested inside standard elements[K[
|
|
51
|
-
[
|
|
52
|
-
[
|
|
53
|
-
[2m Tests [22m [32m[1m29 passed[90m[22m (29)[K[104C[m
|
|
54
|
-
[2m Start at [22m 20:22:47[K[110C
|
|
55
|
-
[2m Duration [22m 4.54s[2m (transform 214ms, setup 0ms, collect 1.40s, tests 737ms, environment 0ms, prepare 1.08s)[22m[K[24C
|
|
56
|
-
[131C
|
|
57
|
-
[131C
|
|
27
|
+
[32m✓ [mhandles fragments[K[114C
|
|
28
|
+
[32m✓ [mhandles nested expressions and elements[K[92C
|
|
29
|
+
[32m✓ [mtransforms Array.map to repeat directive[K[91C
|
|
30
|
+
[32m✓ [mtransforms Array.map with key to keyed repeat directive[K[76C
|
|
31
|
+
[32m✓ [mtransforms ternary operators to when directive[K[85C
|
|
32
|
+
[32m✓ [mtransforms logical AND to when directive[K[91C
|
|
33
|
+
[32m✓ [mmerges imports if @inglorious/web is already imported[K[78C
|
|
34
|
+
[32m✓ [mthrows error for missing event handler expression[K[82C
|
|
35
|
+
[32m✓ [mthrows error for string literal event handler[K[86C
|
|
36
|
+
[32m✓ [mdoes not generate closing tag for void elements[K[84C
|
|
37
|
+
[32m✓ [mhandles SVG self-closing tags correctly[K[92C
|
|
38
|
+
[32m✓ [mexpands self-closing non-void HTML tags[K[92C
|
|
39
|
+
[32m✓ [mignores empty expressions and comments[K[93C
|
|
40
|
+
[32m✓ [mtransforms capitalized components to api.render calls[K[78C
|
|
41
|
+
[32m✓ [minjects api argument into render function if missing when using components[K[57C
|
|
42
|
+
[32m✓ [mmoves api parameter to the end if it is not the last one[K[75C
|
|
43
|
+
[32m✓ [mdoes not change parameters if api is already the last argument[K[69C
|
|
44
|
+
[32m✓ [mmoves api parameter to the end when it is in the middle[K[76C
|
|
45
|
+
[32m✓ [mdoes not inject api if no capitalized component is used[K[76C
|
|
46
|
+
[32m✓ [mdoes not inject api if component is not inside a 'render' method[K[67C
|
|
47
|
+
[32m✓ [mthrows an error when trying to inject api with a rest parameter present[K[60C
|
|
48
|
+
[32m✓ [minjects api argument when component is nested inside a Fragment[K[68C
|
|
49
|
+
[32m✓ [minjects api argument when component is nested inside standard elements[K[61C
|
|
50
|
+
[138C
|
|
51
|
+
[138C[2m
|
|
58
52
|
Test Files [22m [32m[1m1 passed[90m[22m (1)[m
|
|
53
|
+
[2m Tests [22m [32m[1m29 passed[90m[22m (29)[K[111C[m
|
|
54
|
+
[2m Start at [22m 22:22:50[K[117C
|
|
55
|
+
[2m Duration [22m 4.70s[2m (transform 100ms, setup 0ms, collect 1.29s, tests 591ms, environment 0ms, prepare 1.50s)[22m[K[31C
|
|
56
|
+
[138C
|
|
57
|
+
[138C
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/vite-plugin-jsx",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A Vite plugin that transforms JSX into lit-html syntax.",
|
|
5
5
|
"author": "IceOnFire <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"node": ">= 22"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
|
-
"format": "prettier --write
|
|
42
|
-
"lint": "eslint .
|
|
41
|
+
"format": "prettier --write .",
|
|
42
|
+
"lint": "eslint .",
|
|
43
43
|
"test:watch": "vitest",
|
|
44
44
|
"test": "vitest run"
|
|
45
45
|
}
|