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.
- package/.github/workflows/ci.yml +1 -1
- package/lib/adapters/readers/FileSystemProjectReader.js +4 -4
- package/lib/file.js +3 -2
- package/lib/mixins/repo-watched-fs-store.js +1 -2
- package/lib/plugins/archive-plugin.js +1 -0
- package/lib/project.js +3 -2
- package/lib/usecases/get-project-tags.js +1 -2
- package/package.json +2 -2
package/.github/workflows/ci.yml
CHANGED
|
@@ -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
|
|
7
|
+
// BACKLOG ## Load the config file
|
|
8
8
|
// #adapter
|
|
9
|
-
// [
|
|
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
|
|
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
|
-
// [
|
|
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
|
-
//
|
|
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
|
|
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
|
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,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "imdone-core",
|
|
3
|
-
"version": "1.
|
|
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.
|
|
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",
|