create-rstack 1.8.2 → 1.9.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/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export declare type Argv = {
7
7
  template?: string;
8
8
  override?: boolean;
9
9
  tools?: string | string[];
10
+ skill?: string | string[];
10
11
  packageName?: string;
11
12
  'package-name'?: string;
12
13
  };
@@ -46,7 +47,7 @@ export declare function copyFolder({ from, to, version, packageName, templatePar
46
47
  skipFiles?: string[];
47
48
  }): void;
48
49
 
49
- export declare function create({ name, root, templates, skipFiles, getTemplateName, mapESLintTemplate, version, noteInformation, extraTools, argv: processArgv, }: {
50
+ export declare function create({ name, root, templates, skipFiles, getTemplateName, mapESLintTemplate, version, noteInformation, extraTools, extraSkills, argv: processArgv, }: {
50
51
  name: string;
51
52
  root: string;
52
53
  skipFiles?: string[];
@@ -65,6 +66,7 @@ export declare function create({ name, root, templates, skipFiles, getTemplateNa
65
66
  * Specify additional tools.
66
67
  */
67
68
  extraTools?: ExtraTool[];
69
+ extraSkills?: ExtraSkill[];
68
70
  /**
69
71
  * For test purpose, override the default argv (process.argv).
70
72
  */
@@ -73,6 +75,15 @@ export declare function create({ name, root, templates, skipFiles, getTemplateNa
73
75
 
74
76
  export declare type ESLintTemplateName = 'vanilla-js' | 'vanilla-ts' | 'react-js' | 'react-ts' | 'vue-ts' | 'vue-js' | 'svelte-js' | 'svelte-ts';
75
77
 
78
+ declare type ExtraSkill = {
79
+ value: string;
80
+ label: string;
81
+ source: string;
82
+ skill?: string;
83
+ when?: (templateName: string) => boolean;
84
+ order?: 'pre' | 'post';
85
+ };
86
+
76
87
  declare type ExtraTool = {
77
88
  /**
78
89
  * The value of the multiselect option.