dev-workflows 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -0
- package/package.json +4 -3
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# dev-workflows
|
|
2
|
+
|
|
3
|
+
> Define AI coding rules once. Compile to CLAUDE.md, .cursor/rules, GEMINI.md.
|
|
4
|
+
|
|
5
|
+
## Quick start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx dev-workflows init
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
devw init # set up .dwf/ in your project
|
|
15
|
+
devw add typescript-strict # install a rule block
|
|
16
|
+
devw compile # generate CLAUDE.md, .cursor/rules, GEMINI.md
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Available blocks
|
|
20
|
+
|
|
21
|
+
| Block | Description |
|
|
22
|
+
|-------|-------------|
|
|
23
|
+
| `typescript-strict` | Strict TypeScript conventions (no any, explicit returns) |
|
|
24
|
+
| `react-conventions` | Hooks rules, component patterns, naming |
|
|
25
|
+
| `nextjs-approuter` | App Router patterns, RSC, server actions |
|
|
26
|
+
| `tailwind` | Utility-first CSS conventions and design tokens |
|
|
27
|
+
| `testing-basics` | Test naming, AAA pattern, mock boundaries |
|
|
28
|
+
| `supabase-rls` | Row-Level Security enforcement and auth patterns |
|
|
29
|
+
|
|
30
|
+
## Commands
|
|
31
|
+
|
|
32
|
+
| Command | Description |
|
|
33
|
+
|---------|-------------|
|
|
34
|
+
| `devw init` | Initialize config in current project |
|
|
35
|
+
| `devw compile` | Compile rules to editor-specific formats |
|
|
36
|
+
| `devw add <block>` | Install a rule block |
|
|
37
|
+
| `devw remove <block>` | Remove an installed block |
|
|
38
|
+
| `devw list` | List available blocks and rules |
|
|
39
|
+
| `devw doctor` | Validate configuration |
|
|
40
|
+
|
|
41
|
+
## Documentation
|
|
42
|
+
|
|
43
|
+
Full specification: [docs/CLI_SPEC.md](docs/CLI_SPEC.md)
|
|
44
|
+
|
|
45
|
+
## License
|
|
46
|
+
|
|
47
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dev-workflows",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI that compiles developer rules into editor-specific config files",
|
|
6
6
|
"bin": {
|
|
@@ -15,13 +15,14 @@
|
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
17
|
"bin",
|
|
18
|
-
"content"
|
|
18
|
+
"content",
|
|
19
|
+
"README.md"
|
|
19
20
|
],
|
|
20
21
|
"publishConfig": {
|
|
21
22
|
"access": "public"
|
|
22
23
|
},
|
|
23
24
|
"scripts": {
|
|
24
|
-
"prebuild": "rm -rf content/blocks && mkdir -p content && cp -r ../../content/blocks content/blocks",
|
|
25
|
+
"prebuild": "rm -rf content/blocks && mkdir -p content && cp -r ../../content/blocks content/blocks && cp ../../README.md README.md",
|
|
25
26
|
"build": "tsc",
|
|
26
27
|
"dev": "tsc --watch",
|
|
27
28
|
"typecheck": "tsc --noEmit",
|