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
25 changes: 25 additions & 0 deletions .agents/skills/rstack-cli-docs/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: rstack-cli-docs
description: Consult installed, version-matched Rstack docs only for user-facing `rs` command behavior, `rstack.config.*` semantics, or public `rstack` APIs. Do not use for purely internal implementation, tests, performance, or repository maintenance.
---

# Rstack CLI docs

Rstack CLI is the `rstack` package, exposed through the `rs` binaries. It provides one CLI, one
config file, and a consistent workflow for the Rstack JavaScript toolchain.

It covers web app, library, docs, test, lint, formatting, Git hook, and staged-file workflows.

## Read installed docs when this skill applies

When this skill applies, find and read the relevant Markdown documentation shipped with the installed `rstack` package.

Model knowledge can be outdated; the installed documentation is the source of truth for the project's Rstack version.

1. Start with `node_modules/rstack/docs/llms.txt`, then read only the linked pages relevant to the task before proposing or making changes.

2. For exact CLI flags and behavior, also run `rs -h` or `rs <command> -h` when supported.

If the bundled docs are not available at that path, locate the installed `rstack` package.

If they are still unavailable, verify that `rstack` is installed, and use CLI help plus the online [Rstack documentation](https://rstack.rs/) as a fallback.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,5 @@ jobs:
with:
run_install: true

- name: Lint
run: |
pnpm run prettier:ci
pnpm run lint
- name: Check
run: pnpm run check
5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierrc

This file was deleted.

1 change: 1 addition & 0 deletions .rstack/hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rs staged
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["rstack.rslint", "esbenp.prettier-vscode"]
"recommendations": ["rstack.rstack"]
}
10 changes: 5 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"search.useIgnoreFiles": true,
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "rstack.rstack"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "rstack.rstack"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "rstack.rstack"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "rstack.rstack"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "rstack.rstack"
}
}
3 changes: 1 addition & 2 deletions docs/migrate-v1-to-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ export default {
watchFiles: {
paths: '.',
options: {
ignored: (path, stats) =>
stats?.isFile() && !path.endsWith('.js'),
ignored: (path, stats) => stats?.isFile() && !path.endsWith('.js'),
},
},
},
Expand Down
36 changes: 10 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,24 @@
"client"
],
"scripts": {
"build": "rslib",
"bump": "npx bumpp",
"dev": "rslib -w",
"format": "prettier --write .",
"lint": "rslint",
"lint:write": "rslint --fix",
"prettier:ci": "prettier --check .",
"test": "pnpm run test:type && rstest",
"build": "rs lib",
"bump": "pnpx bumpp",
"check": "rs check",
"dev": "rs lib -w",
"format": "rs fmt",
"lint": "rs lint",
"prepare": "rs hooks",
"test": "pnpm run test:type && rs test",
"test:type": "pnpm run build && pnpm --dir tests run type-check"
},
"simple-git-hooks": {
"pre-commit": "npx nano-staged"
},
"nano-staged": {
"*.{yaml,yml,json,md,json5}": [
"npm run format"
],
"*.{js,jsx,ts,tsx,mjs,cjs}": [
"npm run format",
"rslint --fix"
]
},
"dependencies": {
"@rspack/dev-middleware": "^2.0.3"
},
"devDependencies": {
"@hono/node-server": "^2.1.1",
"@microsoft/api-extractor": "^7.59.0",
"@rslib/core": "^0.23.2",
"@rslint/core": "^0.9.0",
"@rspack/core": "2.0.0-rc.0",
"@rspack/core": "2.2.2",
"@rspack/plugin-react-refresh": "2.0.2",
"@rstest/core": "^0.11.11",
"@types/connect-history-api-fallback": "^1.5.4",
"@types/mime-types": "3.0.1",
"@types/node": "^24.13.3",
Expand All @@ -72,16 +57,15 @@
"http-proxy-middleware": "4.2.0",
"ipaddr.js": "^2.5.0",
"launch-editor": "^2.14.1",
"nano-staged": "^1.0.2",
"open": "^11.0.2",
"p-retry": "^7.1.1",
"prettier": "3.9.6",
"puppeteer": "^24.43.1",
"react-refresh": "0.18.0",
"require-from-string": "^2.0.2",
"rstack": "^0.7.2",
Comment thread
chenjiahan marked this conversation as resolved.
"selfsigned": "^5.5.0",
"serve-static": "^2.2.1",
"simple-git-hooks": "^2.14.0",
"typescript": "^7.0.2",
"ws": "^8.21.3"
},
Expand Down
Loading