create-rsbuild 0.0.0-next-20231108034054 → 0.0.0-next-20231207110454

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 +68 -1
  2. package/dist/index.js +21 -2
  3. package/package.json +4 -3
  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/src/App.css +26 -0
  20. package/template-react-js/src/App.jsx +6 -16
  21. package/template-react-js/src/index.jsx +0 -1
  22. package/template-react-ts/package.json +2 -2
  23. package/template-react-ts/src/App.css +26 -0
  24. package/template-react-ts/src/App.tsx +6 -16
  25. package/template-react-ts/src/env.d.ts +1 -0
  26. package/template-react-ts/src/index.tsx +0 -1
  27. package/template-solid-js/package.json +18 -0
  28. package/template-solid-js/rsbuild.config.mjs +7 -0
  29. package/template-solid-js/src/App.css +26 -0
  30. package/template-solid-js/src/App.jsx +12 -0
  31. package/template-solid-js/src/index.jsx +4 -0
  32. package/template-solid-ts/package.json +19 -0
  33. package/template-solid-ts/rsbuild.config.ts +7 -0
  34. package/template-solid-ts/src/App.css +26 -0
  35. package/template-solid-ts/src/App.tsx +12 -0
  36. package/template-solid-ts/src/env.d.ts +1 -0
  37. package/template-solid-ts/src/index.tsx +4 -0
  38. package/template-solid-ts/tsconfig.json +15 -0
  39. package/template-svelte-js/package.json +1 -1
  40. package/template-svelte-js/src/App.svelte +21 -26
  41. package/template-svelte-js/src/index.css +6 -0
  42. package/template-svelte-js/src/index.js +1 -2
  43. package/template-svelte-ts/package.json +2 -2
  44. package/template-svelte-ts/src/App.svelte +21 -26
  45. package/template-svelte-ts/src/env.d.ts +2 -0
  46. package/template-svelte-ts/src/index.css +6 -0
  47. package/template-svelte-ts/src/index.ts +1 -2
  48. package/template-vanilla-js/package.json +13 -0
  49. package/template-vanilla-js/rsbuild.config.mjs +3 -0
  50. package/template-vanilla-js/src/index.css +26 -0
  51. package/template-vanilla-js/src/index.js +8 -0
  52. package/template-vanilla-ts/package.json +14 -0
  53. package/template-vanilla-ts/rsbuild.config.ts +3 -0
  54. package/template-vanilla-ts/src/index.css +26 -0
  55. package/template-vanilla-ts/src/index.ts +8 -0
  56. package/template-vanilla-ts/tsconfig.json +13 -0
  57. package/template-vue2-js/package.json +1 -1
  58. package/template-vue2-js/src/App.vue +21 -20
  59. package/template-vue2-js/src/index.css +3 -38
  60. package/template-vue2-js/src/index.js +1 -1
  61. package/template-vue2-ts/package.json +2 -2
  62. package/template-vue2-ts/src/App.vue +20 -21
  63. package/template-vue2-ts/src/env.d.ts +2 -0
  64. package/template-vue2-ts/src/index.css +3 -38
  65. package/template-vue2-ts/src/index.ts +1 -1
  66. package/template-vue3-js/package.json +1 -1
  67. package/template-vue3-js/src/App.vue +21 -22
  68. package/template-vue3-js/src/index.css +3 -38
  69. package/template-vue3-js/src/index.js +1 -1
  70. package/template-vue3-ts/package.json +2 -2
  71. package/template-vue3-ts/src/App.vue +21 -16
  72. package/template-vue3-ts/src/env.d.ts +2 -0
  73. package/template-vue3-ts/src/index.css +3 -38
  74. package/template-vue3-ts/src/index.ts +1 -1
  75. package/template-react-js/src/index.css +0 -41
  76. package/template-react-ts/src/index.css +0 -41
  77. package/template-svelte-js/src/global.css +0 -68
  78. package/template-svelte-ts/src/global.css +0 -68
