@beauraines/sprint-tracker 0.6.5 → 0.6.7

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/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.6.7](https://bitbucket.org/beauraines/sprint-tracker/compare/v0.6.6...v0.6.7) (2023-12-13)
6
+
7
+
8
+ ### Features
9
+
10
+ * adds readme command ([#48](https://bitbucket.org/beauraines/sprint-tracker/issues/48)) ([7992851](https://bitbucket.org/beauraines/sprint-tracker/commit/7992851afc6aa446aa1d04b7366fb1b264eca0e8))
11
+
12
+ ### [0.6.6](https://bitbucket.org/beauraines/sprint-tracker/compare/v0.6.5...v0.6.6) (2023-12-13)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * cross-platform home dir in R ([#47](https://bitbucket.org/beauraines/sprint-tracker/issues/47)) ([19ea5da](https://bitbucket.org/beauraines/sprint-tracker/commit/19ea5dac5297d7ecbcb6d2b054940482dd46cf12))
18
+
5
19
  ### [0.6.5](https://bitbucket.org/beauraines/sprint-tracker/compare/v0.6.4...v0.6.5) (2023-12-13)
6
20
 
7
21
 
@@ -3,7 +3,7 @@ library(ggplot2)
3
3
 
4
4
  # sqlite3 --header --csv tracker.db < sql/sprintOutcomes.sql > /tmp/outcomes.csv
5
5
 
6
- outcomes = read_csv('~/outcomes.csv')
6
+ outcomes = read_csv(str_c(Sys.getenv("HOME"),"/","outcomes.csv"))
7
7
 
8
8
  outcomes <- outcomes %>%
9
9
  tibble() %>%
@@ -98,6 +98,6 @@ plot<-ggplot(outcomes,
98
98
 
99
99
  # plot # commented out for docker
100
100
 
101
- ggsave(str_c("~/",str_replace(unique(outcomes$project_name)," ",""),"SprintOutcomesCli.png"),plot=plot,bg="white", width = 2882, height = 1700, units = "px")
101
+ ggsave(str_c(Sys.getenv("HOME"),"/",str_replace(unique(outcomes$project_name)," ",""),"SprintOutcomesCli.png"),plot=plot,bg="white", width = 2882, height = 1700, units = "px")
102
102
 
103
- print(str_c("Saving to ",str_c("~/",str_replace(unique(outcomes$project_name)," ",""),"SprintOutcomesCli.png"),sep = " "))
103
+ print(str_c("Saving to ",str_c(Sys.getenv("HOME"),"/",str_replace(unique(outcomes$project_name)," ",""),"SprintOutcomesCli.png"),sep = " "))
package/README.md CHANGED
@@ -81,14 +81,6 @@ A configuration file `~/sprintTracker.json` is required with the full path to y
81
81
  }
82
82
  ```
83
83
 
84
- ## Installation and Setup for Development
85
-
86
- 1. Clone the repository
87
- 2. Ensure you have sqlite3 and docker installed. See [Dependencies](#dependencies).
88
- 3. Install npm dependencies `npm i`
89
- 4. Globally install the sprint tracker `npm -g i`
90
- 5. Follow the [General Usage](#general-usage) instructions.
91
-
92
84
  ## Tracking Outcomes
93
85
 
94
86
  ### Project
@@ -113,59 +105,21 @@ Non-working days and PTO will be recorded to be able to normalize Sprints with d
113
105
  1. Carryover - External: Work that was carried over due to blockers external to the scrum team. Use of this is optional, as an agile team should be fully self-sufficient.
114
106
 
115
107
 
116
- ### ERD
108
+ ## Installation and Setup for Development
117
109
 
118
- ```mermaid
119
- erDiagram
120
- PROJECTS {
121
- int id
122
- string name
123
- string pm_name
124
- string pm_email
125
- string client
126
- string project_number
127
- date start_date
128
- date end_date
129
-
130
- }
131
- SPRINTS {
132
- int id
133
- int project_id
134
- string sprint_name
135
- date start_date
136
- date end_date
137
- number committed_points
138
- number committed_stories
139
- number non_working_days
140
- number developers
141
- number developer_pto_days
142
- }
143
-
144
- SPRINT_OUTCOMES {
145
- int id
146
- int sprint_id
147
- int outcome_id
148
- int issue_count
149
- int story_points
150
- text notes
151
- }
152
-
153
- OUTCOMES {
154
- int id
155
- string name
156
- text description
157
- }
158
-
159
- PROJECTS ||--o{ SPRINTS : ""
160
- SPRINTS ||--|{ SPRINT_OUTCOMES : ""
161
- OUTCOMES ||--o{ SPRINT_OUTCOMES: ""
162
- ```
110
+ 1. Clone the repository
111
+ 2. Ensure you have sqlite3 and docker installed. See [Dependencies](#dependencies).
112
+ 3. Install npm dependencies `npm i`
113
+ 4. Globally install the sprint tracker `npm -g i`
114
+ 5. Follow the [General Usage](#general-usage) instructions.
163
115
 
116
+ ### ERD
164
117
 
118
+ See the standalone [ERD document](./erd.md)
165
119
 
166
- ## Generating Visualizations with R and Docker
120
+ ### Generating Visualizations with R and Docker
167
121
 
168
- There are several R scripts included in the project repository, more than just the sprint outcomes. They can be run from the command line using docker and the `rocker/tidyverse` image as shown below.
122
+ If you choose to not have a local R install, you can use R in a docker container, manually. There are several R scripts included in the project repository, more than just the sprint outcomes. They can be run from the command line using docker and the `rocker/tidyverse` image as shown below.
169
123
 
170
124
  ```bash
171
125
  # PROJECT_DIR must have trailing slash
@@ -174,7 +128,7 @@ IMAGE=rocker/tidyverse
174
128
  docker run -it --rm -v ${PROJECT_DIR}:/home/rstudio/projects/ ${IMAGE} su -c 'Rscript /home/rstudio/projects/sprint-tracker/R/sprintOutcomes.R' rstudio
175
129
  ```
176
130
 
177
- ## Roadmap
131
+ ### Roadmap
178
132
 
179
133
  1. ~~Build local database using sqlite3~~
180
134
  2. ~~Script visualizations, possibly with R, graph-cli, chartsjs, PowerBI, or AWS QuickSight~~
package/cmds/readme.js ADDED
@@ -0,0 +1,21 @@
1
+ const { helpers } = require('helpers')
2
+ const cliMd = (...args) => import('cli-markdown').then(({default:cliMd}) => cliMd(...args));
3
+
4
+
5
+ const command = 'readme'
6
+ const desc = "Displays the project's REAMDE"
7
+ const builder = {}
8
+
9
+ const handler = async function () {
10
+
11
+ const readme = await helpers.readFile(`${__dirname}/../README.md`)
12
+ // ! Break out ERD to standalone document
13
+ console.log(await cliMd(readme))
14
+ }
15
+
16
+ module.exports = {
17
+ command,
18
+ desc,
19
+ builder,
20
+ handler
21
+ }
package/erd.md ADDED
@@ -0,0 +1,47 @@
1
+ # ERD
2
+
3
+ ```mermaid
4
+ erDiagram
5
+ PROJECTS {
6
+ int id
7
+ string name
8
+ string pm_name
9
+ string pm_email
10
+ string client
11
+ string project_number
12
+ date start_date
13
+ date end_date
14
+
15
+ }
16
+ SPRINTS {
17
+ int id
18
+ int project_id
19
+ string sprint_name
20
+ date start_date
21
+ date end_date
22
+ number committed_points
23
+ number committed_stories
24
+ number non_working_days
25
+ number developers
26
+ number developer_pto_days
27
+ }
28
+
29
+ SPRINT_OUTCOMES {
30
+ int id
31
+ int sprint_id
32
+ int outcome_id
33
+ int issue_count
34
+ int story_points
35
+ text notes
36
+ }
37
+
38
+ OUTCOMES {
39
+ int id
40
+ string name
41
+ text description
42
+ }
43
+
44
+ PROJECTS ||--o{ SPRINTS : ""
45
+ SPRINTS ||--|{ SPRINT_OUTCOMES : ""
46
+ OUTCOMES ||--o{ SPRINT_OUTCOMES: ""
47
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beauraines/sprint-tracker",
3
- "version": "0.6.5",
3
+ "version": "0.6.7",
4
4
  "description": "Database and R visualizations to track sprint performance",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -37,6 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@json2csv/node": "^7.0.1",
40
+ "cli-markdown": "^3.1.0",
40
41
  "cli-table3": "^0.6.3",
41
42
  "helpers": "npm:@beauraines/node-helpers@^2.4.0",
42
43
  "node-db-migration": "^1.4.0",