@genesislcap/foundation-cli 14.237.2-alpha-78ebbc0.0 → 14.238.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 (39) hide show
  1. package/dist/plop/actions/config.js +2 -2
  2. package/dist/plop/actions/designSystem.js +2 -2
  3. package/dist/plop/actions/fileSystem.js +2 -2
  4. package/dist/plop/actions/generator.js +4 -4
  5. package/dist/plop/actions/git.js +2 -2
  6. package/dist/plop/actions/npm.js +2 -2
  7. package/dist/plop/actions/seed.js +2 -2
  8. package/dist/plop/generators/app/configure.js +3 -3
  9. package/dist/plop/generators/app/create.js +2 -2
  10. package/dist/plop/generators/component.js +2 -2
  11. package/dist/plop/generators/designSystem/analyzeComponentUsage.js +2 -2
  12. package/dist/plop/generators/designSystem/designSystem.js +23 -23
  13. package/dist/plop/generators/designSystem/switchDesignSystem.js +2 -2
  14. package/dist/plop/generators/dslApp/create.js +2 -2
  15. package/dist/plop/generators/foundation.js +2 -2
  16. package/dist/plop/generators/generatorChain.js +2 -2
  17. package/dist/plop/generators/workspace/configure.js +3 -3
  18. package/dist/plop/generators/workspace/create.js +2 -2
  19. package/dist/plop/messages/color.js +3 -3
  20. package/dist/plop/messages/format.js +1 -1
  21. package/dist/plop/prompts/app.js +1 -1
  22. package/dist/plop/prompts/dsl.js +1 -1
  23. package/dist/plop/prompts/filesystem.js +1 -1
  24. package/dist/plop/prompts/jfrog.js +1 -1
  25. package/dist/plop/prompts/workspace.js +1 -1
  26. package/dist/plop/tasks/authenticate.js +3 -3
  27. package/dist/plop/tasks/entitlements.js +1 -1
  28. package/dist/plop/tasks/seed.d.ts +0 -6
  29. package/dist/plop/tasks/seed.d.ts.map +1 -1
  30. package/dist/plop/tasks/seed.js +2 -2
  31. package/dist/plop/templates/design-system/package.json.hbs +1 -1
  32. package/dist/schemas/migration/index.d.ts.map +1 -1
  33. package/dist/schemas/types.js +2 -2
  34. package/dist/seeds/configure.js +1 -1
  35. package/dist/seeds/types.js +2 -2
  36. package/dist/types.js +1 -1
  37. package/dist/utils/fetch.js +3 -3
  38. package/dist/utils/utils.js +1 -1
  39. package/package.json +2 -2
@@ -9,13 +9,13 @@ exports.setValueFeedback = setValueFeedback;
9
9
  var ConfigActionType;
10
10
  (function (ConfigActionType) {
11
11
  ConfigActionType["setValue"] = "Set";
12
- })(ConfigActionType || (exports.ConfigActionType = ConfigActionType = {}));
12
+ })(ConfigActionType = exports.ConfigActionType || (exports.ConfigActionType = {}));
13
13
  var ConfigActions;