package/CHANGELOG.md CHANGED
@@ -1,6 +1,73 @@
1
1
  # create-rsbuild
2
2
 
3
- ## 0.0.0-next-20231108034054
3
+ ## 0.0.0-next-20231207110454
4
+
5
+ ## 0.1.9
6
+
7
+ ## 0.1.8
8
+
9
+ ## 0.1.7
10
+
11
+ ## 0.1.6
12
+
13
+ ## 0.1.5
14
+
15
+ ## 0.1.4
16
+
17
+ ### Patch Changes
18
+
19
+ - 8d09c89: feat: support solid-js HMR
20
+
21
+ ## 0.1.3
22
+
23
+ ## 0.1.2
24
+
25
+ ## 0.1.1
26
+
27
+ ## 0.1.0
28
+
29
+ ### Patch Changes
30
+
31
+ - 1090e387: feat(create-rsbuild): bump typescript to v5.3.0
32
+
33
+ ## 0.0.28
34
+
35
+ ## 0.0.27
36
+
37
+ ## 0.0.26
38
+
39
+ ## 0.0.25
40
+
41
+ ## 0.0.24
42
+
43
+ ## 0.0.23
44
+
45
+ ## 0.0.22
46
+
47
+ ### Patch Changes
48
+
49
+ - 73cac183: feat(create-rsbuild): add new lit template
50
+ - 6c00e30: fix(create-rsbuild): missing tsconfig.json in vanilla template
51
+ - 6c00e30: feat(create-rsbuild): improve next steps message
52
+ - 82e7c249: fix(create-rsbuild): incorrect title in sample code
53
+
54
+ ## 0.0.21
55
+
56
+ ### Patch Changes
57
+
58
+ - a782b44: feat(create-rsbuild): add new vanilla template
59
+
60
+ ## 0.0.20
61
+
62
+ ## 0.0.19
63
+
64
+ ## 0.0.18
65
+
66
+ ### Patch Changes
67
+
68
+ - 6f1c4a1: feat: add builtin assets and CSS modules types
69
+ - eed4dcb: feat(create-rsbuild): update all pages in templates
70
+ - a4485ea: feat(create-rspack): add dev --open option by default
4
71
 
5
72
  ## 0.0.17
6
73
 
package/dist/index.js CHANGED
@@ -35,10 +35,22 @@ function checkCancel(value) {
35
35
  function formatTargetDir(targetDir) {
36
36
  return targetDir.trim().replace(/\/+$/g, "");
37
37
  }
38
+ function pkgFromUserAgent(userAgent) {
39
+ if (!userAgent)
40
+ return void 0;
41
+ const pkgSpec = userAgent.split(" ")[0];
42
+ const pkgSpecArr = pkgSpec.split("/");
43
+ return {
44
+ name: pkgSpecArr[0],
45
+ version: pkgSpecArr[1]
46
+ };
47
+ }
38
48
  async function main() {
39
49
  console.log("");
40
50
  import_rslog.logger.greet("◆ Create Rsbuild Project");
41
51
  const cwd = process.cwd();
52
+ const pkgInfo = pkgFromUserAgent(process.env.npm_config_user_agent);
53
+ const pkgManager = pkgInfo ? pkgInfo.name : "npm";
42
54
  const packageRoot = import_path.default.resolve(__dirname, "..");
43
55
  const packageJsonPath = import_path.default.join(packageRoot, "package.json");
44
56
  const { version } = require(packageJsonPath);
@@ -62,7 +74,10 @@ async function main() {
62
74
  { value: "react", label: "React" },
63
75
  { value: "vue3", label: "Vue 3" },
64
76
  { value: "vue2", label: "Vue 2" },
65
- { value: "svelte", label: "Svelte" }
77
+ { value: "lit", label: "Lit" },
78
+ { value: "svelte", label: "Svelte" },
79
+ { value: "solid", label: "Solid" },
80
+ { value: "vanilla", label: "Vanilla" }
66
81
  ]
67
82
  });
