@greenarmor/ges-doc-generator
Advanced tools
+10
-6
@@ -89,10 +89,14 @@ import { GESF_VERSION, GES_DIR, COMPLIANCE_DIR, SECURITY_DIR } from "@greenarmor/ges-core"; | ||
| export function generateMetadataJson(config) { | ||
| const meta = { | ||
| project_name: config.project_name, | ||
| project_type: config.project_type, | ||
| initialized_at: config.created_at, | ||
| gesf_version: GESF_VERSION, | ||
| }; | ||
| if (config.country) { | ||
| meta.country = config.country; | ||
| } | ||
| return { | ||
| filePath: path.join(GES_DIR, "metadata.json"), | ||
| content: JSON.stringify({ | ||
| project_name: config.project_name, | ||
| project_type: config.project_type, | ||
| initialized_at: config.created_at, | ||
| gesf_version: GESF_VERSION, | ||
| }, null, 2), | ||
| content: JSON.stringify(meta, null, 2), | ||
| }; | ||
@@ -99,0 +103,0 @@ } |
+2
-2
| { | ||
| "dependencies": { | ||
| "@greenarmor/ges-core": "1.2.8" | ||
| "@greenarmor/ges-core": "1.3.0" | ||
| }, | ||
@@ -27,3 +27,3 @@ "description": "GESF Documentation Generator - Compliance and security document templates", | ||
| "types": "./dist/index.d.ts", | ||
| "version": "1.2.8", | ||
| "version": "1.3.0", | ||
| "scripts": { | ||
@@ -30,0 +30,0 @@ "build": "tsc", |
23999
0.31%564
0.71%+ Added
- Removed
Updated