@neurodevs/meta-node 0.14.3 → 0.14.5

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 (44) hide show
  1. package/build/__tests__/AbstractAutomoduleTest.js +6 -5
  2. package/build/__tests__/AbstractAutomoduleTest.js.map +1 -1
  3. package/build/__tests__/AbstractPackageTest.js +6 -38
  4. package/build/__tests__/AbstractPackageTest.js.map +1 -1
  5. package/build/__tests__/impl/GitAutocloner.test.js +5 -4
  6. package/build/__tests__/impl/GitAutocloner.test.js.map +1 -1
  7. package/build/__tests__/impl/ImplAutomodule.test.js +3 -2
  8. package/build/__tests__/impl/ImplAutomodule.test.js.map +1 -1
  9. package/build/__tests__/impl/NpmAutopackage.test.js +15 -14
  10. package/build/__tests__/impl/NpmAutopackage.test.js.map +1 -1
  11. package/build/__tests__/impl/TypescriptClassSnippetSuite.test.js +42 -42
  12. package/build/__tests__/impl/UiAutomodule.test.js +2 -1
  13. package/build/__tests__/impl/UiAutomodule.test.js.map +1 -1
  14. package/build/__tests__/impl/VscodeSnippetKeybinder.test.js +8 -7
  15. package/build/__tests__/impl/VscodeSnippetKeybinder.test.js.map +1 -1
  16. package/build/functions/expandHomeDir.js.map +1 -0
  17. package/build/impl/TypescriptClassSnippetSuite.js +43 -43
  18. package/build/impl/TypescriptClassSnippetSuite.js.map +1 -1
  19. package/build/impl/VscodeSnippetKeybinder.js +2 -2
  20. package/build/impl/VscodeSnippetKeybinder.js.map +1 -1
  21. package/build/scripts/runAutopackage.js +1 -1
  22. package/build/scripts/runAutopackage.js.map +1 -1
  23. package/build/scripts/runImplAutomodule.js +1 -1
  24. package/build/scripts/runImplAutomodule.js.map +1 -1
  25. package/build/scripts/runUiAutomodule.js +1 -1
  26. package/build/scripts/runUiAutomodule.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/__tests__/AbstractAutomoduleTest.ts +2 -1
  29. package/src/__tests__/AbstractPackageTest.ts +3 -2
  30. package/src/__tests__/impl/GitAutocloner.test.ts +2 -1
  31. package/src/__tests__/impl/ImplAutomodule.test.ts +2 -1
  32. package/src/__tests__/impl/NpmAutopackage.test.ts +2 -1
  33. package/src/__tests__/impl/TypescriptClassSnippetSuite.test.ts +42 -42
  34. package/src/__tests__/impl/UiAutomodule.test.ts +2 -1
  35. package/src/__tests__/impl/VscodeSnippetKeybinder.test.ts +3 -2
  36. package/src/impl/TypescriptClassSnippetSuite.ts +43 -43
  37. package/src/impl/VscodeSnippetKeybinder.ts +2 -2
  38. package/src/scripts/runAutopackage.ts +1 -1
  39. package/src/scripts/runImplAutomodule.ts +1 -1
  40. package/src/scripts/runUiAutomodule.ts +1 -1
  41. package/build/scripts/expandHomeDir.js.map +0 -1
  42. /package/build/{scripts → functions}/expandHomeDir.d.ts +0 -0
  43. /package/build/{scripts → functions}/expandHomeDir.js +0 -0
  44. /package/src/{scripts → functions}/expandHomeDir.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import { readFile, writeFile } from 'fs/promises'
2
- import expandHomeDir from '../scripts/expandHomeDir'
2
+ import expandHomeDir from '../functions/expandHomeDir'
3
3
 
