@pirol/create-charta 0.4.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 +13 -0
- package/bin/create-charta.js +17 -0
- package/package.json +23 -0
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# @pirol/create-charta
|
|
2
|
+
|
|
3
|
+
Start a [Company as Code](https://github.com/Pirol-ai/company-as-code) description in the current
|
|
4
|
+
directory:
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
npm init @pirol/charta
|
|
8
|
+
npm init @pirol/charta -- --name "Acme GmbH"
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This creates `company.yaml`, which marks the root of your company description. Everything after
|
|
12
|
+
that you write with your agent. Check it any time with `charta validate .`
|
|
13
|
+
(`npm i -g @pirol/charta`). Apache-2.0.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// `npm init @pirol/charta` — runs `charta init` with whatever arguments follow.
|
|
3
|
+
// Example: npm init @pirol/charta -- --name "Acme GmbH"
|
|
4
|
+
const { spawnSync } = require("child_process");
|
|
5
|
+
|
|
6
|
+
let shim;
|
|
7
|
+
try {
|
|
8
|
+
shim = require.resolve("@pirol/charta/bin/charta.js");
|
|
9
|
+
} catch {
|
|
10
|
+
console.error("create-charta: could not find @pirol/charta — try: npm i -g @pirol/charta");
|
|
11
|
+
process.exit(1);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const result = spawnSync(process.execPath, [shim, "init", ...process.argv.slice(2)], {
|
|
15
|
+
stdio: "inherit",
|
|
16
|
+
});
|
|
17
|
+
process.exit(result.status ?? 1);
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pirol/create-charta",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "Start a Company as Code description: npm init @pirol/charta",
|
|
5
|
+
"bin": {
|
|
6
|
+
"create-charta": "bin/create-charta.js"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"bin"
|
|
10
|
+
],
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/Pirol-ai/company-as-code.git"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://company-as-code.org",
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=18"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@pirol/charta": "0.4.0"
|
|
22
|
+
}
|
|
23
|
+
}
|