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
2 changes: 1 addition & 1 deletion .agents/skills/migrate-to-rstack-cli/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Use one of the default names: `rstack.config.ts`, `.js`, `.mts`, or `.mjs`.
Use `rs -c <path>` or `rs --config <path>` only for a custom path.

```ts
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app({
Expand Down
2 changes: 1 addition & 1 deletion examples/app-react/rstack.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app(async () => {
Expand Down
2 changes: 1 addition & 1 deletion examples/app-vanilla/rstack.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.test({
Expand Down
2 changes: 1 addition & 1 deletion examples/documentation/rstack.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';
import path from 'node:path';

Expand Down
2 changes: 1 addition & 1 deletion examples/lib-node/rstack.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.lib({
Expand Down
2 changes: 1 addition & 1 deletion examples/lib-react/rstack.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.lib(async () => {
Expand Down
2 changes: 1 addition & 1 deletion examples/test-inline-projects/rstack.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app(async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rstack/rstack.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.lib({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app({
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rstack/template-app-lit/rstack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app(async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app(async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app(async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rstack/template-app-react/rstack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app(async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app(async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rstack/template-app-solid/rstack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app(async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app(async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app(async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app(async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rstack/template-app-vue/rstack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app(async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rstack/template-doc-i18n/rstack.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import path from 'node:path';
import { define } from 'rstack';

Expand Down
2 changes: 1 addition & 1 deletion packages/create-rstack/template-doc/rstack.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import path from 'node:path';
import { define } from 'rstack';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.lib({
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rstack/template-lib-node/rstack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.lib({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.lib(async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rstack/template-lib-react/rstack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.lib(async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.lib(async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rstack/template-lib-solid/rstack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.lib(async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';
import { svelteDtsPlugin } from './scripts/rslib-plugin-svelte-dts.ts';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.lib(async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.lib(async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rstack/template-lib-vue/rstack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.lib(async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/rstack/rstack.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.test(async () => {
Expand Down
14 changes: 7 additions & 7 deletions packages/rstack/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,23 +94,23 @@ type Define = {
*
* This config is used by the `rs dev`, `rs build`, and `rs preview` commands.
*
* @see {@link https://rstack.rs/config | Rstack configuration guide}
* @see {@link https://rstack.rs/config | Configuration guide}
*/
app: (config: RsbuildConfigDefinition) => void;
/**
* Defines the Rslib config for libraries.
*
* This config is used by the `rs lib` command.
*
* @see {@link https://rstack.rs/config | Rstack configuration guide}
* @see {@link https://rstack.rs/config | Configuration guide}
*/
lib: (config: RslibConfigDefinition) => void;
/**
* Defines the Rspress config for documentation.
*
* This config is used by the `rs doc` command.
*
* @see {@link https://rstack.rs/config | Rstack configuration guide}
* @see {@link https://rstack.rs/config | Configuration guide}
*/
doc: (config: RspressConfigDefinition) => void;
/**
Expand All @@ -122,7 +122,7 @@ type Define = {
* falls back to `define.lib`. For multi-project configs, this applies to every inline
* project without an explicit `extends`. The app config takes precedence when both are defined.
*
* @see {@link https://rstack.rs/config | Rstack configuration guide}
* @see {@link https://rstack.rs/config | Configuration guide}
*/
test: (config: RstestConfigExport) => void;
/**
Expand All @@ -131,23 +131,23 @@ type Define = {
* This config is used by the `rs lint` command.
* A config factory receives the exports from `rstack/lint`.
*
* @see {@link https://rstack.rs/config | Rstack configuration guide}
* @see {@link https://rstack.rs/config | Configuration guide}
*/
lint: (config: RslintConfig | RslintConfigFactory) => void;
/**
* Defines the Prettier config for formatting.
*
* This config will be used by the `rs fmt` command.
*
* @see {@link https://rstack.rs/config | Rstack configuration guide}
* @see {@link https://rstack.rs/config | Configuration guide}
*/
fmt: (config: FmtConfigDefinition) => void;
/**
* Defines the lint-staged config for staged files.
*
* This config is used by the `rs staged` command.
*
* @see {@link https://rstack.rs/config | Rstack configuration guide}
* @see {@link https://rstack.rs/config | Configuration guide}
*/
staged: (config: StagedConfig) => void;
};
Expand Down
2 changes: 1 addition & 1 deletion rstack.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.lint(async ({ js, ts }) => {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en/guide/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Rstack CLI centralizes the configuration for your project's tools in a single fi
Create `rstack.config.ts` in the project root and call the relevant `define.*()` APIs:

```ts title="rstack.config.ts"
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app({
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en/guide/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ The following commands are available:
Create `rstack.config.ts` in the project root and register the configurations your project needs. The following is a minimal example for an application with testing and linting:

```ts title="rstack.config.ts"
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app({
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/guide/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Rstack CLI 将项目所用工具的配置集中到一份文件中。通过 `defi
在项目根目录创建 `rstack.config.ts`,并调用对应的 `define.*()` API:

```ts title="rstack.config.ts"
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app({
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/guide/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Rstack CLI 提供以下命令:
在项目根目录创建 `rstack.config.ts`,并注册项目所需的配置。以下是一个包含应用、测试和代码检查的最小示例:

```ts title="rstack.config.ts"
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app({
Expand Down
2 changes: 1 addition & 1 deletion website/rstack.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Rstack configuration guide: https://rstack.rs/config
// Configuration guide: https://rstack.rs/config
import path from 'node:path';
import { define } from 'rstack';

Expand Down