68
83
  checkCancel(framework);
@@ -79,7 +94,11 @@ async function main() {
79
94
  const distFolder = import_path.default.join(cwd, targetDir);
80
95
  copyFolder(commonFolder, distFolder, version);
81
96
  copyFolder(srcFolder, distFolder, version);
82
- const nextSteps = [`cd ${targetDir}`, "npm i", "npm run dev"];
97
+ const nextSteps = [
98
+ `cd ${targetDir}`,
99
+ `${pkgManager} i`,
100
+ `${pkgManager} run dev`
101
+ ];
83
102
  (0, import_prompts.note)(nextSteps.join("\n"), "Next steps");
84
103
  (0, import_prompts.outro)("Done.");
85
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rsbuild",
3
- "version": "0.0.0-next-20231108034054",
3
+ "version": "0.0.0-next-20231207110454",
4
4
  "description": "Create a new Rsbuild project",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -9,6 +9,7 @@
9
9
  "directory": "packages/create-rsbuild"
10
10
  },
11
11
  "license": "MIT",
12
+ "type": "commonjs",
12
13
  "exports": {
13
14
  ".": {
14
15
  "types": "./dist/index.d.ts",
@@ -22,11 +23,11 @@
22
23
  },
23
24
  "dependencies": {
24
25
  "@clack/prompts": "^0.7.0",
25
- "rslog": "^1.1.0"
26
+ "rslog": "^1.1.1"
26
27
  },
27
28
  "devDependencies": {
28
29
  "@types/node": "^16",
29
- "typescript": "^5.2.2"
30
+ "typescript": "^5.3.0"
30
31
  },
31
32
  "publishConfig": {
32
33
  "access": "public",
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "rsbuild-lit-js",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "dev": "rsbuild dev --open",
7
+ "build": "rsbuild build",
8
+ "preview": "rsbuild preview"
9
+ },
10
+ "devDependencies": {
11
+ "@rsbuild/core": "workspace:*",
12
+ "lit": "^3.0.2"
13
+ }
14
+ }
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from '@rsbuild/core';
2
+
3
+ export default defineConfig({
4
+ html: {
5
+ template: './src/index.html',
6
+ },
7
+ });
@@ -0,0 +1,6 @@
1
+ body {
2
+ margin: 0;
3
+ color: #fff;
4
+ font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
5
+ background-image: linear-gradient(to bottom, #020917, #101725);
6
+ }
@@ -0,0 +1,5 @@
1
+ <!doctype html>
2
+ <head></head>
3
+ <body>
4
+ <my-element />
5
+ </body>
@@ -0,0 +1,4 @@
1
+ import './index.css';
2
+ import { MyElement } from './my-element';
3
+
4
+ customElements.define('my-element', MyElement);
@@ -0,0 +1,34 @@
1
+ import { html, css, LitElement } from 'lit';
2
+
3
+ export class MyElement extends LitElement {
4
+ static styles = css`
5
+ .content {
6
+ display: flex;
7
+ min-height: 100vh;
8
+ line-height: 1.1;
9
+ text-align: center;
10
+ flex-direction: column;
11
+ justify-content: center;
12
+ }
13
+
14
+ .content h1 {
15
+ font-size: 3.6rem;
16
+ font-weight: 700;
17
+ }
18
+
19
+ .content p {
20
+ font-size: 1.2rem;
21
+ font-weight: 400;
22
+ opacity: 0.5;
23
+ }
24
+ `;
25
+
26
+ render() {
27
+ return html`
28
+ <div class="content">
29
+ <h1>Rsbuild with Lit</h1>
30
+ <p>Start building amazing things with Rsbuild.</p>
31
+ </div>
32
+ `;
33
+ }
34
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "rsbuild-lit-ts",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "dev": "rsbuild dev --open",
7
+ "build": "rsbuild build",
8
+ "preview": "rsbuild preview"
9
+ },
10
+ "devDependencies": {
11
+ "@rsbuild/core": "workspace:*",
12
+ "lit": "^3.0.2",
13
+ "typescript": "^5.3.0"
14
+ }
15
+ }
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from '@rsbuild/core';
2
+
3
+ export default defineConfig({
4
+ html: {
5
+ template: './src/index.html',
6
+ },
7
+ });
@@ -0,0 +1 @@
1
+ /// <reference types="@rsbuild/core/types" />
@@ -0,0 +1,6 @@
1
+ body {
2
+ margin: 0;
3
+ color: #fff;
4
+ font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
5
+ background-image: linear-gradient(to bottom, #020917, #101725);
6
+ }
@@ -0,0 +1,5 @@
1
+ <!doctype html>
2
+ <head></head>
3
+ <body>
4
+ <my-element />
5
+ </body>
@@ -0,0 +1,4 @@
1
+ import './index.css';
2
+ import { MyElement } from './my-element';
3
+
4
+ customElements.define('my-element', MyElement);
@@ -0,0 +1,34 @@
1
+ import { html, css, LitElement } from 'lit';
2
+
3
+ export class MyElement extends LitElement {
4
+ static styles = css`
5
+ .content {
6
+ display: flex;
7
+ min-height: 100vh;
8
+ line-height: 1.1;
9
+ text-align: center;
10
+ flex-direction: column;
11
+ justify-content: center;
12
+ }
13
+
14
+ .content h1 {
15
+ font-size: 3.6rem;
16
+ font-weight: 700;
17
+ }
18
+
19
+ .content p {
20
+ font-size: 1.2rem;
21
+ font-weight: 400;
22
+ opacity: 0.5;
23
+ }
24
+ `;
25
+
26
+ render() {
27
+ return html`
28
+ <div class="content">
29
+ <h1>Rsbuild with Lit</h1>
30
+ <p>Start building amazing things with Rsbuild.</p>
31
+ </div>
32
+ `;
33
+ }
34
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "lib": ["DOM", "ES2020"],
5
+ "module": "ESNext",
6
+ "strict": true,
7
+ "skipLibCheck": true,
8
+ "isolatedModules": true,
9
+ "resolveJsonModule": true,
10
+ "moduleResolution": "bundler"
11
+ },
12
+ "include": ["src"]
13
+ }
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "scripts": {
6
- "dev": "rsbuild dev",
6
+ "dev": "rsbuild dev --open",
7
7
  "build": "rsbuild build",
8
8
  "preview": "rsbuild preview"
9
9
  },
