imdone-core 2.0.0 → 2.0.1

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.
Files changed (160) hide show
  1. package/.dependency-cruiser.cjs +412 -0
  2. package/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
  3. package/.github/workflows/ci.yml +24 -0
  4. package/.imdoneignore +13 -0
  5. package/.mocharc.json +10 -0
  6. package/.prettierrc +6 -0
  7. package/CHANGELOG.md +160 -0
  8. package/_index.md +7 -0
  9. package/_navbar.md +1 -0
  10. package/build.js +57 -0
  11. package/esm-migration.md +446 -0
  12. package/index.html +184 -0
  13. package/lib/FileProjectContext.js +13 -0
  14. package/lib/ProjectContext.js +43 -0
  15. package/lib/adapters/date-time.js +15 -0
  16. package/lib/adapters/environment.js +3 -0
  17. package/lib/adapters/file-gateway.js +154 -0
  18. package/lib/adapters/git-download.js +55 -0
  19. package/lib/adapters/index.js +9 -0
  20. package/lib/adapters/logger.js +136 -0
  21. package/lib/adapters/markdown.js +180 -0
  22. package/lib/adapters/parsers/DateLanguageParser.js +12 -0
  23. package/lib/adapters/parsers/content-transformer.js +116 -0
  24. package/lib/adapters/parsers/file/LocalFileParserFactory.js +36 -0
  25. package/lib/adapters/parsers/file/ReadStreamCodeParser.js +126 -0
  26. package/lib/adapters/parsers/file/ReadStreamMarkdownParser.js +17 -0
  27. package/lib/adapters/parsers/file/ReadStreamTaskParser.js +106 -0
  28. package/lib/adapters/parsers/file/index.js +4 -0
  29. package/lib/adapters/parsers/function-parser.js +25 -0
  30. package/lib/adapters/parsers/index.js +5 -0
  31. package/lib/adapters/parsers/task/CardContentParser.js +367 -0
  32. package/lib/adapters/parsers/task/CheckStyleTaskParser.js +28 -0
  33. package/lib/adapters/parsers/task/CodeStyleTaskParser.js +24 -0
  34. package/lib/adapters/parsers/task/HashStyleTaskParser.js +27 -0
  35. package/lib/adapters/parsers/task/MarkdownStyleTaskParser.js +24 -0
  36. package/lib/adapters/parsers/task/TaskParser.js +38 -0
  37. package/lib/adapters/parsers/task/index.js +6 -0
  38. package/lib/adapters/storage/config.js +44 -0
  39. package/lib/adapters/storage/index.js +2 -0
  40. package/lib/adapters/storage/tags.js +29 -0
  41. package/lib/adapters/yaml.js +9 -0
  42. package/lib/card.js +299 -0
  43. package/lib/checksum.js +22 -0
  44. package/lib/config.js +249 -0
  45. package/lib/constants.js +68 -0
  46. package/lib/context/ApplicationContext.js +35 -0
  47. package/lib/context/index.js +1 -0
  48. package/lib/default-settings.js +37 -0
  49. package/lib/domain/entities/View.js +23 -0
  50. package/lib/domain/entities/index.js +1 -0
  51. package/lib/domain/index.js +2 -0
  52. package/lib/domain/usecases/GetViewsUsecase.js +44 -0
  53. package/lib/domain/usecases/SaveViewUsecase.js +51 -0
  54. package/lib/domain/usecases/index.js +2 -0
  55. package/lib/file.js +1391 -0
  56. package/lib/get-tasks-to-modify.js +117 -0
  57. package/lib/languages.js +113 -0
  58. package/lib/list.js +56 -0
  59. package/lib/migrate-config.js +165 -0
  60. package/lib/mixins/index.js +2 -0
  61. package/lib/mixins/repo-fs-store.js +359 -0
  62. package/lib/mixins/repo-watched-fs-store.js +206 -0
  63. package/lib/plugins/archive-plugin.js +72 -0
  64. package/lib/plugins/default-board-actions-plugin.js +56 -0
  65. package/lib/plugins/default-board-properties-plugin.js +101 -0
  66. package/lib/plugins/default-plugins.js +7 -0
  67. package/lib/plugins/epic-plugin.js +177 -0
  68. package/lib/plugins/extension-plugin.js +94 -0
  69. package/lib/plugins/index.js +9 -0
  70. package/lib/plugins/persist-tags-plugin.js +14 -0
  71. package/lib/plugins/plugin-manager.js +458 -0
  72. package/lib/plugins/plugin-registry.js +57 -0
  73. package/lib/project-factory.js +42 -0
  74. package/lib/project.js +864 -0
  75. package/lib/repository.js +1514 -0
  76. package/lib/task.js +780 -0
  77. package/lib/tools.js +176 -0
  78. package/lib/usecases/actions.js +32 -0
  79. package/lib/usecases/get-imdone-url.js +6 -0
  80. package/lib/usecases/get-project-tags.js +7 -0
  81. package/lib/usecases/get-tasks-in-file.js +26 -0
  82. package/lib/usecases/index.js +4 -0
  83. package/package.json +2 -6
  84. package/scripts/delete-markdown-indexes.js +87 -0
  85. package/scripts/generate-index.js +35 -0
  86. package/scripts/index-markdown.js +55 -0
  87. package/tsconfig.json +15 -0
  88. package/types/FileProjectContext.d.ts +4 -0
  89. package/types/ProjectContext.d.ts +9 -0
  90. package/types/adapters/date-time.d.ts +2 -0
  91. package/types/adapters/environment.d.ts +1 -0
  92. package/types/adapters/file-gateway.d.ts +51 -0
  93. package/types/adapters/git-download.d.ts +1 -0
  94. package/types/adapters/index.d.ts +9 -0
  95. package/types/adapters/logger.d.ts +24 -0
  96. package/types/adapters/markdown.d.ts +13 -0
  97. package/types/adapters/parsers/DateLanguageParser.d.ts +1 -0
  98. package/types/adapters/parsers/content-transformer.d.ts +10 -0
  99. package/types/adapters/parsers/file/LocalFileParserFactory.d.ts +5 -0
  100. package/types/adapters/parsers/file/ReadStreamCodeParser.d.ts +13 -0
  101. package/types/adapters/parsers/file/ReadStreamMarkdownParser.d.ts +7 -0
  102. package/types/adapters/parsers/file/ReadStreamTaskParser.d.ts +19 -0
  103. package/types/adapters/parsers/file/index.d.ts +4 -0
  104. package/types/adapters/parsers/function-parser.d.ts +1 -0
  105. package/types/adapters/parsers/index.d.ts +5 -0
  106. package/types/adapters/parsers/task/CardContentParser.d.ts +45 -0
  107. package/types/adapters/parsers/task/CheckStyleTaskParser.d.ts +12 -0
  108. package/types/adapters/parsers/task/CodeStyleTaskParser.d.ts +14 -0
  109. package/types/adapters/parsers/task/HashStyleTaskParser.d.ts +13 -0
  110. package/types/adapters/parsers/task/MarkdownStyleTaskParser.d.ts +14 -0
  111. package/types/adapters/parsers/task/TaskParser.d.ts +7 -0
  112. package/types/adapters/parsers/task/index.d.ts +6 -0
  113. package/types/adapters/storage/config.d.ts +6 -0
  114. package/types/adapters/storage/index.d.ts +2 -0
  115. package/types/adapters/storage/tags.d.ts +3 -0
  116. package/types/adapters/yaml.d.ts +2 -0
  117. package/types/card.d.ts +166 -0
  118. package/types/checksum.d.ts +8 -0
  119. package/types/config.d.ts +61 -0
  120. package/types/constants.d.ts +46 -0
  121. package/types/context/ApplicationContext.d.ts +24 -0
  122. package/types/context/index.d.ts +1 -0
  123. package/types/default-settings.d.ts +2 -0
  124. package/types/domain/entities/FileProjectContext.d.ts +5 -0
  125. package/types/domain/entities/View.d.ts +17 -0
  126. package/types/domain/entities/index.d.ts +1 -0
  127. package/types/domain/index.d.ts +2 -0
  128. package/types/domain/usecases/GetViewsUsecase.d.ts +4 -0
  129. package/types/domain/usecases/SaveViewUsecase.d.ts +8 -0
  130. package/types/domain/usecases/index.d.ts +2 -0
  131. package/types/file.d.ts +344 -0
  132. package/types/get-tasks-to-modify.d.ts +3 -0
  133. package/types/index.d.ts +23 -0
  134. package/types/languages.d.ts +649 -0
  135. package/types/list.d.ts +30 -0
  136. package/types/migrate-config.d.ts +1 -0
  137. package/types/mixins/index.d.ts +2 -0
  138. package/types/mixins/repo-fs-store.d.ts +2 -0
  139. package/types/mixins/repo-watched-fs-store.d.ts +2 -0
  140. package/types/plugins/archive-plugin.d.ts +8 -0
  141. package/types/plugins/default-board-actions-plugin.d.ts +9 -0
  142. package/types/plugins/default-board-properties-plugin.d.ts +16 -0
  143. package/types/plugins/default-plugins.d.ts +6 -0
  144. package/types/plugins/epic-plugin.d.ts +19 -0
  145. package/types/plugins/extension-plugin.d.ts +15 -0
  146. package/types/plugins/index.d.ts +9 -0
  147. package/types/plugins/persist-tags-plugin.d.ts +4 -0
  148. package/types/plugins/plugin-manager.d.ts +68 -0
  149. package/types/plugins/plugin-registry.d.ts +1 -0
  150. package/types/project-factory.d.ts +14 -0
  151. package/types/project.d.ts +158 -0
  152. package/types/repository.d.ts +996 -0
  153. package/types/task.d.ts +202 -0
  154. package/types/tools.d.ts +29 -0
  155. package/types/usecases/actions.d.ts +7 -0
  156. package/types/usecases/get-imdone-url.d.ts +1 -0
  157. package/types/usecases/get-project-tags.d.ts +1 -0
  158. package/types/usecases/get-tasks-in-file.d.ts +4 -0
  159. package/types/usecases/index.d.ts +4 -0
  160. package/vitest.config.js +13 -0