14
14
  (function (ConfigActions) {
15
15
  ConfigActions.setValue = (key, value) => {
16
16
  store_1.configStore.setValue(key, value);
17
17
  };
18
- })(ConfigActions || (exports.ConfigActions = ConfigActions = {}));
18
+ })(ConfigActions = exports.ConfigActions || (exports.ConfigActions = {}));
19
19
  const setActionTypes = (plop) => {
20
20
  plop.setActionType(ConfigActionType.setValue, (answers, config) => {
21
21
  ConfigActions.setValue(config.key, config.value);
@@ -9,7 +9,7 @@ var DesignSystemActionType;
9
9
  (function (DesignSystemActionType) {
10
10
  DesignSystemActionType["analyzeComponentUsage"] = "Analyzed component usage";
11
11
  DesignSystemActionType["switchPrefixes"] = "Switching design system prefixes";
12
- })(DesignSystemActionType || (exports.DesignSystemActionType = DesignSystemActionType = {}));
12
+ })(DesignSystemActionType = exports.DesignSystemActionType || (exports.DesignSystemActionType = {}));
13
13
  var DesignSystemActions;
14
14
  (function (DesignSystemActions) {
15
15
  /**
@@ -63,7 +63,7 @@ var DesignSystemActions;
63
63
  const replaceVal = `$<leading>${newPrefix}-$<trailing>`;
64
64
  fileSystem_1.FileSystemActions.replaceContent(filePath, searchRegex, replaceVal);
65
65
  };
66
- })(DesignSystemActions || (exports.DesignSystemActions = DesignSystemActions = {}));
66
+ })(DesignSystemActions = exports.DesignSystemActions || (exports.DesignSystemActions = {}));
67
67
  /**
68
68
  * Add design system related actions to plop
69
69
  * @param plop - The plop api
@@ -9,7 +9,7 @@ var FileSystemActionType;
9
9
  FileSystemActionType["createDirectory"] = "Create directory";
10
10
  FileSystemActionType["createPath"] = "Create path";
11
11
  FileSystemActionType["replaceContent"] = "Replace content";
12
- })(FileSystemActionType || (exports.FileSystemActionType = FileSystemActionType = {}));
12
+ })(FileSystemActionType = exports.FileSystemActionType || (exports.FileSystemActionType = {}));
13
13
  var FileSystemActions;
14
14
  (function (FileSystemActions) {
15
15
  /**
@@ -125,7 +125,7 @@ var FileSystemActions;
125
125
  };
126
126
  return Utils.listAllFiles(directory, filter);
127
127
  };
128
- })(FileSystemActions || (exports.FileSystemActions = FileSystemActions = {}));
128
+ })(FileSystemActions = exports.FileSystemActions || (exports.FileSystemActions = {}));
129
129
  /**
130
130
  * Add file system related actions to plop
131
131
  * @param plop - The plop api
@@ -7,10 +7,10 @@ const utils_1 = require("../../utils");
7
7
  var GeneratorActionType;
8
8
  (function (GeneratorActionType) {
9
9
  GeneratorActionType["run"] = "Run generator";
10
- })(GeneratorActionType || (exports.GeneratorActionType = GeneratorActionType = {}));
10
+ })(GeneratorActionType = exports.GeneratorActionType || (exports.GeneratorActionType = {}));
11
11
  const getGeneratorRunner = (plop, flags) => {
12
12
  const standardRunner = (0, generator_runner_1.default)(plop, flags);
13
- return Object.assign(Object.assign({}, standardRunner), { runGeneratorPrompts: (generator_1, ...args_1) => tslib_1.__awaiter(void 0, [generator_1, ...args_1], void 0, function* (generator, bypass = [], prevAns = {}) {
13
+ return Object.assign(Object.assign({}, standardRunner), { runGeneratorPrompts: (generator, bypass = [], prevAns = {}) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
14
14
  const { prompts } = generator;
15
15
  if (prompts == null) {
16
16
  throw Error(`${generator.description} has no prompts`);
@@ -24,7 +24,7 @@ const getGeneratorRunner = (plop, flags) => {
24
24
  };
25
25
  var GeneratorActions;
26
26
  (function (GeneratorActions) {
27
- GeneratorActions.run = (generator_1, prevAns_1, plop_1, ...args_1) => tslib_1.__awaiter(this, [generator_1, prevAns_1, plop_1, ...args_1], void 0, function* (generator, prevAns, plop, bypass = [], flags = {}) {
27
+ GeneratorActions.run = (generator, prevAns, plop, bypass = [], flags = {}) => tslib_1.__awaiter(this, void 0, void 0, function* () {
28
28
  if (!generator) {
29
29
  throw new Error(`Invalid generator, unable to run.`);
30
30
  }
@@ -55,7 +55,7 @@ var GeneratorActions;
55
55
  utils_1.progressSpinner.stop();
56
56
  return [data, outcome];
57
57
  });
58
- })(GeneratorActions || (exports.GeneratorActions = GeneratorActions = {}));
58
+ })(GeneratorActions = exports.GeneratorActions || (exports.GeneratorActions = {}));
59
59
  const setActionTypes = (plop) => {
60
60
  plop.setActionType(GeneratorActionType.run, (answers, config) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
61
61
  const outcome = yield GeneratorActions.run(config.generator, answers, plop, config.bypass);
@@ -8,7 +8,7 @@ const utils_1 = require("../../utils");
8
8
  var GitActionType;
9
9
  (function (GitActionType) {
10
10
  GitActionType["clone"] = "Clone git repository";
11
- })(GitActionType || (exports.GitActionType = GitActionType = {}));
11
+ })(GitActionType = exports.GitActionType || (exports.GitActionType = {}));
12
12
  var GitActions;
13
13
  (function (GitActions) {
14
14
  GitActions.clone = (directory, seed) => tslib_1.__awaiter(this, void 0, void 0, function* () {
@@ -72,7 +72,7 @@ var GitActions;
72
72
  yield git.addRemote(remoteName, fullyQualifiedRemoteRepo);
73
73
  yield git.pull(remoteName, remoteBranch, gitOptions);
74
74
  });
75
- })(GitActions || (exports.GitActions = GitActions = {}));
75
+ })(GitActions = exports.GitActions || (exports.GitActions = {}));
76
76
  const setActionTypes = (plop) => {
77
77
  plop.setActionType(GitActionType.clone, (answers, config) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
78
78
  const { directory, seed } = config;
@@ -6,7 +6,7 @@ const child_process_1 = require("child_process");
6
6
  var NpmActionType;
7
7
  (function (NpmActionType) {
8
8
  NpmActionType["install"] = "Install";
9
- })(NpmActionType || (exports.NpmActionType = NpmActionType = {}));
9
+ })(NpmActionType = exports.NpmActionType || (exports.NpmActionType = {}));
10
10
  var NpmActions;
11
11
  (function (NpmActions) {
12
12
  NpmActions.install = (directory, verbose) => tslib_1.__awaiter(this, void 0, void 0, function* () {
@@ -41,7 +41,7 @@ var NpmActions;
41
41
  });
42
42
  });
43
43
  });
44
- })(NpmActions || (exports.NpmActions = NpmActions = {}));
44
+ })(NpmActions = exports.NpmActions || (exports.NpmActions = {}));
45
45
  const setActionTypes = (plop) => {
46
46
  plop.setActionType(NpmActionType.install, (answers, config) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
47
47
  const { directory, verbose } = config;
@@ -21,7 +21,7 @@ var SeedActionType;
21
21
  SeedActionType["createFromLocal"] = "Creating from local seed";
22
22
  SeedActionType["configure"] = "Configuring Seed";
23
23
  SeedActionType["setEnvVars"] = "Writing environment variables";
24
- })(SeedActionType || (exports.SeedActionType = SeedActionType = {}));
24
+ })(SeedActionType = exports.SeedActionType || (exports.SeedActionType = {}));
25
25
  var SeedActions;
26
26
  (function (SeedActions) {
27
27
  SeedActions.createFromDownload = (directory, seed) => tslib_1.__awaiter(this, void 0, void 0, function* () {
@@ -78,7 +78,7 @@ var SeedActions;
78
78
  ].join('\n') + '\n';
79
79
  configFiles.forEach((file) => fileSystem_1.FileSystemActions.writeFile(file, fileContents));
80
80
  });
81
- })(SeedActions || (exports.SeedActions = SeedActions = {}));
81
+ })(SeedActions = exports.SeedActions || (exports.SeedActions = {}));
82
82
  const setActionTypes = (plop) => {
83
83
  plop.setActionType(SeedActionType.create, (answers, config) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
84
84
  const { directory, seed, seedDelivery } = config;
@@ -24,9 +24,9 @@ const validatePrevAns = (prevAns = {}) => {
24
24
  };
25
25
  exports.configureAppGenerator = {
26
26
  description: (0, messages_1.generatorDescription)('Configure a local app.'),
27
- prompts(inquirer_1) {
28
- return tslib_1.__awaiter(this, arguments, void 0, function* (inquirer, prevAns = {}) {
29
- var _a, _b, _c;
27
+ prompts(inquirer, prevAns = {}) {
28
+ var _a, _b, _c;
29
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
30
30
  prevAns = applyRuntimeArgs(prevAns);
31
31
  const { targetDirectory = prevAns.targetDirectory } = yield inquirer.prompt([
32
32
  {
@@ -26,8 +26,8 @@ const applyRuntimeArgs = (prevAns = {}) => {
26
26
  };
27
27
  exports.createAppGenerator = {
28
28
  description: null,
29
- prompts(inquirer_1) {
30
- return tslib_1.__awaiter(this, arguments, void 0, function* (inquirer, prevAns = {}) {
29
+ prompts(inquirer, prevAns = {}) {
30
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
31
  prevAns = applyRuntimeArgs(prevAns);
32
32
  const seedList = (yield (0, tasks_1.downloadSeedList)('apps')).filter((seed) => { var _a; return !((_a = seed.tags) === null || _a === void 0 ? void 0 : _a.includes(types_1.DslTag)); });
33
33
  if (seedList.length === 0) {
@@ -11,8 +11,8 @@ const validators_1 = require("../validators");
11
11
  */
12
12
  exports.componentGenerator = {
13
13
  description: (0, messages_1.generatorDescription)('Generate a custom foundation-ui base component.'),
14
- prompts(inquirer_1) {
15
- return tslib_1.__awaiter(this, arguments, void 0, function* (inquirer, prevAns = {}) {
14
+ prompts(inquirer, prevAns = {}) {
15
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
16
16
  const designSystemsDirectories = (0, utils_1.getDesignSystemsDirectories)();
17
17
  const { name, designSystemChoices, force } = yield inquirer.prompt([
18
18
  {
@@ -17,8 +17,8 @@ const applyRuntimeArgs = (prevAns = {}) => {
17
17
  exports.analyzeComponentUsageDescription = 'Analyse component usage under the target directory.';
18
18
  exports.analyzeComponentUsageGenerator = {
19
19
  description: (0, messages_1.generatorDescription)(exports.analyzeComponentUsageDescription),
20
- prompts(inquirer_1) {
21
- return tslib_1.__awaiter(this, arguments, void 0, function* (inquirer, prevAns = {}) {
20
+ prompts(inquirer, prevAns = {}) {
21
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
22
22
  prevAns = applyRuntimeArgs(prevAns);
23
23
  const { useCurrent = prevAns.useCurrent, targetDirectory = prevAns.targetDirectory } = yield inquirer.prompt([
24
24
  {
@@ -8,8 +8,8 @@ const utils_1 = require("../../../utils");
8
8
  const messages_1 = require("../../messages");
9
9
  exports.designSystemGenerator = {
10
10
  description: (0, messages_1.generatorDescription)('Generate a new design system from 2 existing base systems'),
11
- prompts(inquirer_1) {
12
- return tslib_1.__awaiter(this, arguments, void 0, function* (inquirer, prevAns = {}) {
11
+ prompts(inquirer, prevAns = {}) {
12
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
13
13
  // TODO: Update these to use when() checks
14
14
  const { dsPrefix, basePath1, basePrefix1, basePath2, basePrefix2, force } = yield inquirer.prompt([
15
15
  {
@@ -22,13 +22,13 @@ exports.designSystemGenerator = {
22
22
  {
23
23
  type: 'input',
24
24
  name: 'basePath1',
25
- default: (0, utils_1.getFoundationUIPath)(), // or getDSPath('foundation-zero'),
25
+ default: (0, utils_1.getFoundationUIPath)(),
26
26
  message: 'Base design system 1 path',
27
27
  },
28
28
  {
29
29
  type: 'input',
30
30
  name: 'basePrefix1',
31
- default: 'foundation', // 'zero',
31
+ default: 'foundation',
32
32
  message: 'Base design system 1 prefix',
33
33
  },
34
34
  // base system 2 is expected to be third-party DS (e.g. MS fast-components)
@@ -108,33 +108,33 @@ exports.designSystemGenerator = {
108
108
  const packageJsonRepository = 'git+https://github.com/genesislcap/foundation-ui.git';
109
109
  const baseSystem2Components = baseSystem2Exports.map((name) => ({
110
110
  baseName: name,
111
- componentClass: (0, change_case_1.pascalCase)(name), // 'Toolbar',
112
- importedComponent: `${basePrefix2}${(0, change_case_1.pascalCase)(name)}`, // `fastToolbar`,
111
+ componentClass: (0, change_case_1.pascalCase)(name),
112
+ importedComponent: `${basePrefix2}${(0, change_case_1.pascalCase)(name)}`,
113
113
  importSource: baseSystem2.name,
114
- importedStyles: `${(0, change_case_1.camelCase)(name)}Styles`, // `toolbarStyles`,
115
- importedTemplate: `${(0, change_case_1.camelCase)(name)}Template`, // `toolbarTemplate`,
116
- exportedComponent: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}`, // 'alphaToolbar',
117
- exportedStyles: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}Styles`, // 'alphaToolbarStyles',
118
- exportedTemplate: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}Template`, // 'alphaToolbarTemplate',
119
- exportedShadowOptions: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}ShadowOptions`, // 'alphaToolbarShadowOptions',
120
- defaultConfig: `default${(0, change_case_1.pascalCase)(name)}Config`, // `defaultToolbarConfig`
114
+ importedStyles: `${(0, change_case_1.camelCase)(name)}Styles`,
115
+ importedTemplate: `${(0, change_case_1.camelCase)(name)}Template`,
116
+ exportedComponent: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}`,
117
+ exportedStyles: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}Styles`,
118
+ exportedTemplate: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}Template`,
119
+ exportedShadowOptions: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}ShadowOptions`,
120
+ defaultConfig: `default${(0, change_case_1.pascalCase)(name)}Config`,
121
121
  customComponent: false,
122
122
  }));
123
123
  const baseSystem1Components = baseSystem1Exports.map((name) => ({
124
124
  baseName: name,
125
- componentClass: (0, change_case_1.pascalCase)(name), // 'Toolbar',
125
+ componentClass: (0, change_case_1.pascalCase)(name),
126
126
  importedComponent: customComponents.includes(name)
127
127
  ? (0, change_case_1.pascalCase)(`${basePrefix1}${(0, change_case_1.pascalCase)(name)}`)
128
- : `${basePrefix1}${(0, change_case_1.pascalCase)(name)}`, // `ZeroToolbar`/`zeroToolbar`,
128
+ : `${basePrefix1}${(0, change_case_1.pascalCase)(name)}`,
129
129
  importSource: baseSystem1.name,
130
- exportedComponent: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}`, // 'alphaToolbar',
131
- exportedStyles: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}Styles`, // 'alphaToolbarStyles',
132
- exportedTemplate: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}Template`, // 'alphaToolbarTemplate',
133
- exportedShadowOptions: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}ShadowOptions`, // 'alphaToolbarShadowOptions',
134
- importedStyles: `${basePrefix1}${(0, change_case_1.pascalCase)(name)}Styles`, // `zeroToolbarStyles`,
135
- importedTemplate: `${basePrefix1}${(0, change_case_1.pascalCase)(name)}Template`, // `zeroToolbarTemplate`,
136
- importedShadowOptions: `${basePrefix1}${(0, change_case_1.pascalCase)(name)}ShadowOptions`, // `zeroToolbarShadowOptions`,
137
- defaultConfig: `default${(0, change_case_1.pascalCase)(name)}Config`, // `defaultToolbarConfig`
130
+ exportedComponent: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}`,
131
+ exportedStyles: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}Styles`,
132
+ exportedTemplate: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}Template`,
133
+ exportedShadowOptions: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}ShadowOptions`,
134
+ importedStyles: `${basePrefix1}${(0, change_case_1.pascalCase)(name)}Styles`,
135
+ importedTemplate: `${basePrefix1}${(0, change_case_1.pascalCase)(name)}Template`,
136
+ importedShadowOptions: `${basePrefix1}${(0, change_case_1.pascalCase)(name)}ShadowOptions`,
137
+ defaultConfig: `default${(0, change_case_1.pascalCase)(name)}Config`,
138
138
  customComponent: customComponents.includes(name),
139
139
  }));
140
140
  const allComponents = [...baseSystem2Components, ...baseSystem1Components];
@@ -29,8 +29,8 @@ const applyRuntimeArgs = (prevAns = {}) => {
29
29
  exports.switchDesignSystemDescription = 'Switch all design system prefixes found in files under the target directory to a new prefix, ie. templates, css rules, markdown etc.';
30
30
  exports.switchDesignSystemGenerator = {
31
31
  description: (0, messages_1.generatorDescription)(exports.switchDesignSystemDescription),
32
- prompts(inquirer_1) {
33
- return tslib_1.__awaiter(this, arguments, void 0, function* (inquirer, prevAns = {}) {
32
+ prompts(inquirer, prevAns = {}) {
33
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
34
34
  prevAns = applyRuntimeArgs(prevAns);
35
35
  const { useCurrent = prevAns.useCurrent, targetDirectory = prevAns.targetDirectory, newPrefix = prevAns.newPrefix, hasOldCustomPrefix = prevAns.hasOldCustomPrefix, oldCustomPrefix = prevAns.oldCustomPrefix, proceed, } = yield inquirer.prompt([
36
36
  {
@@ -27,8 +27,8 @@ const applyRuntimeArgs = (prevAns = {}) => {
27
27
  };
28
28
  exports.createDslAppGenerator = {
29
29
  description: null,
30
- prompts(inquirer_1) {
31
- return tslib_1.__awaiter(this, arguments, void 0, function* (inquirer, prevAns = {}) {
30
+ prompts(inquirer, prevAns = {}) {
31
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
32
32
  prevAns = applyRuntimeArgs(prevAns);
33
33
  const seedList = (yield (0, tasks_1.downloadSeedList)('apps')).filter((seed) => { var _a; return (_a = seed.tags) === null || _a === void 0 ? void 0 : _a.includes(types_1.DslTag); });
34
34
  if (seedList.length === 0) {
@@ -11,8 +11,8 @@ const validators_1 = require("../validators");
11
11
  */
12
12
  exports.foundationGenerator = {
13
13
  description: (0, messages_1.generatorDescription)('Re-generate the foundation-ui base components.'),
14
- prompts(inquirer_1) {
15
- return tslib_1.__awaiter(this, arguments, void 0, function* (inquirer, prevAns = {}) {
14
+ prompts(inquirer, prevAns = {}) {
15
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
16
16
  /**
17
17
  * TODO: Find out what these are for since they don't seem to be used
18
18
  */
@@ -24,8 +24,8 @@ const generatorChain = (plop, description, generators, bypass, actions = [' Done
24
24
  * The answers from one iteration are used as previous answers input to the next, so we need to turn this rule off.
25
25
  */
26
26
  /* eslint-disable no-await-in-loop */
27
- prompts(inquirer_1) {
28
- return tslib_1.__awaiter(this, arguments, void 0, function* (inquirer, prevAns = {}) {
27
+ prompts(inquirer, prevAns = {}) {
28
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
29
29
  let allAns = Object.assign({}, prevAns);
30
30
  for (const generator of generators) {
31
31
  const [data, outcome] = yield generator_1.GeneratorActions.run(generator, allAns, plop, bypass);
@@ -24,9 +24,9 @@ const validatePrevAns = (prevAns = {}) => {
24
24
  };
25
25
  exports.configureWorkspaceGenerator = {
26
26
  description: (0, messages_1.generatorDescription)('Configure a local workspace.'),
27
- prompts(inquirer_1) {
28
- return tslib_1.__awaiter(this, arguments, void 0, function* (inquirer, prevAns = {}) {
29
- var _a, _b, _c;
27
+ prompts(inquirer, prevAns = {}) {
28
+ var _a, _b, _c;
29
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
30
30
  prevAns = applyRuntimeArgs(prevAns);
31
31
  const { targetDirectory = prevAns.targetDirectory } = yield inquirer.prompt([
32
32
  {
@@ -26,8 +26,8 @@ const applyRuntimeArgs = (prevAns = {}) => {
26
26
  };
27
27
  exports.createWorkspaceGenerator = {
28
28
  description: (0, messages_1.generatorDescription)('Create a local workspace to house a set of applications.'),
29
- prompts(inquirer_1) {
30
- return tslib_1.__awaiter(this, arguments, void 0, function* (inquirer, prevAns = {}) {
29
+ prompts(inquirer, prevAns = {}) {
30
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
31
  prevAns = applyRuntimeArgs(prevAns);
32
32
  const seedList = yield (0, tasks_1.downloadSeedList)('workspaces');
33
33
  let { workspaceDirectory, workspaceName, workspaceSeed } = yield (0, workspace_1.default)(inquirer, prevAns, seedList);
@@ -29,7 +29,7 @@ var Text;
29
29
  Text.dim = chalk_1.default.dim;
30
30
  Text.bold = chalk_1.default.bold;
31
31
  Text.value = chalk_1.default.green;
32
- })(Text || (exports.Text = Text = {}));
32
+ })(Text = exports.Text || (exports.Text = {}));
33
33
  var Code;
34
34
  (function (Code) {
35
35
  /**
@@ -43,7 +43,7 @@ var Code;
43
43
  Code.docComment = chalk_1.default.hex('#629755');
44
44
  Code.htmlElement = chalk_1.default.hex('#BBB529');
45
45
  Code.htmlString = chalk_1.default.hex('#A9B7C6');
46
- })(Code || (exports.Code = Code = {}));
46
+ })(Code = exports.Code || (exports.Code = {}));
47
47
  var CLI;
48
48
  (function (CLI) {
49
49
  CLI.key = chalk_1.default.blue;
@@ -51,4 +51,4 @@ var CLI;
51
51
  CLI.subCommand = chalk_1.default.green;
52
52
  CLI.note = chalk_1.default.dim;
53
53
  CLI.generatorDesc = chalk_1.default.yellow;
54
- })(CLI || (exports.CLI = CLI = {}));
54
+ })(CLI = exports.CLI || (exports.CLI = {}));
@@ -9,4 +9,4 @@ var Format;
9
9
  Format.strong = chalk_1.default.bold;
10
10
  Format.truncate = (input, max) => input.length > max ? `${input.substring(0, max)}...` : input;
11
11
  Format.transform = changeCase;
12
- })(Format || (exports.Format = Format = {}));
12
+ })(Format = exports.Format || (exports.Format = {}));
@@ -7,7 +7,7 @@ const store_1 = require("../../store");
7
7
  const utils_1 = require("../../utils");
8
8
  const messages_1 = require("../messages");
9
9
  const validators_1 = require("../validators");
10
- exports.default = (inquirer_1, ...args_1) => tslib_1.__awaiter(void 0, [inquirer_1, ...args_1], void 0, function* (inquirer, prevAns = {}, seedList) {
10
+ exports.default = (inquirer, prevAns = {}, seedList) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
11
11
  (0, messages_1.appIntro)();
12
12
  const { useCurrent, appDirectory = prevAns.appDirectory, appName = prevAns.appName, appSeed, seedDelivery, } = yield inquirer.prompt([
13
13
  {
@@ -5,7 +5,7 @@ const utils_1 = require("../../utils");
5
5
  const utils_2 = require("../../utils");
6
6
  const messages_1 = require("../messages");
7
7
  const validators_1 = require("../validators");
8
- exports.default = (inquirer_1, ...args_1) => tslib_1.__awaiter(void 0, [inquirer_1, ...args_1], void 0, function* (inquirer, prevAns = {}, seedList) {
8
+ exports.default = (inquirer, prevAns = {}, seedList) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
9
9
  (0, messages_1.dslAppIntro)();
10
10
  const { useCurrent, appDirectory = prevAns.appDirectory, appName = prevAns.appName, appSeed, } = yield inquirer.prompt([
11
11
  {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const utils_1 = require("../../utils");
5
- exports.default = (inquirer_1, ...args_1) => tslib_1.__awaiter(void 0, [inquirer_1, ...args_1], void 0, function* (inquirer, prevAns = {}, directory, name) {
5
+ exports.default = (inquirer, prevAns = {}, directory, name) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
6
6
  const { forceOverwrite = prevAns.forceOverwrite } = yield inquirer.prompt([
7
7
  {
8
8
  name: 'forceOverwrite',
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const validators_1 = require("../validators");
5
- exports.default = (inquirer_1, ...args_1) => tslib_1.__awaiter(void 0, [inquirer_1, ...args_1], void 0, function* (inquirer, prevAns = {}) {
5
+ exports.default = (inquirer, prevAns = {}) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
6
6
  const { jfrogUsername = prevAns.jfrogUsername, jfrogPassword = prevAns.jfrogPassword } = yield inquirer.prompt([
7
7
  {
8
8
  name: 'jfrogUsername',
@@ -4,7 +4,7 @@ const tslib_1 = require("tslib");
4
4
  const utils_1 = require("../../utils");
5
5
  const messages_1 = require("../messages");
6
6
  const validators_1 = require("../validators");
7
- exports.default = (inquirer_1, ...args_1) => tslib_1.__awaiter(void 0, [inquirer_1, ...args_1], void 0, function* (inquirer, prevAns = {}, seedList) {
7
+ exports.default = (inquirer, prevAns = {}, seedList) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
8
8
  (0, messages_1.workspaceIntro)();
9
9
  const { useCurrent, workspaceDirectory = prevAns.workspaceDirectory, workspaceName = prevAns.workspaceName, workspaceSeed, } = yield inquirer.prompt([
10
10
  {
@@ -12,7 +12,7 @@ const expiresISOString = (expiresIn) => {
12
12
  return now.toISOString();
13
13
  };
14
14
  const hasExpired = (ISOString) => new Date() > new Date(ISOString);
15
- const recursiveLoginAttempts = (inquirer_1, ...args_1) => tslib_1.__awaiter(void 0, [inquirer_1, ...args_1], void 0, function* (inquirer, prevAns = {}) {
15
+ const recursiveLoginAttempts = (inquirer, prevAns = {}) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
16
16
  const { jfrogUsername, jfrogToken, jfrogTokenExpiry, jfrogTokenType } = prevAns;
17
17
  const tokenExpired = jfrogTokenExpiry ? hasExpired(jfrogTokenExpiry) : false;
18
18
  if (!jfrogToken || tokenExpired) {
@@ -72,13 +72,13 @@ const applyRuntimeArgs = (prevAns = {}) => {
72
72
  }
73
73
  return prevAns;
74
74
  };
75
- const authenticateUser = (inquirer_2, ...args_2) => tslib_1.__awaiter(void 0, [inquirer_2, ...args_2], void 0, function* (inquirer, prevAns = {}) {
75
+ const authenticateUser = (inquirer, prevAns = {}) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
76
76
  prevAns = applyRuntimeArgs(prevAns);
77
77
  const credentials = yield recursiveLoginAttempts(inquirer, prevAns);
78
78
  return credentials;
79
79
  });
80
80
  exports.authenticateUser = authenticateUser;
81
- const setCredentials = (...args_3) => tslib_1.__awaiter(void 0, [...args_3], void 0, function* (prevAns = {}) {
81
+ const setCredentials = (prevAns = {}) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
82
82
  store_1.configStore.setValue(store_1.configStore.keys.jfrogUsername, prevAns.jfrogUsername);
83
83
  store_1.configStore.setValue(store_1.configStore.keys.jfrogToken, prevAns.jfrogToken);
84
84
  store_1.configStore.setValue(store_1.configStore.keys.jfrogTokenExpiry, prevAns.jfrogTokenExpiry);
@@ -4,7 +4,7 @@ exports.downloadEntitlements = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const store_1 = require("../../store");
6
6
  const utils_1 = require("../../utils");
7
- const downloadEntitlements = (...args_1) => tslib_1.__awaiter(void 0, [...args_1], void 0, function* (binCmdKey = store_1.configStore.values.binCmdKey, authToken = store_1.configStore.values.jfrog.token, authTokenType = store_1.configStore.values.jfrog.tokenType) {
7
+ const downloadEntitlements = (binCmdKey = store_1.configStore.values.binCmdKey, authToken = store_1.configStore.values.jfrog.token, authTokenType = store_1.configStore.values.jfrog.tokenType) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
8
8
  const response = yield (0, utils_1.downloadJson)(`https://genesisglobal.jfrog.io/artifactory/seed-area/entitlements.${binCmdKey}.json`, authToken, authTokenType);
9
9
  if (!response.ok) {
10
10
  throw (0, utils_1.responseNotOk)(response, 'Unable to download user entitlements');
@@ -1,9 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="webpack-env" />
3
- /// <reference types="node" />
4
- /// <reference types="node" />
5
- /// <reference types="node" />
6
- /// <reference types="node" />
7
1
  import { RemoteSeedSource, SeedSources } from '../../seeds';
8
2
  import type { BinCmdKey, SeedListType, TokenType } from '../../types';
9
3
  import { Response } from '../../utils';
@@ -1 +1 @@
1
- {"version":3,"file":"seed.d.ts","sourceRoot":"","sources":["../../../src/plop/tasks/seed.ts"],"names":[],"mappings":";;;;;;AAKA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAIL,QAAQ,EAET,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,gBAAgB,UACrB,YAAY,cACP,SAAS,cACT,MAAM,kBACF,SAAS,KACvB,QAAQ,WAAW,EAAE,CAWvB,CAAC;AAEF,eAAO,MAAM,YAAY,SACjB,gBAAgB,cACX,MAAM,kBACF,SAAS,KACvB,QAAQ,QAAQ,CAWlB,CAAC;AAEF,eAAO,MAAM,WAAW,SAChB,gBAAgB,UACd,OAAO,cAAc,aAClB,MAAM,KAChB,QAAQ,IAAI,CA0Bd,CAAC"}
1
+ {"version":3,"file":"seed.d.ts","sourceRoot":"","sources":["../../../src/plop/tasks/seed.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAIL,QAAQ,EAET,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,gBAAgB,UACrB,YAAY,cACP,SAAS,cACT,MAAM,kBACF,SAAS,KACvB,QAAQ,WAAW,EAAE,CAWvB,CAAC;AAEF,eAAO,MAAM,YAAY,SACjB,gBAAgB,cACX,MAAM,kBACF,SAAS,KACvB,QAAQ,QAAQ,CAWlB,CAAC;AAEF,eAAO,MAAM,WAAW,SAChB,gBAAgB,UACd,OAAO,cAAc,aAClB,MAAM,KAChB,QAAQ,IAAI,CA0Bd,CAAC"}
@@ -9,7 +9,7 @@ const tar = tslib_1.__importStar(require("tar"));
9
9
  const store_1 = require("../../store");
10
10
  const utils_1 = require("../../utils");
11
11
  const normalizers_1 = require("../normalizers");
12
- const downloadSeedList = (...args_1) => tslib_1.__awaiter(void 0, [...args_1], void 0, function* (type = 'apps', binCmdKey = store_1.configStore.values.binCmdKey, authToken = store_1.configStore.values.jfrog.token, authTokenType = store_1.configStore.values.jfrog.tokenType) {
12
+ const downloadSeedList = (type = 'apps', binCmdKey = store_1.configStore.values.binCmdKey, authToken = store_1.configStore.values.jfrog.token, authTokenType = store_1.configStore.values.jfrog.tokenType) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
13
13
  const response = yield (0, utils_1.downloadJson)(`https://genesisglobal.jfrog.io/artifactory/seed-area/${type}.${binCmdKey}.json`, authToken, authTokenType);
14
14
  if (!response.ok) {
15
15
  throw (0, utils_1.responseNotOk)(response, 'Unable to download seeds information');
@@ -18,7 +18,7 @@ const downloadSeedList = (...args_1) => tslib_1.__awaiter(void 0, [...args_1], v
18
18
  return (0, normalizers_1.seedNormalizer)(data.seeds);
19
19
  });
20
20
  exports.downloadSeedList = downloadSeedList;
21
- const downloadSeed = (seed_1, ...args_2) => tslib_1.__awaiter(void 0, [seed_1, ...args_2], void 0, function* (seed, authToken = store_1.configStore.values.jfrog.token, authTokenType = store_1.configStore.values.jfrog.tokenType) {
21
+ const downloadSeed = (seed, authToken = store_1.configStore.values.jfrog.token, authTokenType = store_1.configStore.values.jfrog.tokenType) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
22
22
  const { vcsUrl, vcsOperation, vcsRemote, remoteUser, remoteRepo, remoteBranch } = seed;
23
23
  const response = yield (0, utils_1.downloadBinary)(`${vcsUrl}/${vcsOperation}/${vcsRemote}/${remoteUser}/${remoteRepo}/${remoteBranch}`, authToken, authTokenType);
24
24
  if (!response.ok) {
@@ -53,7 +53,7 @@
53
53
  "@microsoft/fast-element": "1.14.0",
54
54
  "@microsoft/fast-foundation": "2.49.6",
55
55
  "@microsoft/fast-web-utilities": "5.4.1",
56
- "tslib": "2.8.1"
56
+ "tslib": "^2.3.1"
57
57
  },
58
58
  "repository": {
59
59
  "type": "git",
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/migration/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEjD;;;;GAIG;AAEH,eAAO,MAAM,wBAAwB,EAAE,aAAa,EAiBnD,CAAC;AAIF,eAAO,MAAM,YAAY,8BAA+B,EAAE,mBAAmB,aAAa,EAAE,WAuB3F,CAAC;AAEF;;;;;;GAMG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/migration/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEjD;;;;GAIG;AAEH,eAAO,MAAM,wBAAwB,EAAE,aAAa,EAiBnD,CAAC;AAIF,eAAO,MAAM,YAAY,mDAAoD,aAAa,EAAE,WAuB3F,CAAC;AAEF;;;;;;GAMG"}
@@ -5,8 +5,8 @@ var SchemaType;
5
5
  (function (SchemaType) {
6
6
  SchemaType["workspace"] = "workspace";
7
7
  SchemaType["app"] = "app";
8
- })(SchemaType || (exports.SchemaType = SchemaType = {}));
8
+ })(SchemaType = exports.SchemaType || (exports.SchemaType = {}));
9
9
  var Frontend;
10
10
  (function (Frontend) {
11
11
  Frontend["typescript"] = "typescript";
12
- })(Frontend || (exports.Frontend = Frontend = {}));
12
+ })(Frontend = exports.Frontend || (exports.Frontend = {}));
@@ -15,7 +15,7 @@ const getSeedConfigFile = (directory) => {
15
15
  }
16
16
  };
17
17
  exports.getSeedConfigFile = getSeedConfigFile;
18
- const configureRemote = (answers_1, _a, plop_1) => tslib_1.__awaiter(void 0, [answers_1, _a, plop_1], void 0, function* (answers, { directory }, plop) {
18
+ const configureRemote = (answers, { directory }, plop) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
19
19
  try {
20
20
  const configFile = (0, exports.getSeedConfigFile)(directory);
21
21
  const configure = configFile.configure();
@@ -9,9 +9,9 @@ var SeedSource;
9
9
  (function (SeedSource) {
10
10
  SeedSource["local"] = "local";
11
11
  SeedSource["remote"] = "remote";
12
- })(SeedSource || (exports.SeedSource = SeedSource = {}));
12
+ })(SeedSource = exports.SeedSource || (exports.SeedSource = {}));
13
13
  var SeedDelivery;
14
14
  (function (SeedDelivery) {
15
15
  SeedDelivery["download"] = "Download";
16
16
  SeedDelivery["clone"] = "Clone";
17
- })(SeedDelivery || (exports.SeedDelivery = SeedDelivery = {}));
17
+ })(SeedDelivery = exports.SeedDelivery || (exports.SeedDelivery = {}));
package/dist/types.js CHANGED
@@ -19,7 +19,7 @@ var Entitlement;
19
19
  Entitlement["foundationSchemaCreate"] = "Foundation_Schema_Create";
20
20
  Entitlement["foundationComponentCreate"] = "Foundation_Component_Create";
21
21
  Entitlement["designSystemCreate"] = "Design_System_Create";
22
- })(Entitlement || (exports.Entitlement = Entitlement = {}));
22
+ })(Entitlement = exports.Entitlement || (exports.Entitlement = {}));
23
23
  exports.DslTag = 'DSL';
24
24
  exports.dslName = 'GPALX';
25
25
  exports.GENX_DIR = '.genx';
@@ -28,7 +28,7 @@ function getHttpAgent({ protocol }) {
28
28
  var HttpStatusCode;
29
29
  (function (HttpStatusCode) {
30
30
  HttpStatusCode[HttpStatusCode["unauthorized"] = 401] = "unauthorized";
31
- })(HttpStatusCode || (exports.HttpStatusCode = HttpStatusCode = {}));
31
+ })(HttpStatusCode = exports.HttpStatusCode || (exports.HttpStatusCode = {}));
32
32
  const responseNotOk = (response, msg) => {
33
33
  if (response.status === 401 /* HttpStatusCode.unauthorized */) {
34
34
  store_1.configStore.values.jfrog.clearToken();
@@ -47,12 +47,12 @@ const createDownloadInit = (token, tokenType = 'Bearer', contentType = 'applicat
47
47
  agent: getHttpAgent,
48
48
  });
49
49
  exports.createDownloadInit = createDownloadInit;
50
- const downloadBinary = (url_1, ...args_1) => tslib_1.__awaiter(void 0, [url_1, ...args_1], void 0, function* (url, authToken = store_1.configStore.values.jfrog.token, authTokenType = store_1.configStore.values.jfrog.tokenType) {
50
+ const downloadBinary = (url, authToken = store_1.configStore.values.jfrog.token, authTokenType = store_1.configStore.values.jfrog.tokenType) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
51
51
  const response = yield (0, node_fetch_1.default)(url, (0, exports.createDownloadInit)(authToken, authTokenType, 'application/octet-stream'));
52
52
  return response;
53
53
  });
54
54
  exports.downloadBinary = downloadBinary;
55
- const downloadJson = (url_2, ...args_2) => tslib_1.__awaiter(void 0, [url_2, ...args_2], void 0, function* (url, authToken = store_1.configStore.values.jfrog.token, authTokenType = store_1.configStore.values.jfrog.tokenType) {
55
+ const downloadJson = (url, authToken = store_1.configStore.values.jfrog.token, authTokenType = store_1.configStore.values.jfrog.tokenType) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
56
56
  const response = yield (0, node_fetch_1.default)(url, (0, exports.createDownloadInit)(authToken, authTokenType, 'application/json'));
57
57
  return response;
58
58
  });
@@ -84,7 +84,7 @@ exports.copyFilesAsyncOptions = {
84
84
  });
85
85
  },
86
86
  };
87
- const copyFilesAsync = (source_1, destination_1, ...args_1) => tslib_1.__awaiter(void 0, [source_1, destination_1, ...args_1], void 0, function* (source, destination, options = exports.copyFilesAsyncOptions) {
87
+ const copyFilesAsync = (source, destination, options = exports.copyFilesAsyncOptions) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
88
88
  try {
89
89
  yield fs_extra_1.default.copy(source, destination, options);
90
90
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-cli",
3
3
  "description": "Genesis Foundation CLI",
4
- "version": "14.237.2-alpha-78ebbc0.0",
4
+ "version": "14.238.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "ab5fa0da6c1d82b0d69754c35801e2b17ae7d018"
69
+ "gitHead": "c0de8cfef19e4e0e11ea5799cb7d43d7bea6ff49"
70
70
  }