Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["config:base", "schedule:monthly", "group:allNonMajor"],
rangeStrategy: "bump",
packageRules: [{ depTypeList: ["peerDependencies"], enabled: false }]
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: ['config:base', 'schedule:monthly', 'group:allNonMajor'],
rangeStrategy: 'bump',
packageRules: [{ depTypeList: ['peerDependencies'], enabled: false }],
}
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
inputs:
version:
type: choice
description: "Release Version Type"
description: 'Release Version Type'
required: true
default: "patch"
default: 'patch'
options:
- major
- premajor
Expand All @@ -19,9 +19,9 @@ on:

tag:
type: choice
description: "Release Npm Tag"
description: 'Release Npm Tag'
required: true
default: "latest"
default: 'latest'
options:
- canary
- nightly
Expand All @@ -31,7 +31,7 @@ on:

dry_run:
type: boolean
description: "DryRun release"
description: 'DryRun release'
required: true
default: false

Expand All @@ -58,7 +58,7 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: 20
cache: "pnpm"
cache: 'pnpm'

# Update npm to the latest version to enable OIDC
- name: Update npm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
cache: 'pnpm'

- name: Install Dependencies
run: pnpm install
Expand All @@ -70,7 +70,7 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: 20
cache: "pnpm"
cache: 'pnpm'

- name: Install Dependencies
run: pnpm install
Expand Down
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
21 changes: 0 additions & 21 deletions .prettierrc.js

This file was deleted.

24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ While starting the development server, you can specify the configuration by the
```js
// rspack.config.mjs
export default {
// ...
devServer: {
// the configuration of the development server
port: 8080
}
// ...
devServer: {
// the configuration of the development server
port: 8080,
},
};
```

Expand All @@ -90,21 +90,21 @@ export default {
While it's recommended to run `@rspack/dev-server` via the CLI, you may also choose to start a server via the API.

```js
import { RspackDevServer } from "@rspack/dev-server";
import rspack from "@rspack/core";
import rspackConfig from "./rspack.config.mjs";
import { RspackDevServer } from '@rspack/dev-server';
import rspack from '@rspack/core';
import rspackConfig from './rspack.config.mjs';

const compiler = rspack(rspackConfig);
const devServerOptions = {
...rspackConfig.devServer,
// override
port: 8888
...rspackConfig.devServer,
// override
port: 8888,
};

const server = new RspackDevServer(devServerOptions, compiler);

server.startCallback(() => {
console.log("Successfully started server on http://localhost:8888");
console.log('Successfully started server on http://localhost:8888');
});
```

Expand Down
18 changes: 9 additions & 9 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"files": {
"ignore": [
"client-src/**/*",
"client/**/*.js",
"dist/**/*",
"tests/fixtures/**/*"
]
}
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"files": {
"ignore": [
"client-src/**/*",
"client/**/*.js",
"dist/**/*",
"tests/fixtures/**/*",
],
},
}
Loading