dev-workflows 0.1.0 → 0.1.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dev Workflows
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,QAAA,MAAM,OAAO,SAAgB,CAAC;AAgB9B,OAAO,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,QAAA,MAAM,OAAO,SAAgB,CAAC;AAgB9B,OAAO,EAAE,OAAO,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { createRequire } from 'node:module';
1
2
  import { Command } from 'commander';
2
3
  import { registerInitCommand } from './commands/init.js';
3
4
  import { registerCompileCommand } from './commands/compile.js';
@@ -5,11 +6,13 @@ import { registerDoctorCommand } from './commands/doctor.js';
5
6
  import { registerAddCommand } from './commands/add.js';
6
7
  import { registerRemoveCommand } from './commands/remove.js';
7
8
  import { registerListCommand } from './commands/list.js';
9
+ const require = createRequire(import.meta.url);
10
+ const pkg = require('../package.json');
8
11
  const program = new Command();
9
12
  program
10
13
  .name('devw')
11
14
  .description('Compile developer rules into editor-specific config files')
12
- .version('0.1.0');
15
+ .version(pkg.version);
13
16
  registerInitCommand(program);
14
17
  registerCompileCommand(program);
15
18
  registerDoctorCommand(program);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,MAAM,CAAC;KACZ,WAAW,CAAC,2DAA2D,CAAC;KACxE,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAC7B,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAChC,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAC/B,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAC5B,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAC/B,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAE7B,OAAO,CAAC,KAAK,EAAE,CAAC;AAEhB,OAAO,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAwB,CAAC;AAE9D,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,MAAM,CAAC;KACZ,WAAW,CAAC,2DAA2D,CAAC;KACxE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAExB,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAC7B,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAChC,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAC/B,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAC5B,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAC/B,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAE7B,OAAO,CAAC,KAAK,EAAE,CAAC;AAEhB,OAAO,EAAE,OAAO,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,28 @@
1
1
  {
2
2
  "name": "dev-workflows",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "CLI that compiles developer rules into editor-specific config files",
6
+ "license": "MIT",
7
+ "author": "Gerardo Polanco",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/gpolanco/dev-workflows",
11
+ "directory": "packages/cli"
12
+ },
13
+ "homepage": "https://github.com/gpolanco/dev-workflows#readme",
14
+ "keywords": [
15
+ "cli",
16
+ "developer-workflows",
17
+ "rules",
18
+ "editor",
19
+ "claude",
20
+ "cursor",
21
+ "gemini"
22
+ ],
23
+ "engines": {
24
+ "node": ">=20.0.0"
25
+ },
6
26
  "bin": {
7
27
  "devw": "./bin/devw.js"
8
28
  },
@@ -15,20 +35,12 @@
15
35
  "files": [
16
36
  "dist",
17
37
  "bin",
18
- "content"
38
+ "content",
39
+ "README.md"
19
40
  ],
20
41
  "publishConfig": {
21
42
  "access": "public"
22
43
  },
23
- "scripts": {
24
- "prebuild": "rm -rf content/blocks && mkdir -p content && cp -r ../../content/blocks content/blocks",
25
- "build": "tsc",
26
- "dev": "tsc --watch",
27
- "typecheck": "tsc --noEmit",
28
- "test": "tsc -p tsconfig.test.json && find .test-build/tests -name '*.test.js' -exec node --test {} +",
29
- "test:unit": "tsc -p tsconfig.test.json && find .test-build/tests -name '*.test.js' -not -path '*e2e*' -exec node --test {} +",
30
- "test:e2e": "tsc -p tsconfig.test.json && find .test-build/tests/e2e -name '*.test.js' -exec node --test {} +"
31
- },
32
44
  "dependencies": {
33
45
  "commander": "^13.0.0",
34
46
  "yaml": "^2.7.0",
@@ -38,5 +50,14 @@
38
50
  "devDependencies": {
39
51
  "typescript": "^5.7.0",
40
52
  "@types/node": "^22.0.0"
53
+ },
54
+ "scripts": {
55
+ "prebuild": "rm -rf content/blocks && mkdir -p content && cp -r ../../content/blocks content/blocks && cp ../../README.md README.md",
56
+ "build": "tsc",
57
+ "dev": "tsc --watch",
58
+ "typecheck": "tsc --noEmit",
59
+ "test": "tsc -p tsconfig.test.json && find .test-build/tests -name '*.test.js' -exec node --test {} +",
60
+ "test:unit": "tsc -p tsconfig.test.json && find .test-build/tests -name '*.test.js' -not -path '*e2e*' -exec node --test {} +",
61
+ "test:e2e": "tsc -p tsconfig.test.json && find .test-build/tests/e2e -name '*.test.js' -exec node --test {} +"
41
62
  }
42
- }
63
+ }