mdboard 1.2.0 → 1.3.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/init.js DELETED
@@ -1,109 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const fs = require('fs');
4
- const path = require('path');
5
- const { loadConfig } = require('./config');
6
-
7
- const cwd = process.cwd();
8
- const projectPath = path.join(cwd, 'project');
9
- const projectName = path.basename(cwd);
10
- const today = new Date().toISOString().split('T')[0];
11
- const config = loadConfig(cwd);
12
-
13
- if (fs.existsSync(projectPath)) {
14
- console.log(`\n project/ already exists at ${projectPath}`);
15
- console.log(' Skipping init to avoid overwriting existing data.\n');
16
- process.exit(0);
17
- }
18
-
19
- const msDir = config.entities.milestone.dir;
20
-
21
- // Create directories
22
- fs.mkdirSync(projectPath, { recursive: true });
23
- fs.mkdirSync(path.join(projectPath, msDir), { recursive: true });
24
- fs.mkdirSync(path.join(projectPath, 'archive'), { recursive: true });
25
-
26
- // PROJECT.md
27
- fs.writeFileSync(path.join(projectPath, 'PROJECT.md'), `---
28
- name: "${projectName}"
29
- description: ""
30
- created: ${today}
31
- ---
32
-
33
- # ${projectName}
34
-
35
- ## Current State
36
-
37
- No milestones or sprints created yet.
38
-
39
- ## Notes
40
-
41
- `, 'utf-8');
42
-
43
- // metrics.md
44
- fs.writeFileSync(path.join(projectPath, 'metrics.md'), `---
45
- updated: ${today}
46
- ---
47
-
48
- # Metrics
49
-
50
- ## Velocity
51
-
52
- | Sprint | Planned | Completed | Rate |
53
- |--------|---------|-----------|------|
54
-
55
- ## Notes
56
-
57
- `, 'utf-8');
58
-
59
- // mdboard.json — example config
60
- fs.writeFileSync(path.join(projectPath, 'mdboard.json'), `{
61
- "entities": {
62
- "task": {
63
- "singular": "Task",
64
- "plural": "Tasks",
65
- "prefix": "TASK"
66
- }
67
- }
68
- }
69
- `, 'utf-8');
70
-
71
- // mdboard.css — example custom theme
72
- fs.writeFileSync(path.join(projectPath, 'mdboard.css'), `/* mdboard custom theme
73
- Override any CSS variable from the dashboard.
74
- Example:
75
- :root {
76
- --bg: #FFFFFF;
77
- --surface: #F8F9FA;
78
- --text: #212529;
79
- --accent: #0969DA;
80
- }
81
- */
82
- `, 'utf-8');
83
-
84
- console.log(`
85
- mdboard init — project scaffolded
86
-
87
- Created:
88
- project/PROJECT.md
89
- project/metrics.md
90
- project/${msDir}/
91
- project/archive/
92
- project/mdboard.json
93
- project/mdboard.css
94
-
95
- Next steps:
96
- 1. Edit project/PROJECT.md with your project details
97
- 2. Create milestones and epics under project/${msDir}/
98
- 3. Customize project/mdboard.json for your workflow
99
- 4. Run \`mdboard\` to start the dashboard
100
-
101
- Multi-repo workspace:
102
- Create a workspace.json to manage multiple repos:
103
- {
104
- "sources": [
105
- { "name": "api", "path": "../api-repo", "icon": "🔧" },
106
- { "name": "web", "path": "../web-repo", "icon": "🌐" }
107
- ]
108
- }
109
- `);
File without changes