create-rsbuild 0.0.0-next-20231103091827 → 0.0.0-next-20231115072032

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.
Files changed (78) hide show
  1. package/CHANGELOG.md +40 -1
  2. package/dist/index.js +16 -2
  3. package/package.json +2 -2
  4. package/template-lit-js/package.json +14 -0
  5. package/template-lit-js/rsbuild.config.mjs +7 -0
  6. package/template-lit-js/src/index.css +6 -0
  7. package/template-lit-js/src/index.html +5 -0
  8. package/template-lit-js/src/index.js +4 -0
  9. package/template-lit-js/src/my-element.js +34 -0
  10. package/template-lit-ts/package.json +15 -0
  11. package/template-lit-ts/rsbuild.config.ts +7 -0
  12. package/template-lit-ts/src/env.d.ts +1 -0
  13. package/template-lit-ts/src/index.css +6 -0
  14. package/template-lit-ts/src/index.html +5 -0
  15. package/template-lit-ts/src/index.ts +4 -0
  16. package/template-lit-ts/src/my-element.ts +34 -0
  17. package/template-lit-ts/tsconfig.json +13 -0
  18. package/template-react-js/package.json +1 -1
  19. package/template-react-js/rsbuild.config.mjs +0 -3
  20. package/template-react-js/src/App.css +26 -0
  21. package/template-react-js/src/App.jsx +6 -16
  22. package/template-react-js/src/index.jsx +0 -1
  23. package/template-react-ts/package.json +1 -1
  24. package/template-react-ts/rsbuild.config.ts +0 -3
  25. package/template-react-ts/src/App.css +26 -0
  26. package/template-react-ts/src/App.tsx +6 -16
  27. package/template-react-ts/src/env.d.ts +1 -0
  28. package/template-react-ts/src/index.tsx +0 -1
  29. package/template-svelte-js/package.json +1 -1
  30. package/template-svelte-js/src/App.svelte +21 -26
  31. package/template-svelte-js/src/index.css +6 -0
  32. package/template-svelte-js/src/index.js +1 -2
  33. package/template-svelte-ts/package.json +1 -1
  34. package/template-svelte-ts/src/App.svelte +21 -26
  35. package/template-svelte-ts/src/env.d.ts +2 -0
  36. package/template-svelte-ts/src/index.css +6 -0
  37. package/template-svelte-ts/src/index.ts +1 -2
  38. package/template-vanilla-js/package.json +13 -0
  39. package/template-vanilla-js/rsbuild.config.mjs +3 -0
  40. package/template-vanilla-js/src/index.css +26 -0
  41. package/template-vanilla-js/src/index.js +8 -0
  42. package/template-vanilla-ts/package.json +14 -0
  43. package/template-vanilla-ts/rsbuild.config.ts +3 -0
  44. package/template-vanilla-ts/src/index.css +26 -0
  45. package/template-vanilla-ts/src/index.ts +8 -0
  46. package/template-vanilla-ts/tsconfig.json +13 -0
  47. package/template-vue2-js/package.json +1 -1
  48. package/template-vue2-js/rsbuild.config.mjs +0 -3
  49. package/template-vue2-js/src/App.vue +21 -20
  50. package/template-vue2-js/src/index.css +3 -38
  51. package/template-vue2-js/src/index.js +1 -1
  52. package/template-vue2-ts/package.json +1 -1
  53. package/template-vue2-ts/rsbuild.config.ts +0 -3
  54. package/template-vue2-ts/src/App.vue +20 -21
  55. package/template-vue2-ts/src/env.d.ts +2 -0
  56. package/template-vue2-ts/src/index.css +3 -38
  57. package/template-vue2-ts/src/index.ts +1 -1
  58. package/template-vue3-js/package.json +1 -1
  59. package/template-vue3-js/rsbuild.config.mjs +0 -3
  60. package/template-vue3-js/src/App.vue +21 -22
  61. package/template-vue3-js/src/index.css +3 -38
  62. package/template-vue3-js/src/index.js +1 -1
  63. package/template-vue3-ts/package.json +1 -1
  64. package/template-vue3-ts/rsbuild.config.ts +0 -3
  65. package/template-vue3-ts/src/App.vue +21 -16
  66. package/template-vue3-ts/src/env.d.ts +2 -0
  67. package/template-vue3-ts/src/index.css +3 -38
  68. package/template-vue3-ts/src/index.ts +1 -1
  69. package/template-react-js/src/index.css +0 -41
  70. package/template-react-js/src/index.html +0 -10
  71. package/template-react-ts/src/index.css +0 -41
  72. package/template-react-ts/src/index.html +0 -10
  73. package/template-svelte-js/src/global.css +0 -68
  74. package/template-svelte-ts/src/global.css +0 -68
  75. package/template-vue2-js/src/index.html +0 -10
  76. package/template-vue2-ts/src/index.html +0 -10
  77. package/template-vue3-js/src/index.html +0 -10
  78. package/template-vue3-ts/src/index.html +0 -10
