dev-workflows 0.1.1 → 0.1.3

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 CHANGED
@@ -2,12 +2,16 @@
2
2
 
3
3
  > Define AI coding rules once. Compile to CLAUDE.md, .cursor/rules, GEMINI.md.
4
4
 
5
+ AI coding tools (Claude Code, Cursor, Gemini CLI) each use different config files for project rules. dev-workflows lets you define rules once in YAML and compile them to each tool's native format. No duplication, no drift.
6
+
5
7
  ## Quick start
6
8
 
7
9
  ```bash
8
10
  npx dev-workflows init
9
11
  ```
10
12
 
13
+ Requires Node.js >= 22.
14
+
11
15
  ## Usage
12
16
 
13
17
  ```bash
@@ -16,6 +20,20 @@ devw add typescript-strict # install a rule block
16
20
  devw compile # generate CLAUDE.md, .cursor/rules, GEMINI.md
17
21
  ```
18
22
 
23
+ ## What it generates
24
+
25
+ Running `devw compile` produces tool-specific files with your rules between markers:
26
+
27
+ ```md
28
+ <!-- BEGIN dev-workflows -->
29
+ - Never use `any`. Use `unknown` when the type is truly unknown.
30
+ - Always declare explicit return types on exported functions.
31
+ - Prefer union types over enums. Use `as const` objects when you need runtime values.
32
+ <!-- END dev-workflows -->
33
+ ```
34
+
35
+ Content outside the markers is preserved — your manual notes stay intact.
36
+
19
37
  ## Available blocks
20
38
 
21
39
  | Block | Description |
@@ -38,10 +56,6 @@ devw compile # generate CLAUDE.md, .cursor/rules, GEMINI.md
38
56
  | `devw list` | List available blocks and rules |
39
57
  | `devw doctor` | Validate configuration |
40
58
 
41
- ## Documentation
42
-
43
- Full specification: [docs/CLI_SPEC.md](docs/CLI_SPEC.md)
44
-
45
59
  ## License
46
60
 
47
61
  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.1",
3
+ "version": "0.1.3",
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
  },
@@ -21,15 +41,6 @@
21
41
  "publishConfig": {
22
42
  "access": "public"
23
43
  },
24
- "scripts": {
25
- "prebuild": "rm -rf content/blocks && mkdir -p content && cp -r ../../content/blocks content/blocks && cp ../../README.md README.md",
26
- "build": "tsc",
27
- "dev": "tsc --watch",
28
- "typecheck": "tsc --noEmit",
29
- "test": "tsc -p tsconfig.test.json && find .test-build/tests -name '*.test.js' -exec node --test {} +",
30
- "test:unit": "tsc -p tsconfig.test.json && find .test-build/tests -name '*.test.js' -not -path '*e2e*' -exec node --test {} +",
31
- "test:e2e": "tsc -p tsconfig.test.json && find .test-build/tests/e2e -name '*.test.js' -exec node --test {} +"
32
- },
33
44
  "dependencies": {
34
45
  "commander": "^13.0.0",
35
46
  "yaml": "^2.7.0",
@@ -39,5 +50,14 @@
39
50
  "devDependencies": {
40
51
  "typescript": "^5.7.0",
41
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 {} +"
42
62
  }
43
- }
63
+ }