@narisraz/create 0.0.0-stage → 0.8.0
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 +11 -2
- package/index.mjs +7 -0
- package/package.json +23 -4
package/README.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @narisraz/create
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
```sh
|
|
4
|
+
npm create @narisraz mon-projet
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
Asks a few questions, then writes a pnpm monorepo whose business rules live in `packages/domain`, with
|
|
8
|
+
[@narisraz/quality-gate](https://www.npmjs.com/package/@narisraz/quality-gate) already wired: Claude Code hooks
|
|
9
|
+
(the senior's routine, enforced TDD), CI, the map of the code, the journal and the first decision record.
|
|
10
|
+
|
|
11
|
+
Options (no questions with `--yes`): `--name <name>`, `--web` / `--no-web`, `--api`, `--lang fr|en`,
|
|
12
|
+
`--repo owner/name`, `--live <url>`, `--no-install`.
|
package/index.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// npm create @narisraz [folder] [options]: the same as `quality-gate new`, from the quality-gate package.
|
|
3
|
+
const { default: create } = await import('@narisraz/quality-gate/new');
|
|
4
|
+
create(process.argv.slice(2)).then(
|
|
5
|
+
(ok) => process.exit(ok ? 0 : 1),
|
|
6
|
+
(e) => { console.error(`✗ ${e.message}`); process.exit(2); },
|
|
7
|
+
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narisraz/create",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"description": "npm create @narisraz: a new project with everything from the first commit (business rules in one package, quality gate, Claude Code harness, docs, CI, live follow-up).",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/narisraz/quality-gate.git",
|
|
10
|
+
"directory": "create"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=20"
|
|
14
|
+
},
|
|
15
|
+
"bin": {
|
|
16
|
+
"create": "index.mjs"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.mjs",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@narisraz/quality-gate": "0.8.0"
|
|
24
|
+
}
|
|
25
|
+
}
|