archspec 1.0.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/index.js +32 -0
- package/package.json +28 -0
package/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require("fs");
|
|
4
|
+
const path = require("path");
|
|
5
|
+
|
|
6
|
+
const command = process.argv[2];
|
|
7
|
+
|
|
8
|
+
if (command === "init") {
|
|
9
|
+
init();
|
|
10
|
+
} else {
|
|
11
|
+
console.log("Usage: shesdev-hello-arch init");
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function init() {
|
|
15
|
+
createFolder("architecture");
|
|
16
|
+
createFolder("governance");
|
|
17
|
+
createFolder("implementation");
|
|
18
|
+
createFolder("execution");
|
|
19
|
+
|
|
20
|
+
console.log("Governance structure initialized.");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function createFolder(name) {
|
|
24
|
+
const dirPath = path.resolve(process.cwd(), name);
|
|
25
|
+
|
|
26
|
+
if (!fs.existsSync(dirPath)) {
|
|
27
|
+
fs.mkdirSync(dirPath);
|
|
28
|
+
console.log(`Created folder: ${name}`);
|
|
29
|
+
} else {
|
|
30
|
+
console.log(`Folder already exists: ${name}`);
|
|
31
|
+
}
|
|
32
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "archspec",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Architecture governance scaffolding CLI for structured project execution.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"archspec": "./index.js"
|
|
7
|
+
},
|
|
8
|
+
"main": "index.js",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "echo \"No tests yet\""
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"architecture",
|
|
14
|
+
"governance",
|
|
15
|
+
"scaffolding",
|
|
16
|
+
"cli",
|
|
17
|
+
"project-structure",
|
|
18
|
+
"engineering",
|
|
19
|
+
"workflow",
|
|
20
|
+
"automation"
|
|
21
|
+
],
|
|
22
|
+
"author": "shes.dev",
|
|
23
|
+
"license": "ISC",
|
|
24
|
+
"type": "commonjs",
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=18"
|
|
27
|
+
}
|
|
28
|
+
}
|