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.
3 changes: 0 additions & 3 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"]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"search.useIgnoreFiles": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "rstack.rstack"
}
27 changes: 10 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,25 @@
"dist"
],
"scripts": {
"build": "rslib",
"dev": "rslib -w",
"lint": "rslint && prettier -c .",
"lint:write": "rslint --fix && prettier -w .",
"prepare": "simple-git-hooks",
"test": "rstest",
"bump": "npx bumpp"
},
"simple-git-hooks": {
"pre-commit": "pnpm run lint:write"
"build": "rs lib",
"bump": "pnpx bumpp",
"check": "rs check",
"dev": "rs lib -w",
"format": "rs fmt",
"lint": "rs lint",
"prepare": "rs hooks",
"test": "rs test"
},
"devDependencies": {
"@rsbuild/core": "^2.2.1",
"@rsbuild/core": "^2.2.2",
"@rsbuild/plugin-less": "^2.0.1",
"@rsbuild/plugin-sass": "^2.0.1",
"@rsbuild/plugin-stylus": "^2.0.1",
"@rsbuild/plugin-type-check": "^1.6.0",
"@rslib/core": "^0.23.2",
"@rslint/core": "^0.9.0",
"@rstest/core": "^0.11.11",
"@rstest/playwright": "^0.11.11",
"@types/node": "^24.13.3",
"line-diff": "2.1.2",
"playwright": "^1.62.1",
"prettier": "^3.9.6",
"simple-git-hooks": "^2.14.0",
"rstack": "^0.7.2",
"typescript": "^7.0.2"
},
"peerDependencies": {
Expand Down
7 changes: 4 additions & 3 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "playground",
"private": true,
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "npx rsbuild",
"build": "npx rsbuild build"
"build": "rs build",
"dev": "rs dev"
}
}
7 changes: 4 additions & 3 deletions playground/rsbuild.config.ts → playground/rstack.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { defineConfig } from '@rsbuild/core';
// Configuration guide: https://rstack.rs/config
import { pluginLess } from '@rsbuild/plugin-less';
import { pluginSass } from '@rsbuild/plugin-sass';
import { pluginStylus } from '@rsbuild/plugin-stylus';
import { pluginTypedCSSModules } from '../dist';
import { define } from 'rstack';
import { pluginTypedCSSModules } from '../src/index.ts';

export default defineConfig({
define.app({
plugins: [
pluginLess(),
pluginSass(),
Expand Down
Loading