imdone-core 1.48.0 → 1.49.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.
@@ -11,7 +11,7 @@ jobs:
11
11
 
12
12
  strategy:
13
13
  matrix:
14
- node-version: [16.x, 17.x, 18.x, 19.x]
14
+ node-version: [16.x, 17.x, 18.x, 19.x, 20.x]
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@v3
@@ -4,20 +4,20 @@ const LocalFileParserFactory = require('../parsers/file/LocalFileParserFactory')
4
4
 
5
5
  module.exports = class FileSystemProjectReader {
6
6
  async read (projectPath) {
7
- // BACKLOG:-890 ## Load the config file
7
+ // BACKLOG ## Load the config file
8
8
  // #adapter
9
- // [${source.path}](${source.path})
9
+ // [lib/adapters/readers/FileSystemProjectReader.js](lib/adapters/readers/FileSystemProjectReader.js)
10
10
  // <!-- epic:"Release 2.0" -->
11
11
  const files = await this.getFilesFromDirectory(projectPath)
12
12
 
13
- // BACKLOG:-780 ## Parse project files
13
+ // BACKLOG ## Parse project files
14
14
  // - Loop over the files in the filesystem
15
15
  // - Give each one a file parser and parse the file
16
16
  // - `const parser = LocalFileParserFactory.getFileParser(filePath, config)`
17
17
  // - Use worker_threads
18
18
  // - After tasks are parsed trim the description appropriately and look for Check style tasks in what's left of the description
19
19
  // #adapter
20
- // [${source.path}](${source.path})
20
+ // [lib/adapters/readers/FileSystemProjectReader.js](lib/adapters/readers/FileSystemProjectReader.js)
21
21
  // <!-- epic:"Release 2.0" -->
22
22
 
23
23
  }
package/lib/file.js CHANGED
@@ -297,9 +297,10 @@ File.prototype.transformTasks = function (config, modify) {
297
297
  }
298
298
 
299
299
  // TODO Blank lines should be allowed in code tasks
300
- // #imdone-1.47.0
301
300
  // <!--
302
- // order:-120
301
+ // #imdone-1.49.0
302
+ // #feature
303
+ // order:-105
303
304
  // -->
304
305
  File.prototype.extractCodeStyleTasks = function (config, pos, content) {
305
306
  var self = this
@@ -148,9 +148,8 @@ function mixin(repo, fs = require('fs')) {
148
148
  if (!path || stat.isDirectory()) return
149
149
  var file = repo.getFile(path) || path
150
150
  const isFile = File.isFile(file)
151
- // BACKLOG:-20 ## Handle the case where the file is not in the repo
151
+ // BACKLOG ## Handle the case where the file is not in the repo
152
152
  // #urgent #1.12.0
153
- // console.log(`file.modifiedTime ${file.getModifiedTime()} stat.mtime ${stat.mtime}`)
154
153
  if (isFile && stat.mtime <= file.getModifiedTime()) {
155
154
  // console.log("File update already applied. Change ignored.")
156
155
  return
@@ -59,6 +59,7 @@ module.exports = class ArchivePlugin extends Plugin {
59
59
  )
60
60
  // TODO This should use the CardContentParser to get the raw task
61
61
  // <!--
62
+ // remind:2024-12-11T13:27:44-05:00
62
63
  // #imdone-1.47.0
63
64
  // order:-110
64
65
  // -->
package/lib/project.js CHANGED
@@ -93,7 +93,7 @@ module.exports = class WorkerProject extends Project {
93
93
  return { path: this.path }
94
94
  }
95
95
 
96
- toImdoneJSON() {
96
+ async toImdoneJSON() {
97
97
  this.pluginManager.initDevMode()
98
98
  console.time('toJSON time')
99
99
  const totals = calculateTotals(
@@ -123,7 +123,7 @@ module.exports = class WorkerProject extends Project {
123
123
  console.timeEnd('card init')
124
124
 
125
125
  console.time('plugin onBoardUpdate')
126
- this.pluginManager.onBoardUpdate(
126
+ await this.pluginManager.onBoardUpdate(
127
127
  this.getLists({
128
128
  tasks: cards,
129
129
  })
@@ -141,6 +141,7 @@ module.exports = class WorkerProject extends Project {
141
141
  lists: lists,
142
142
  files: this.files,
143
143
  totals,
144
+ totalCards: this.repo.getTasks().length,
144
145
  tags: this.getTags(),
145
146
  allMeta: this.allMeta,
146
147
  allContexts: this.allContexts,
@@ -1,6 +1,5 @@
1
1
  const {
2
- load,
3
- save
2
+ load
4
3
  } = require('../adapters/storage/tags.js')
5
4
 
6
5
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imdone-core",
3
- "version": "1.48.0",
3
+ "version": "1.49.0",
4
4
  "description": "imdone-core",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -60,7 +60,7 @@
60
60
  "function-regex": "^1.0.2",
61
61
  "gray-matter": "^4.0.2",
62
62
  "ignore": "^5.2.0",
63
- "imdone-api": "^1.47.0",
63
+ "imdone-api": "^1.48.0",
64
64
  "isbinaryfile": "^3.0.2",
65
65
  "js-yaml": "^3.14.1",
66
66
  "json-fns": "^1.0.0",