@@ -0,0 +1,26 @@
1
+ body {
2
+ margin: 0;
3
+ color: #fff;
4
+ font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
5
+ background-image: linear-gradient(to bottom, #020917, #101725);
6
+ }
7
+
8
+ .content {
9
+ display: flex;
10
+ min-height: 100vh;
11
+ line-height: 1.1;
12
+ text-align: center;
13
+ flex-direction: column;
14
+ justify-content: center;
15
+ }
16
+
17
+ .content h1 {
18
+ font-size: 3.6rem;
19
+ font-weight: 700;
20
+ }
21
+
22
+ .content p {
23
+ font-size: 1.2rem;
24
+ font-weight: 400;
25
+ opacity: 0.5;
26
+ }
@@ -1,22 +1,12 @@
1
- import { useState } from 'react';
2
-
3
- const HelloWorld = () => {
4
- const [count, setCount] = useState(0);
1
+ import './App.css';
5
2
 
3
+ const App = () => {
6
4
  return (
7
- <div>
8
- <h1>Rsbuild + React</h1>
9
-
10
- <div>
11
- <button type="button" onClick={() => setCount(count + 1)}>
12
- count is {count}
13
- </button>
14
- <p>
15
- Edit <code>App.tsx</code> to test HMR
16
- </p>
17
- </div>
5
+ <div className="content">
6
+ <h1>Rsbuild with React</h1>
7
+ <p>Start building amazing things with Rsbuild.</p>
18
8
  </div>
19
9
  );
20
10
  };
21
11
 
22
- export default HelloWorld;
12
+ export default App;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import ReactDOM from 'react-dom/client';
3
- import './index.css';
4
3
  import App from './App';
5
4
 
6
5
  const root = ReactDOM.createRoot(document.getElementById('root'));
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "scripts": {
6
- "dev": "rsbuild dev",
6
+ "dev": "rsbuild dev --open",
7
7
  "build": "rsbuild build",
8
8
  "preview": "rsbuild preview"
9
9
  },
@@ -16,6 +16,6 @@
16
16
  "@rsbuild/plugin-react": "workspace:*",
17
17
  "@types/react": "^18",
18
18
  "@types/react-dom": "^18",
19
- "typescript": "^5.2.2"
19
+ "typescript": "^5.3.0"
20
20
  }
21
21
  }
