create-rsbuild 0.0.20 → 0.0.21

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # create-rsbuild
2
2
 
3
+ ## 0.0.21
4
+
5
+ ### Patch Changes
6
+
7
+ - a782b44: feat(create-rsbuild): add new vanilla template
8
+
3
9
  ## 0.0.20
4
10
 
5
11
  ## 0.0.19
package/dist/index.js CHANGED
@@ -62,7 +62,8 @@ async function main() {
62
62
  { value: "react", label: "React" },
63
63
  { value: "vue3", label: "Vue 3" },
64
64
  { value: "vue2", label: "Vue 2" },
65
- { value: "svelte", label: "Svelte" }
65
+ { value: "svelte", label: "Svelte" },
66
+ { value: "vanilla", label: "Vanilla" }
66
67
  ]
67
68
  });
68
69
  checkCancel(framework);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rsbuild",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "Create a new Rsbuild project",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "rsbuild-vanilla-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
+ }
13
+ }
@@ -0,0 +1,3 @@
1
+ import { defineConfig } from '@rsbuild/core';
2
+
3
+ export default defineConfig({});
@@ -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,8 @@
1
+ import './index.css';
2
+
3
+ document.querySelector('#root').innerHTML = `
4
+ <div class="content">
5
+ <h1>Rsbuild with React</h1>
6
+ <p>Start building amazing things with Rsbuild.</p>
7
+ </div>
8
+ `;
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "rsbuild-vanilla-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
+ "typescript": "^5.2.2"
13
+ }
14
+ }
@@ -0,0 +1,3 @@
1
+ import { defineConfig } from '@rsbuild/core';
2
+
3
+ export default defineConfig({});
@@ -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,8 @@
1
+ import './index.css';
2
+
3
+ document.querySelector('#root')!.innerHTML = `
4
+ <div class="content">
5
+ <h1>Rsbuild with React</h1>
6
+ <p>Start building amazing things with Rsbuild.</p>
7
+ </div>
8
+ `;