Skip to content

Commit

Permalink
feat: add a vanilla TS project built with Rsbuild
Browse files Browse the repository at this point in the history
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
tbouffard committed Aug 18, 2024
1 parent 3630e2c commit be2c63d
Show file tree
Hide file tree
Showing 8 changed files with 356 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check-typescript-projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
- lit-ts
- parcel-ts
- rollup-ts
- rsbuild-ts
- sveltekit-ts
- vitejs-ts
npm-package: ['release', 'development']
Expand Down
271 changes: 267 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions projects/rsbuild-ts/.gitignore
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
20 changes: 20 additions & 0 deletions projects/rsbuild-ts/README.md
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.
11 changes: 11 additions & 0 deletions projects/rsbuild-ts/package.json
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"
}
}
3 changes: 3 additions & 0 deletions projects/rsbuild-ts/rsbuild.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineConfig } from '@rsbuild/core';

export default defineConfig({});
Loading

0 comments on commit be2c63d

Please sign in to comment.