@@ -0,0 +1,412 @@
1
+ /** @type {import('dependency-cruiser').IConfiguration} */
2
+ module.exports = {
3
+ forbidden: [
4
+ {
5
+ name: 'no-circular',
6
+ severity: 'warn',
7
+ comment:
8
+ 'This dependency is part of a circular relationship. You might want to revise ' +
9
+ 'your solution (i.e. use dependency inversion, make sure the modules have a single responsibility) ',
10
+ from: {},
11
+ to: {
12
+ circular: true
13
+ }
14
+ },
15
+ {
16
+ name: 'no-orphans',
17
+ comment:
18
+ "This is an orphan module - it's likely not used (anymore?). Either use it or " +
19
+ "remove it. If it's logical this module is an orphan (i.e. it's a config file), " +
20
+ "add an exception for it in your dependency-cruiser configuration. By default " +
21
+ "this rule does not scrutinize dot-files (e.g. .eslintrc.js), TypeScript declaration " +
22
+ "files (.d.ts), tsconfig.json and some of the babel and webpack configs.",
23
+ severity: 'warn',
24
+ from: {
25
+ orphan: true,
26
+ pathNot: [
27
+ '(^|/)[.][^/]+[.](?:js|cjs|mjs|ts|cts|mts|json)$', // dot files
28
+ '[.]d[.]ts$', // TypeScript declaration files
29
+ '(^|/)tsconfig[.]json$', // TypeScript config
30
+ '(^|/)(?:babel|webpack)[.]config[.](?:js|cjs|mjs|ts|cts|mts|json)$' // other configs
31
+ ]
32
+ },
33
+ to: {},
34
+ },
35
+ {
36
+ name: 'no-deprecated-core',
37
+ comment:
38
+ 'A module depends on a node core module that has been deprecated. Find an alternative - these are ' +
39
+ "bound to exist - node doesn't deprecate lightly.",
40
+ severity: 'warn',
41
+ from: {},
42
+ to: {
43
+ dependencyTypes: [
44
+ 'core'
45
+ ],
46
+ path: [
47
+ '^v8/tools/codemap$',
48
+ '^v8/tools/consarray$',
49
+ '^v8/tools/csvparser$',
50
+ '^v8/tools/logreader$',
51
+ '^v8/tools/profile_view$',
52
+ '^v8/tools/profile$',
53
+ '^v8/tools/SourceMap$',
54
+ '^v8/tools/splaytree$',
55
+ '^v8/tools/tickprocessor-driver$',
56
+ '^v8/tools/tickprocessor$',
57
+ '^node-inspect/lib/_inspect$',
58
+ '^node-inspect/lib/internal/inspect_client$',
59
+ '^node-inspect/lib/internal/inspect_repl$',
60
+ '^async_hooks$',
61
+ '^punycode$',
62
+ '^domain$',
63
+ '^constants$',
64
+ '^sys$',
65
+ '^_linklist$',
66
+ '^_stream_wrap$'
67
+ ],
68
+ }
69
+ },
70
+ {
71
+ name: 'not-to-deprecated',
72
+ comment:
73
+ 'This module uses a (version of an) npm module that has been deprecated. Either upgrade to a later ' +
74
+ 'version of that module, or find an alternative. Deprecated modules are a security risk.',
75
+ severity: 'warn',
76
+ from: {},
77
+ to: {
78
+ dependencyTypes: [
79
+ 'deprecated'
80
+ ]
81
+ }
82
+ },
83
+ {
84
+ name: 'no-non-package-json',
85
+ severity: 'error',
86
+ comment:
87
+ "This module depends on an npm package that isn't in the 'dependencies' section of your package.json. " +
88
+ "That's problematic as the package either (1) won't be available on live (2 - worse) will be " +
89
+ "available on live with an non-guaranteed version. Fix it by adding the package to the dependencies " +
90
+ "in your package.json.",
91
+ from: {},
92
+ to: {
93
+ dependencyTypes: [
94
+ 'npm-no-pkg',
95
+ 'npm-unknown'
96
+ ]
97
+ }
98
+ },
99
+ {
100
+ name: 'not-to-unresolvable',
101
+ comment:
102
+ "This module depends on a module that cannot be found ('resolved to disk'). If it's an npm " +
103
+ 'module: add it to your package.json. In all other cases you likely already know what to do.',
104
+ severity: 'error',
105
+ from: {},
106
+ to: {
107
+ couldNotResolve: true
108
+ }
109
+ },
110
+ {
111
+ name: 'no-duplicate-dep-types',
112
+ comment:
113
+ "Likely this module depends on an external ('npm') package that occurs more than once " +
114
+ "in your package.json i.e. bot as a devDependencies and in dependencies. This will cause " +
115
+ "maintenance problems later on.",
116
+ severity: 'warn',
117
+ from: {},
118
+ to: {
119
+ moreThanOneDependencyType: true,
120
+ // as it's pretty common to have a type import be a type only import
121
+ // _and_ (e.g.) a devDependency - don't consider type-only dependency
122
+ // types for this rule
123
+ dependencyTypesNot: ["type-only"]
124
+ }
125
+ },
126
+
127
+ /* rules you might want to tweak for your specific situation: */
128
+ {
129
+ name: 'not-to-test',
130
+ comment:
131
+ "This module depends on code within a folder that should only contain tests. As tests don't " +
132
+ "implement functionality this is odd. Either you're writing a test outside the test folder " +
133
+ "or there's something in the test folder that isn't a test.",
134
+ severity: 'error',
135
+ from: {
136
+ pathNot: '^(test)'
137
+ },
138
+ to: {
139
+ path: '^(test)'
140
+ }
141
+ },
142
+ {
143
+ name: 'not-to-spec',
144
+ comment:
145
+ 'This module depends on a spec (test) file. The sole responsibility of a spec file is to test code. ' +
146
+ "If there's something in a spec that's of use to other modules, it doesn't have that single " +
147
+ 'responsibility anymore. Factor it out into (e.g.) a separate utility/ helper or a mock.',
148
+ severity: 'error',
149
+ from: {},
150
+ to: {
151
+ path: '[.](?:spec|test)[.](?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$'
152
+ }
153
+ },
154
+ {
155
+ name: 'not-to-dev-dep',
156
+ severity: 'error',
157
+ comment:
158
+ "This module depends on an npm package from the 'devDependencies' section of your " +
159
+ 'package.json. It looks like something that ships to production, though. To prevent problems ' +
160
+ "with npm packages that aren't there on production declare it (only!) in the 'dependencies'" +
161
+ 'section of your package.json. If this module is development only - add it to the ' +
162
+ 'from.pathNot re of the not-to-dev-dep rule in the dependency-cruiser configuration',
163
+ from: {
164
+ path: '^(lib)',
165
+ pathNot: '[.](?:spec|test)[.](?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$'
166
+ },
167
+ to: {
168
+ dependencyTypes: [
169
+ 'npm-dev',
170
+ ],
171
+ // type only dependencies are not a problem as they don't end up in the
172
+ // production code or are ignored by the runtime.
173
+ dependencyTypesNot: [
174
+ 'type-only'
175
+ ],
176
+ pathNot: [
177
+ 'node_modules/@types/'
178
+ ]
179
+ }
180
+ },
181
+ {
182
+ name: 'optional-deps-used',
183
+ severity: 'info',
184
+ comment:
185
+ "This module depends on an npm package that is declared as an optional dependency " +
186
+ "in your package.json. As this makes sense in limited situations only, it's flagged here. " +
187
+ "If you're using an optional dependency here by design - add an exception to your" +
188
+ "dependency-cruiser configuration.",
189
+ from: {},
190
+ to: {
191
+ dependencyTypes: [
192
+ 'npm-optional'
193
+ ]
194
+ }
195
+ },
196
+ {
197
+ name: 'peer-deps-used',
198
+ comment:
199
+ "This module depends on an npm package that is declared as a peer dependency " +
200
+ "in your package.json. This makes sense if your package is e.g. a plugin, but in " +
201
+ "other cases - maybe not so much. If the use of a peer dependency is intentional " +
202
+ "add an exception to your dependency-cruiser configuration.",
203
+ severity: 'warn',
204
+ from: {},
205
+ to: {
206
+ dependencyTypes: [
207
+ 'npm-peer'
208
+ ]
209
+ }
210
+ }
211
+ ],
212
+ options: {
213
+
214
+ /* Which modules not to follow further when encountered */
215
+ doNotFollow: {
216
+ /* path: an array of regular expressions in strings to match against */
217
+ path: ['node_modules']
218
+ },
219
+
220
+ /* Which modules to exclude */
221
+ // exclude : {
222
+ // /* path: an array of regular expressions in strings to match against */
223
+ // path: '',
224
+ // },
225
+
226
+ /* Which modules to exclusively include (array of regular expressions in strings)
227
+ dependency-cruiser will skip everything not matching this pattern
228
+ */
229
+ // includeOnly : [''],
230
+
231
+ /* List of module systems to cruise.
232
+ When left out dependency-cruiser will fall back to the list of _all_
233
+ module systems it knows of. It's the default because it's the safe option
234
+ It might come at a performance penalty, though.
235
+ moduleSystems: ['amd', 'cjs', 'es6', 'tsd']
236
+
237
+ As in practice only commonjs ('cjs') and ecmascript modules ('es6')
238
+ are widely used, you can limit the moduleSystems to those.
239
+ */
240
+
241
+ // moduleSystems: ['cjs', 'es6'],
242
+
243
+ /*
244
+ false: don't look at JSDoc imports (the default)
245
+ true: dependency-cruiser will detect dependencies in JSDoc-style
246
+ import statements. Implies "parser": "tsc", so the dependency-cruiser
247
+ will use the typescript parser for JavaScript files.
248
+
249
+ For this to work the typescript compiler will need to be installed in the
250
+ same spot as you're running dependency-cruiser from.
251
+ */
252
+ // detectJSDocImports: true,
253
+
254
+ /* prefix for links in html and svg output (e.g. 'https://github.com/you/yourrepo/blob/main/'
255
+ to open it on your online repo or `vscode://file/${process.cwd()}/` to
256
+ open it in visual studio code),
257
+ */
258
+ // prefix: `vscode://file/${process.cwd()}/`,
259
+
260
+ /* false (the default): ignore dependencies that only exist before typescript-to-javascript compilation
261
+ true: also detect dependencies that only exist before typescript-to-javascript compilation
262
+ "specify": for each dependency identify whether it only exists before compilation or also after
263
+ */
264
+ // tsPreCompilationDeps: false,
265
+
266
+ /* list of extensions to scan that aren't javascript or compile-to-javascript.
267
+ Empty by default. Only put extensions in here that you want to take into
268
+ account that are _not_ parsable.
269
+ */
270
+ // extraExtensionsToScan: [".json", ".jpg", ".png", ".svg", ".webp"],
271
+
272
+ /* if true combines the package.jsons found from the module up to the base
273
+ folder the cruise is initiated from. Useful for how (some) mono-repos
274
+ manage dependencies & dependency definitions.
275
+ */
276
+ // combinedDependencies: false,
277
+
278
+ /* if true leave symlinks untouched, otherwise use the realpath */
279
+ // preserveSymlinks: false,
280
+
281
+ /* TypeScript project file ('tsconfig.json') to use for
282
+ (1) compilation and
283
+ (2) resolution (e.g. with the paths property)
284
+
285
+ The (optional) fileName attribute specifies which file to take (relative to
286
+ dependency-cruiser's current working directory). When not provided
287
+ defaults to './tsconfig.json'.
288
+ */
289
+ // tsConfig: {
290
+ // fileName: 'tsconfig.json'
291
+ // },
292
+
293
+ /* Webpack configuration to use to get resolve options from.
294
+
295
+ The (optional) fileName attribute specifies which file to take (relative
296
+ to dependency-cruiser's current working directory. When not provided defaults
297
+ to './webpack.conf.js'.
298
+
299
+ The (optional) `env` and `arguments` attributes contain the parameters
300
+ to be passed if your webpack config is a function and takes them (see
301
+ webpack documentation for details)
302
+ */
303
+ // webpackConfig: {
304
+ // fileName: 'webpack.config.js',
305
+ // env: {},
306
+ // arguments: {}
307
+ // },
308
+
309
+ /* Babel config ('.babelrc', '.babelrc.json', '.babelrc.json5', ...) to use
310
+ for compilation
311
+ */
312
+ // babelConfig: {
313
+ // fileName: '.babelrc',
314
+ // },
315
+
316
+ /* List of strings you have in use in addition to cjs/ es6 requires
317
+ & imports to declare module dependencies. Use this e.g. if you've
318
+ re-declared require, use a require-wrapper or use window.require as
319
+ a hack.
320
+ */
321
+ // exoticRequireStrings: [],
322
+
323
+ /* options to pass on to enhanced-resolve, the package dependency-cruiser
324
+ uses to resolve module references to disk. The values below should be
325
+ suitable for most situations
326
+
327
+ If you use webpack: you can also set these in webpack.conf.js. The set
328
+ there will override the ones specified here.
329
+ */
330
+ enhancedResolveOptions: {
331
+ /* What to consider as an 'exports' field in package.jsons */
332
+ exportsFields: ["exports"],
333
+ /* List of conditions to check for in the exports field.
334
+ Only works when the 'exportsFields' array is non-empty.
335
+ */
336
+ conditionNames: ["import", "require", "node", "default", "types"],
337
+ /* The extensions, by default are the same as the ones dependency-cruiser
338
+ can access (run `npx depcruise --info` to see which ones that are in
339
+ _your_ environment). If that list is larger than you need you can pass
340
+ the extensions you actually use (e.g. [".js", ".jsx"]). This can speed
341
+ up module resolution, which is the most expensive step.
342
+ */
343
+ // extensions: [".js", ".jsx", ".ts", ".tsx", ".d.ts"],
344
+ /* What to consider a 'main' field in package.json */
345
+
346
+ // if you migrate to ESM (or are in an ESM environment already) you will want to
347
+ // have "module" in the list of mainFields, like so:
348
+ // mainFields: ["module", "main", "types", "typings"],
349
+ mainFields: ["main", "types", "typings"],
350
+ /* A list of alias fields in package.jsons
351
+
352
+ See [this specification](https://github.com/defunctzombie/package-browser-field-spec) and
353
+ the webpack [resolve.alias](https://webpack.js.org/configuration/resolve/#resolvealiasfields)
354
+ documentation.
355
+
356
+ Defaults to an empty array (= don't use alias fields).
357
+ */
358
+ // aliasFields: ["browser"],
359
+ },
360
+
361
+ /* skipAnalysisNotInRules will make dependency-cruiser execute
362
+ analysis strictly necessary for checking the rule set only.
363
+
364
+ See https://github.com/sverweij/dependency-cruiser/blob/main/doc/options-reference.md#skipanalysisnotinrules
365
+ for details
366
+ */
367
+ skipAnalysisNotInRules: true,
368
+
369
+ reporterOptions: {
370
+ dot: {
371
+ /* pattern of modules that can be consolidated in the detailed
372
+ graphical dependency graph. The default pattern in this configuration
373
+ collapses everything in node_modules to one folder deep so you see
374
+ the external modules, but their innards.
375
+ */
376
+ collapsePattern: 'node_modules/(?:@[^/]+/[^/]+|[^/]+)',
377
+
378
+ /* Options to tweak the appearance of your graph.See
379
+ https://github.com/sverweij/dependency-cruiser/blob/main/doc/options-reference.md#reporteroptions
380
+ for details and some examples. If you don't specify a theme
381
+ dependency-cruiser falls back to a built-in one.
382
+ */
383
+ // theme: {
384
+ // graph: {
385
+ // /* splines: "ortho" gives straight lines, but is slow on big graphs
386
+ // splines: "true" gives bezier curves (fast, not as nice as ortho)
387
+ // */
388
+ // splines: "true"
389
+ // },
390
+ // }
391
+ },
392
+ archi: {
393
+ /* pattern of modules that can be consolidated in the high level
394
+ graphical dependency graph. If you use the high level graphical
395
+ dependency graph reporter (`archi`) you probably want to tweak
396
+ this collapsePattern to your situation.
397
+ */
398
+ collapsePattern: '^(?:packages|src|lib(s?)|app(s?)|bin|test(s?)|spec(s?))/[^/]+|node_modules/(?:@[^/]+/[^/]+|[^/]+)',
399
+
400
+ /* Options to tweak the appearance of your graph. If you don't specify a
401
+ theme for 'archi' dependency-cruiser will use the one specified in the
402
+ dot section above and otherwise use the default one.
403
+ */
404
+ // theme: { },
405
+ },
406
+ "text": {
407
+ "highlightFocused": true
408
+ },
409
+ }
410
+ }
411
+ };
412
+ // generated: dependency-cruiser@16.10.0 on 2025-03-11T18:41:16.528Z
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve imdone
4
+ title: ''
5
+ labels: 'bug'
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots**
24
+ If applicable, add screenshots to help explain your problem.
25
+
26
+ **Desktop (please complete the following information):**
27
+ - OS: [e.g. iOS]
28
+ - Browser (If imdone web site) [e.g. chrome, safari]
29
+ - Imdone Version [e.g. 22]
30
+
31
+ **Additional context**
32
+ Add any other context about the problem here.
33
+
34
+ **DoD**
35
+ - [ ] Issue is understood
36
+ - [ ] Fix is implemented and tested
37
+ - [ ] Fix is deployed in the current release
@@ -0,0 +1,24 @@
1
+ name: Node.js CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ '*' ]
6
+
7
+ jobs:
8
+ build:
9
+
10
+ runs-on: ubuntu-latest
11
+
12
+ strategy:
13
+ matrix:
14
+ node-version: [22.x]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v3
18
+ - name: Use Node.js ${{ matrix.node-version }}
19
+ uses: actions/setup-node@v3
20
+ with:
21
+ node-version: ${{ matrix.node-version }}
22
+ cache: 'npm'
23
+ - run: npm i
24
+ - run: npm run coverage --if-present
package/.imdoneignore ADDED
@@ -0,0 +1,13 @@
1
+ coverage
2
+ .nyc_output
3
+ test/repos
4
+ test/files
5
+ test/file-spec.js
6
+ test-big-file.md
7
+ tmp
8
+ dist
9
+ types
10
+ imdone-export.json
11
+ .imdone/templates
12
+ .imdone
13
+ notes/archive
package/.mocharc.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "diff": true,
3
+ "extension": ["js", "cjs", "mjs"],
4
+ "package": "./package.json",
5
+ "reporter": "spec",
6
+ "slow": "75",
7
+ "timeout": "20000",
8
+ "ui": "bdd",
9
+ "watch-files": ["lib/**/__tests__/**/*.spec.js", "test/**/*spec.js"]
10
+ }
package/.prettierrc ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "tabWidth": 2,
3
+ "useTabs": false,
4
+ "semi": false,
5
+ "singleQuote": true
6
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,160 @@
1
+ ## 1.28.8
2
+ - Allow Card and Board actions to return a value
3
+
4
+ # 1.5.31
5
+ - When moving a task, only change the order of the current task unless it's moving to the top of a list with more than one task, then we update the task that was previously first as well.
6
+
7
+ # 1.5.28
8
+ - Implement Repository.modifyTaskFromContent
9
+
10
+ # 1.5.10
11
+ - Switch to readdirp
12
+
13
+ # 1.5.2
14
+ - add allContext, allTags and allMeta to tasks
15
+
16
+ # 1.5.0
17
+ - Add frontMatter
18
+
19
+ # 1.4.19
20
+ - Add doc generation and move regex dependency
21
+
22
+ # 1.4.17
23
+ - Improve issue matching
24
+
25
+ # 1.4.15
26
+ - ignore hash and link style tasks in code files
27
+
28
+ # 1.4.14
29
+ - Add modifyDescription
30
+
31
+ # 1.4.13
32
+ - Add rawTask to opts for Task constructor
33
+
34
+ # 1.4.12
35
+ - Make Repository.query return an empty array if no tasks found
36
+
37
+ # 1.4.11
38
+ - Expose Repository.query to filter tasks without repo
39
+
40
+ # 1.4.10
41
+ - Add task properties (created, completed, due, remind) as dates if they exist in metadata and parse as dates
42
+
43
+ # 1.4.8
44
+ - use string.search as fallback to rql
45
+
46
+ # 1.4.7
47
+ - Add .vue extension
48
+
49
+ # 1.4.6
50
+ - ignore tasks found in list if list has property `ignore: true` in config.lists
51
+
52
+ # 1.4.4
53
+ - repository.query Add rql querying of tasks
54
+
55
+ # 1.4.3
56
+ - Add savingFiles attribute when saving modified files
57
+
58
+ # 1.4.2
59
+ - Fix add and remove metaData
60
+
61
+ # 1.4.1
62
+ - Fix updateMetaData
63
+
64
+ # 1.4.0
65
+ - Switch to metadata for created and completed dates
66
+
67
+ # 1.3.59
68
+ - Fix meta so it captures the first key:
69
+
70
+ # 1.3.58
71
+ - extend include_lists
72
+
73
+ # 1.3.54
74
+ - Add .pug to languages
75
+ - Update comment symbol for .jade and .pug to be //-
76
+
77
+ # 1.3.51
78
+ - Allow hash style tasks in code if they're in config.lists or config.code.include_lists
79
+
80
+ # 1.3.45
81
+ - switch to markdown-it for check-lists
82
+ - Add following lines as task description
83
+
84
+ # 1.3.38
85
+ - Add list to include_lists
86
+
87
+ # 1.3.34
88
+ - Update chokidar
89
+
90
+ # 1.3.27
91
+ - Allow umlauts and other special characters in contexts
92
+
93
+ # 1.3.26
94
+ - Check excludes for all files before running stat
95
+
96
+ # 1.3.25
97
+ - Use eachLimit for Repository.readFiles
98
+
99
+ # 1.3.24
100
+ - Simplify isBinary check
101
+
102
+ # 1.3.23
103
+ - file.isOk callback with false if isBinaryCheck errs
104
+
105
+ # 1.3.22
106
+ - Drop async file access limit to 10
107
+
108
+ # 1.3.21
109
+ - Reduce async file access limit to 256
110
+
111
+ # 1.3.20
112
+ - Improve stats performance
113
+ - emits tasks on update
114
+ - Add isListVisible
115
+
116
+ # 1.3.19
117
+ - Minor bug fixes
118
+
119
+ # 1.3.18
120
+ - Add delete tasks
121
+
122
+ # 1.3.17
123
+ - Simplify readdir with node-dir
124
+
125
+ # 1.3.16
126
+ - Add php block comment.
127
+ - Fix issue with hash style lists not getting added
128
+
129
+ # 1.3.15
130
+ - Fire config.loaded event after config is set
131
+
132
+ # 1.3.14
133
+ - Make sure list is in include_lists before adding it through listeners
134
+
135
+ # 1.3.13
136
+ - Raise async limit
137
+
138
+ # 1.3.11
139
+ - Add haml extension and -# comment
140
+
141
+ # 1.3.9
142
+ - Add .boot
143
+
144
+ # 1.3.8
145
+ - Add velocity comments
146
+
147
+ # 1.3.5
148
+ - Update .imdoneignore functionality to work like .gitignore
149
+
150
+ # 1.3.3
151
+ - Update marked and minimatch for security reasons
152
+
153
+ # 1.3.2
154
+ - When a user adds a list to the board, utomatically add list name to config.code.include_lists if it's all caps
155
+
156
+ # 1.3.0
157
+ - Add update task from metadata, tags and contexts
158
+ - meta is empty object if no metadata found
159
+ - make repo emit task.modified
160
+ - compare meta.id as backup for id compare
package/_index.md ADDED
@@ -0,0 +1,7 @@
1
+ # imdone-core
2
+
3
+ - [:file_folder: **docs**](docs/README)
4
+ - [:file_folder: **notes**](notes/_index.md)
5
+ - [CHANGELOG](CHANGELOG.md)
6
+ - [README](README.md)
7
+ - [esm-migration](esm-migration.md)
package/_navbar.md ADDED
@@ -0,0 +1 @@
1
+ **[:house: imdone-core Documentation](/README)**