@@ -1,41 +0,0 @@
1
- :root {
2
- font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
3
- font-size: 16px;
4
- line-height: 24px;
5
- font-weight: 400;
6
- color: #213547;
7
- background-color: #ffffff;
8
- max-width: 1280px;
9
- margin: 0 auto;
10
- padding: 5rem;
11
- text-align: center;
12
- }
13
-
14
- body {
15
- margin: 0;
16
- min-height: 100vh;
17
- }
18
-
19
- h1 {
20
- font-size: 3.2em;
21
- line-height: 1.1;
22
- }
23
-
24
- button {
25
- border-radius: 8px;
26
- border: 1px solid transparent;
27
- padding: 0.6em 1.2em;
28
- font-size: 1em;
29
- font-weight: 500;
30
- font-family: inherit;
31
- background-color: #f9f9f9;
32
- cursor: pointer;
33
- transition: border-color 0.25s;
34
- }
35
- button:hover {
36
- border-color: #646cff;
37
- }
38
- button:focus,
39
- button:focus-visible {
40
- outline: 4px auto -webkit-focus-ring-color;
41
- }
@@ -1,10 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- </head>
7
- <body>
8
- <div id="root"></div>
9
- </body>
10
- </html>
@@ -1,68 +0,0 @@
1
- html,
2
- body {
3
- position: relative;
4
- width: 100%;
5
- height: 100%;
6
- }
7
-
8
- body {
9
- color: #333;
10
- margin: 0;
11
- padding: 8px;
12
- box-sizing: border-box;
13
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
14
- Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
15
- }
16
-
17
- a {
18
- color: rgb(0, 100, 200);
19
- text-decoration: none;
20
- }
21
-
22
- a:hover {
23
- text-decoration: underline;
24
- }
25
-
26
- a:visited {
27
- color: rgb(0, 80, 160);
28
- }
29
-
30
- label {
31
- display: block;
32
- }
33
-
34
- input,
35
- button,
36
- select,
37
- textarea {
38
- font-family: inherit;
39
- font-size: inherit;
40
- -webkit-padding: 0.4em 0;
41
- padding: 0.4em;
42
- margin: 0 0 0.5em 0;
43
- box-sizing: border-box;
44
- border: 1px solid #ccc;
45
- border-radius: 2px;
46
- }
47
-
48
- input:disabled {
49
- color: #ccc;
50
- }
51
-
52
- button {
53
- color: #333;
54
- background-color: #f4f4f4;
55
- outline: none;
56
- }
57
-
58
- button:disabled {
59
- color: #999;
60
- }
61
-
62
- button:not(:disabled):active {
63
- background-color: #ddd;
64
- }
65
-
66
- button:focus {
67
- border-color: #666;
68
- }
@@ -1,68 +0,0 @@
1
- html,
2
- body {
3
- position: relative;
4
- width: 100%;
5
- height: 100%;
6
- }
7
-
8
- body {
9
- color: #333;
10
- margin: 0;
11
- padding: 8px;
12
- box-sizing: border-box;
13
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
14
- Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
15
- }
16
-
17
- a {
18
- color: rgb(0, 100, 200);
19
- text-decoration: none;
20
- }
21
-
22
- a:hover {
23
- text-decoration: underline;
24
- }
25
-
26
- a:visited {
27
- color: rgb(0, 80, 160);
28
- }
29
-
30
- label {
31
- display: block;
32
- }
33
-
34
- input,
35
- button,
36
- select,
37
- textarea {
38
- font-family: inherit;
39
- font-size: inherit;
40
- -webkit-padding: 0.4em 0;
41
- padding: 0.4em;
42
- margin: 0 0 0.5em 0;
43
- box-sizing: border-box;
44
- border: 1px solid #ccc;
45
- border-radius: 2px;
46
- }
47
-
48
- input:disabled {
49
- color: #ccc;
50
- }
51
-
52
- button {
53
- color: #333;
54
- background-color: #f4f4f4;
55
- outline: none;
56
- }
57
-
58
- button:disabled {
59
- color: #999;
60
- }
61
-
62
- button:not(:disabled):active {
63
- background-color: #ddd;
64
- }
65
-
66
- button:focus {
67
- border-color: #666;
68
- }
@@ -1,10 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- </head>
7
- <body>
8
- <div id="root"></div>
9
- </body>
10
- </html>
@@ -1,10 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- </head>
7
- <body>
8
- <div id="root"></div>
9
- </body>
10
- </html>
@@ -1,10 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- </head>
7
- <body>
8
- <div id="root"></div>
9
- </body>
10
- </html>
@@ -1,10 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- </head>
7
- <body>
8
- <div id="root"></div>
9
- </body>
10
- </html>