@@ -0,0 +1,26 @@
1
+ body {
2
+ margin: 0;
3
+ color: #fff;
4
+ font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
5
+ background-image: linear-gradient(to bottom, #020917, #101725);
6
+ }
7
+
8
+ .content {
9
+ display: flex;
10
+ min-height: 100vh;
11
+ line-height: 1.1;
12
+ text-align: center;
13
+ flex-direction: column;
14
+ justify-content: center;
15
+ }
16
+
17
+ .content h1 {
18
+ font-size: 3.6rem;
19
+ font-weight: 700;
20
+ }
21
+
22
+ .content p {
23
+ font-size: 1.2rem;
24
+ font-weight: 400;
25
+ opacity: 0.5;
26
+ }
@@ -1,22 +1,12 @@
1
- import { useState } from 'react';
2
-
3
- const HelloWorld = () => {
4
- const [count, setCount] = useState(0);
1
+ import './App.css';
5
2
 
3
+ const App = () => {
6
4
  return (
7
- <div>
8
- <h1>Rsbuild + React</h1>
9
-
10
- <div>
11
- <button type="button" onClick={() => setCount(count + 1)}>
12
- count is {count}
13
- </button>
14
- <p>
15
- Edit <code>App.tsx</code> to test HMR
16
- </p>
17
- </div>
5
+ <div className="content">
6
+ <h1>Rsbuild with React</h1>
7
+ <p>Start building amazing things with Rsbuild.</p>
18
8
  </div>
19
9
  );
20
10
  };
21
11
 
22
- export default HelloWorld;
12
+ export default App;
@@ -0,0 +1 @@
1
+ /// <reference types="@rsbuild/core/types" />
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import ReactDOM from 'react-dom/client';
3
- import './index.css';
4
3
  import App from './App';
5
4
 
6
5
  const root = ReactDOM.createRoot(document.getElementById('root')!);
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "rsbuild-solid-js",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "dev": "rsbuild dev --open",
7
+ "build": "rsbuild build",
8
+ "preview": "rsbuild preview"
9
+ },
10
+ "dependencies": {
11
+ "solid-js": "^1.8.5"
12
+ },
13
+ "devDependencies": {
14
+ "@rsbuild/core": "workspace:*",
15
+ "@rsbuild/plugin-babel": "workspace:*",
16
+ "@rsbuild/plugin-solid": "workspace:*"
17
+ }
18
+ }
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from '@rsbuild/core';
2
+ import { pluginBabel } from '@rsbuild/plugin-babel';
3
+ import { pluginSolid } from '@rsbuild/plugin-solid';
4
+
5
+ export default defineConfig({
6
+ plugins: [pluginBabel(), pluginSolid()],
7
+ });
@@ -0,0 +1,26 @@
1
+ body {
2
+ margin: 0;
3
+ color: #fff;
4
+ font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
5
+ background-image: linear-gradient(to bottom, #020917, #101725);
6
+ }
7
+
8
+ .content {
9
+ display: flex;
10
+ min-height: 100vh;
11
+ line-height: 1.1;
12
+ text-align: center;
13
+ flex-direction: column;
14
+ justify-content: center;
15
+ }
16
+
17
+ .content h1 {
18
+ font-size: 3.6rem;
19
+ font-weight: 700;
20
+ }
21
+
22
+ .content p {
23
+ font-size: 1.2rem;
24
+ font-weight: 400;
25
+ opacity: 0.5;
26
+ }
@@ -0,0 +1,12 @@
1
+ import './App.css';
2
+
3
+ const App = () => {
4
+ return (
5
+ <div class="content">
6
+ <h1>Rsbuild with Solid</h1>
7
+ <p>Start building amazing things with Rsbuild.</p>
8
+ </div>
9
+ );
10
+ };
11
+
12
+ export default App;
@@ -0,0 +1,4 @@
1
+ import { render } from 'solid-js/web';
2
+ import App from './App';
3
+
4
+ render(() => <App />, document.getElementById('root'));
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "rsbuild-solid-ts",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "dev": "rsbuild dev --open",
7
+ "build": "rsbuild build",
8
+ "preview": "rsbuild preview"
9
+ },
10
+ "dependencies": {
11
+ "solid-js": "^1.8.5"
12
+ },
13
+ "devDependencies": {
14
+ "@rsbuild/core": "workspace:*",
15
+ "@rsbuild/plugin-babel": "workspace:*",
16
+ "@rsbuild/plugin-solid": "workspace:*",
17
+ "typescript": "^5.3.0"
18
+ }
19
+ }
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from '@rsbuild/core';
2
+ import { pluginBabel } from '@rsbuild/plugin-babel';
3
+ import { pluginSolid } from '@rsbuild/plugin-solid';
4
+
5
+ export default defineConfig({
6
+ plugins: [pluginBabel(), pluginSolid()],
7
+ });
@@ -0,0 +1,26 @@
1
+ body {
2
+ margin: 0;
3
+ color: #fff;
4
+ font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
5
+ background-image: linear-gradient(to bottom, #020917, #101725);
6
+ }
7
+
8
+ .content {
9
+ display: flex;
10
+ min-height: 100vh;
11
+ line-height: 1.1;
12
+ text-align: center;
13
+ flex-direction: column;
14
+ justify-content: center;
15
+ }
16
+
17
+ .content h1 {
18
+ font-size: 3.6rem;
19
+ font-weight: 700;
20
+ }
21
+
22
+ .content p {
23
+ font-size: 1.2rem;
24
+ font-weight: 400;
25
+ opacity: 0.5;
26
+ }
@@ -0,0 +1,12 @@
1
+ import './App.css';
2
+
3
+ const App = () => {
4
+ return (
5
+ <div class="content">
6
+ <h1>Rsbuild with Solid</h1>
7
+ <p>Start building amazing things with Rsbuild.</p>
8
+ </div>
9
+ );
10
+ };
11
+
12
+ export default App;
@@ -0,0 +1 @@
1
+ /// <reference types="@rsbuild/core/types" />
@@ -0,0 +1,4 @@
1
+ import { render } from 'solid-js/web';
2
+ import App from './App';
3
+
4
+ render(() => <App />, document.getElementById('root')!);
@@ -0,0 +1,15 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "lib": ["DOM", "ES2020"],
5
+ "module": "ESNext",
6
+ "jsx": "preserve",
7
+ "jsxImportSource": "solid-js",
8
+ "strict": true,
9
+ "skipLibCheck": true,
10
+ "isolatedModules": true,
11
+ "resolveJsonModule": true,
12
+ "moduleResolution": "bundler"
13
+ },
14
+ "include": ["src"]
15
+ }
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "scripts": {
6
- "dev": "rsbuild dev",
6
+ "dev": "rsbuild dev --open",
7
7
  "build": "rsbuild build",
8
8
  "preview": "rsbuild preview"
9
9
  },