-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a vanilla TS project built with Rsbuild
Use the same shared code as in other project. The dev server and the build process are very fast! ``` Rsbuild v1.0.1-beta.14 ● web ━━━━━━━━━━━━━━━━━━━━━━━━━ (100%) emitting after emit ready Compiled in 0.47 s (web) info Production file sizes for web: File Size Gzipped dist/index.html 0.37 kB 0.25 kB dist/static/js/index.18915e19.js 3.4 kB 1.6 kB dist/static/css/index.143c2b7c.css 4.6 kB 1.5 kB dist/static/js/843.89efea31.js 431.3 kB 116.3 kB Total size: 439.6 kB Gzipped size: 119.7 kB ```
- Loading branch information
Showing
8 changed files
with
356 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Local | ||
.DS_Store | ||
*.local | ||
*.log* | ||
|
||
# Dist | ||
node_modules | ||
dist/ | ||
|
||
# IDE | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Rsbuild Project | ||
|
||
A vanilla TypeScript project built with https://rsbuild.dev | ||
|
||
Initialized by following https://rsbuild.dev/guide/start/quick-start: | ||
- `npm create rsbuild@latest` | ||
- this used [email protected] | ||
|
||
## Setup | ||
|
||
From the repository root, run `npm install`. For more details, see the [root README](../../README.md#setup). | ||
|
||
If you want to use the maxGraph development version (built locally), see the [root README](../../README.md#maxgraph-dev-version) about maxGraph integration. | ||
|
||
## Running the project | ||
|
||
From the repository root, run `npm run dev -w projects/rsbuild-ts` and go to http://localhost:3000/ | ||
|
||
If you want to bundle the application, run `npm run build -w projects/rsbuild-ts` and then run `npm run preview -w projects/rsbuild-ts` | ||
to access to a preview of the bundled application. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "maxgraph-ts-example-built-with-rsbuild", | ||
"scripts": { | ||
"dev": "rsbuild dev --open", | ||
"build": "rsbuild build", | ||
"preview": "rsbuild preview" | ||
}, | ||
"devDependencies": { | ||
"@rsbuild/core": "1.0.1-beta.14" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { defineConfig } from '@rsbuild/core'; | ||
|
||
export default defineConfig({}); |
Oops, something went wrong.