4
4
  export default class TypescriptClassSnippetSuite implements SnippetSuite {
5
5
  public static Class?: SnippetSuiteConstructor
@@ -176,58 +176,58 @@ export default class TypescriptClassSnippetSuite implements SnippetSuite {
176
176
 
177
177
  private readonly snippets = `
178
178
  // === PUBLIC ===
179
- "Public constructor": { "scope": "typescript", "prefix": "public.constructor", "body": ["public constructor(\${1:}) {\${2:} }"] },
180
- "Public field": { "scope": "typescript", "prefix": "public.field", "body": ["public \${1:newField} = \${2:undefined}"] },
181
- "Public readonly field": { "scope": "typescript", "prefix": "public.readonly.field", "body": ["public readonly \${1:newField} = \${2:undefined}"] },
182
- "Public getter": { "scope": "typescript", "prefix": "public.getter", "body": ["public get \${1:newProperty}() { return \${2:undefined} }"] },
183
- "Public setter": { "scope": "typescript", "prefix": "public.setter", "body": ["public set \${1:newProperty}(\${2:_value}: \${3:unknown}) {\${4:} }"] },
184
- "Public method": { "scope": "typescript", "prefix": "public.method", "body": ["public \${1:newMethod}(\${2:}): \${3:void} {\${4:} }"] },
185
- "Public async method": { "scope": "typescript", "prefix": "public.async.method", "body": ["public async \${1:newMethod}(\${2:}): \${3:Promise<unknown>} {\${4:} }"] },
186
- "Public abstract method": { "scope": "typescript", "prefix": "public.abstract.method", "body": ["public abstract \${1:newMethod}(\${2:}): \${3:unknown}"] },
179
+ "Public constructor": { "scope": "typescript,typescriptreact", "prefix": "public.constructor", "body": ["public constructor(\${1:}) {\${2:} }"] },
180
+ "Public field": { "scope": "typescript,typescriptreact", "prefix": "public.field", "body": ["public \${1:newField} = \${2:undefined}"] },
181
+ "Public readonly field": { "scope": "typescript,typescriptreact", "prefix": "public.readonly.field", "body": ["public readonly \${1:newField} = \${2:undefined}"] },
182
+ "Public getter": { "scope": "typescript,typescriptreact", "prefix": "public.getter", "body": ["public get \${1:newProperty}() { return \${2:undefined} }"] },
183
+ "Public setter": { "scope": "typescript,typescriptreact", "prefix": "public.setter", "body": ["public set \${1:newProperty}(\${2:_value}: \${3:unknown}) {\${4:} }"] },
184
+ "Public method": { "scope": "typescript,typescriptreact", "prefix": "public.method", "body": ["public \${1:newMethod}(\${2:}): \${3:void} {\${4:} }"] },
185
+ "Public async method": { "scope": "typescript,typescriptreact", "prefix": "public.async.method", "body": ["public async \${1:newMethod}(\${2:}): \${3:Promise<unknown>} {\${4:} }"] },
186
+ "Public abstract method": { "scope": "typescript,typescriptreact", "prefix": "public.abstract.method", "body": ["public abstract \${1:newMethod}(\${2:}): \${3:unknown}"] },
187
187
 
188
188
  // === PROTECTED ===
189
- "Protected constructor": { "scope": "typescript", "prefix": "protected.constructor", "body": ["protected constructor(\${1:}) {\${2:} }"] },
190
- "Protected field": { "scope": "typescript", "prefix": "protected.field", "body": ["protected \${1:newField} = \${2:undefined}"] },
191
- "Protected readonly field": { "scope": "typescript", "prefix": "protected.readonly.field", "body": ["protected readonly \${1:newField} = \${2:undefined}"] },
192
- "Protected getter": { "scope": "typescript", "prefix": "protected.getter", "body": ["protected get \${1:newProperty}() { return \${2:undefined} }"] },
193
- "Protected setter": { "scope": "typescript", "prefix": "protected.setter", "body": ["protected set \${1:newProperty}(\${2:_value}: \${3:unknown}) {\${4:} }"] },
194
- "Protected method": { "scope": "typescript", "prefix": "protected.method", "body": ["protected \${1:newMethod}(\${2:}): \${3:void} {\${4:} }"] },
195
- "Protected async method": { "scope": "typescript", "prefix": "protected.async.method", "body": ["protected async \${1:newMethod}(\${2:}): \${3:Promise<unknown>} {\${4:} }"] },
196
- "Protected abstract method": { "scope": "typescript", "prefix": "protected.abstract.method", "body": ["protected abstract \${1:newMethod}(\${2:}): \${3:unknown}"] },
189
+ "Protected constructor": { "scope": "typescript,typescriptreact", "prefix": "protected.constructor", "body": ["protected constructor(\${1:}) {\${2:} }"] },
190
+ "Protected field": { "scope": "typescript,typescriptreact", "prefix": "protected.field", "body": ["protected \${1:newField} = \${2:undefined}"] },
191
+ "Protected readonly field": { "scope": "typescript,typescriptreact", "prefix": "protected.readonly.field", "body": ["protected readonly \${1:newField} = \${2:undefined}"] },
192
+ "Protected getter": { "scope": "typescript,typescriptreact", "prefix": "protected.getter", "body": ["protected get \${1:newProperty}() { return \${2:undefined} }"] },
193
+ "Protected setter": { "scope": "typescript,typescriptreact", "prefix": "protected.setter", "body": ["protected set \${1:newProperty}(\${2:_value}: \${3:unknown}) {\${4:} }"] },
194
+ "Protected method": { "scope": "typescript,typescriptreact", "prefix": "protected.method", "body": ["protected \${1:newMethod}(\${2:}): \${3:void} {\${4:} }"] },
195
+ "Protected async method": { "scope": "typescript,typescriptreact", "prefix": "protected.async.method", "body": ["protected async \${1:newMethod}(\${2:}): \${3:Promise<unknown>} {\${4:} }"] },
196
+ "Protected abstract method": { "scope": "typescript,typescriptreact", "prefix": "protected.abstract.method", "body": ["protected abstract \${1:newMethod}(\${2:}): \${3:unknown}"] },
197
197
 
198
198
  // === PRIVATE ===
199
- "Private constructor": { "scope": "typescript", "prefix": "private.constructor", "body": ["private constructor(\${1:}) {\${2:} }"] },
200
- "Private field": { "scope": "typescript", "prefix": "private.field", "body": ["private \${1:newField} = \${2:undefined}"] },
201
- "Private readonly field": { "scope": "typescript", "prefix": "private.readonly.field", "body": ["private readonly \${1:newField} = \${2:undefined}"] },
202
- "Private getter": { "scope": "typescript", "prefix": "private.getter", "body": ["private get \${1:newProperty}() { return \${2:undefined} }"] },
203
- "Private setter": { "scope": "typescript", "prefix": "private.setter", "body": ["private set \${1:newProperty}(\${2:_value}: \${3:unknown}) {\${4:} }"] },
204
- "Private method": { "scope": "typescript", "prefix": "private.method", "body": ["private \${1:newMethod}(\${2:}): \${3:void} {\${4:} }"] },
205
- "Private async method": { "scope": "typescript", "prefix": "private.async.method", "body": ["private async \${1:newMethod}(\${2:}): \${3:Promise<unknown>} {\${4:} }"] },
206
- "Private abstract method": { "scope": "typescript", "prefix": "private.abstract.method", "body": ["private abstract \${1:newMethod}(\${2:}): \${3:unknown}"] },
199
+ "Private constructor": { "scope": "typescript,typescriptreact", "prefix": "private.constructor", "body": ["private constructor(\${1:}) {\${2:} }"] },
200
+ "Private field": { "scope": "typescript,typescriptreact", "prefix": "private.field", "body": ["private \${1:newField} = \${2:undefined}"] },
201
+ "Private readonly field": { "scope": "typescript,typescriptreact", "prefix": "private.readonly.field", "body": ["private readonly \${1:newField} = \${2:undefined}"] },
202
+ "Private getter": { "scope": "typescript,typescriptreact", "prefix": "private.getter", "body": ["private get \${1:newProperty}() { return \${2:undefined} }"] },
203
+ "Private setter": { "scope": "typescript,typescriptreact", "prefix": "private.setter", "body": ["private set \${1:newProperty}(\${2:_value}: \${3:unknown}) {\${4:} }"] },
204
+ "Private method": { "scope": "typescript,typescriptreact", "prefix": "private.method", "body": ["private \${1:newMethod}(\${2:}): \${3:void} {\${4:} }"] },
205
+ "Private async method": { "scope": "typescript,typescriptreact", "prefix": "private.async.method", "body": ["private async \${1:newMethod}(\${2:}): \${3:Promise<unknown>} {\${4:} }"] },
206
+ "Private abstract method": { "scope": "typescript,typescriptreact", "prefix": "private.abstract.method", "body": ["private abstract \${1:newMethod}(\${2:}): \${3:unknown}"] },
207
207
 
208
208
  // === PUBLIC STATIC ===
209
- "Public static field": { "scope": "typescript", "prefix": "public.static.field", "body": ["public static \${1:newField} = \${2:undefined}"] },
210
- "Public static readonly field": { "scope": "typescript", "prefix": "public.static.readonly.field", "body": ["public static readonly \${1:newField} = \${2:undefined}"] },
211
- "Public static getter": { "scope": "typescript", "prefix": "public.static.getter", "body": ["public static get \${1:newProperty}() { return \${2:undefined} }"] },
212
- "Public static setter": { "scope": "typescript", "prefix": "public.static.setter", "body": ["public static set \${1:newProperty}(\${2:_value}: \${3:unknown}) {\${4:} }"] },
213
- "Public static method": { "scope": "typescript", "prefix": "public.static.method", "body": ["public static \${1:newMethod}(\${2:}): \${3:void} {\${4:} }"] },
214
- "Public static async method": { "scope": "typescript", "prefix": "public.static.async.method", "body": ["public static async \${1:newMethod}(\${2:}): \${3:Promise<unknown>} {\${4:} }"] },
209
+ "Public static field": { "scope": "typescript,typescriptreact", "prefix": "public.static.field", "body": ["public static \${1:newField} = \${2:undefined}"] },
210
+ "Public static readonly field": { "scope": "typescript,typescriptreact", "prefix": "public.static.readonly.field", "body": ["public static readonly \${1:newField} = \${2:undefined}"] },
211
+ "Public static getter": { "scope": "typescript,typescriptreact", "prefix": "public.static.getter", "body": ["public static get \${1:newProperty}() { return \${2:undefined} }"] },
212
+ "Public static setter": { "scope": "typescript,typescriptreact", "prefix": "public.static.setter", "body": ["public static set \${1:newProperty}(\${2:_value}: \${3:unknown}) {\${4:} }"] },
213
+ "Public static method": { "scope": "typescript,typescriptreact", "prefix": "public.static.method", "body": ["public static \${1:newMethod}(\${2:}): \${3:void} {\${4:} }"] },
214
+ "Public static async method": { "scope": "typescript,typescriptreact", "prefix": "public.static.async.method", "body": ["public static async \${1:newMethod}(\${2:}): \${3:Promise<unknown>} {\${4:} }"] },
215
215
 
216
216
  // === PROTECTED STATIC ===
217
- "Protected static field": { "scope": "typescript", "prefix": "protected.static.field", "body": ["protected static \${1:newField} = \${2:undefined}"] },
218
- "Protected static readonly field": { "scope": "typescript", "prefix": "protected.static.readonly.field", "body": ["protected static readonly \${1:newField} = \${2:undefined}"] },
219
- "Protected static getter": { "scope": "typescript", "prefix": "protected.static.getter", "body": ["protected static get \${1:newProperty}() { return \${2:undefined} }"] },
220
- "Protected static setter": { "scope": "typescript", "prefix": "protected.static.setter", "body": ["protected static set \${1:newProperty}(\${2:_value}: \${3:unknown}) {\${4:} }"] },
221
- "Protected static method": { "scope": "typescript", "prefix": "protected.static.method", "body": ["protected static \${1:newMethod}(\${2:}): \${3:void} {\${4:} }"] },
222
- "Protected static async method": { "scope": "typescript", "prefix": "protected.static.async.method", "body": ["protected static async \${1:newMethod}(\${2:}): \${3:Promise<unknown>} {\${4:} }"] },
217
+ "Protected static field": { "scope": "typescript,typescriptreact", "prefix": "protected.static.field", "body": ["protected static \${1:newField} = \${2:undefined}"] },
218
+ "Protected static readonly field": { "scope": "typescript,typescriptreact", "prefix": "protected.static.readonly.field", "body": ["protected static readonly \${1:newField} = \${2:undefined}"] },
219
+ "Protected static getter": { "scope": "typescript,typescriptreact", "prefix": "protected.static.getter", "body": ["protected static get \${1:newProperty}() { return \${2:undefined} }"] },
220
+ "Protected static setter": { "scope": "typescript,typescriptreact", "prefix": "protected.static.setter", "body": ["protected static set \${1:newProperty}(\${2:_value}: \${3:unknown}) {\${4:} }"] },
221
+ "Protected static method": { "scope": "typescript,typescriptreact", "prefix": "protected.static.method", "body": ["protected static \${1:newMethod}(\${2:}): \${3:void} {\${4:} }"] },
222
+ "Protected static async method": { "scope": "typescript,typescriptreact", "prefix": "protected.static.async.method", "body": ["protected static async \${1:newMethod}(\${2:}): \${3:Promise<unknown>} {\${4:} }"] },
223
223
 
224
224
  // === PRIVATE STATIC ===
225
- "Private static field": { "scope": "typescript", "prefix": "private.static.field", "body": ["private static \${1:newField} = \${2:undefined}"] },
226
- "Private static readonly field": { "scope": "typescript", "prefix": "private.static.readonly.field", "body": ["private static readonly \${1:newField} = \${2:undefined}"] },
227
- "Private static getter": { "scope": "typescript", "prefix": "private.static.getter", "body": ["private static get \${1:newProperty}() { return \${2:undefined} }"] },
228
- "Private static setter": { "scope": "typescript", "prefix": "private.static.setter", "body": ["private static set \${1:newProperty}(\${2:_value}: \${3:unknown}) {\${4:} }"] },
229
- "Private static method": { "scope": "typescript", "prefix": "private.static.method", "body": ["private static \${1:newMethod}(\${2:}): \${3:void} {\${4:} }"] },
230
- "Private static async method": { "scope": "typescript", "prefix": "private.static.async.method", "body": ["private static async \${1:newMethod}(\${2:}): \${3:Promise<unknown>} {\${4:} }"] }
225
+ "Private static field": { "scope": "typescript,typescriptreact", "prefix": "private.static.field", "body": ["private static \${1:newField} = \${2:undefined}"] },
226
+ "Private static readonly field": { "scope": "typescript,typescriptreact", "prefix": "private.static.readonly.field", "body": ["private static readonly \${1:newField} = \${2:undefined}"] },
227
+ "Private static getter": { "scope": "typescript,typescriptreact", "prefix": "private.static.getter", "body": ["private static get \${1:newProperty}() { return \${2:undefined} }"] },
228
+ "Private static setter": { "scope": "typescript,typescriptreact", "prefix": "private.static.setter", "body": ["private static set \${1:newProperty}(\${2:_value}: \${3:unknown}) {\${4:} }"] },
229
+ "Private static method": { "scope": "typescript,typescriptreact", "prefix": "private.static.method", "body": ["private static \${1:newMethod}(\${2:}): \${3:void} {\${4:} }"] },
230
+ "Private static async method": { "scope": "typescript,typescriptreact", "prefix": "private.static.async.method", "body": ["private static async \${1:newMethod}(\${2:}): \${3:Promise<unknown>} {\${4:} }"] }
231
231
  `.replace(/^[ \t]+/gm, '')
232
232
 
233
233
  private readonly indentedSnippets = this.snippets
@@ -1,6 +1,6 @@
1
1
  import { readFile, writeFile } from 'fs/promises'
2
2
  import { parse } from 'jsonc-parser'
3
- import expandHomeDir from '../scripts/expandHomeDir'
3
+ import expandHomeDir from '../functions/expandHomeDir'
4
4
 
5
5
  export default class VscodeSnippetKeybinder implements SnippetKeybinder {
6
6
  public static Class?: SnippetKeybinderConstructor
@@ -37,7 +37,7 @@ export default class VscodeSnippetKeybinder implements SnippetKeybinder {
37
37
  const updated = {
38
38
  ...snippets,
39
39
  [this.name]: {
40
- scope: 'javascript,typescript',
40
+ scope: 'typescript,typescriptreact',
41
41
  prefix: this.toCommandId(this.name),
42
42
  body: this.lines,
43
43
  description: this.description,
@@ -1,5 +1,5 @@
1
+ import expandHomeDir from '../functions/expandHomeDir'
1
2
  import NpmAutopackage from '../impl/NpmAutopackage'
2
- import expandHomeDir from './expandHomeDir'
3
3
 
4
4
  async function main() {
5
5
  console.log('Running autopackage...')
@@ -1,5 +1,5 @@
1
+ import expandHomeDir from '../functions/expandHomeDir'
1
2
  import ImplAutomodule from '../impl/ImplAutomodule'
2
- import expandHomeDir from './expandHomeDir'
3
3
 
4
4
  async function main() {
5
5
  console.log('\nRunning automodule...')
@@ -1,5 +1,5 @@
1
+ import expandHomeDir from '../functions/expandHomeDir'
1
2
  import UiAutomodule from '../impl/UiAutomodule'
2
- import expandHomeDir from './expandHomeDir'
3
3
 
4
4
  async function main() {
5
5
  console.log('\nRunning automodule...')
@@ -1 +0,0 @@
1
- {"version":3,"file":"expandHomeDir.js","sourceRoot":"","sources":["../../src/scripts/expandHomeDir.ts"],"names":[],"mappings":";;;;;AAGA,gCAIC;AAPD,4CAAmB;AACnB,gDAAuB;AAEvB,SAAwB,aAAa,CAAC,SAAiB;IACnD,OAAO,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC;QAC5B,CAAC,CAAC,cAAI,CAAC,IAAI,CAAC,YAAE,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC7C,CAAC,CAAC,SAAS,CAAA;AACnB,CAAC"}
File without changes
File without changes
File without changes