@spree/cli 1.0.0 → 1.1.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.
Files changed (67) hide show
  1. package/README.md +2 -2
  2. package/dist/commands/new/app.d.ts +3 -1
  3. package/dist/commands/new/app.d.ts.map +1 -1
  4. package/dist/commands/new/app.js +12 -2
  5. package/dist/commands/new/app.js.map +1 -1
  6. package/dist/domains/build/BuildScript.d.ts +1 -1
  7. package/dist/domains/build/BuildScript.d.ts.map +1 -1
  8. package/dist/domains/dependencies/ComparisonOperator.d.ts +1 -1
  9. package/dist/domains/dependencies/ComparisonOperator.d.ts.map +1 -1
  10. package/dist/domains/dependencies/ComparisonResult.d.ts +1 -1
  11. package/dist/domains/dependencies/ComparisonResult.d.ts.map +1 -1
  12. package/dist/domains/dependencies/VersionCheckResult.d.ts +1 -1
  13. package/dist/domains/dependencies/VersionCheckResult.d.ts.map +1 -1
  14. package/dist/domains/dependencies/VersionCondition.d.ts +1 -1
  15. package/dist/domains/dependencies/VersionCondition.d.ts.map +1 -1
  16. package/dist/domains/dependencies/extractVersion.js +1 -1
  17. package/dist/domains/dependencies/extractVersion.js.map +1 -1
  18. package/dist/domains/git-repository/cloneGitRepository.d.ts +1 -1
  19. package/dist/domains/git-repository/cloneGitRepository.d.ts.map +1 -1
  20. package/dist/domains/git-repository-url/validateGitRepositoryURL.d.ts +1 -1
  21. package/dist/domains/git-repository-url/validateGitRepositoryURL.d.ts.map +1 -1
  22. package/dist/domains/integration/Integration.d.ts +1 -1
  23. package/dist/domains/integration/Integration.d.ts.map +1 -1
  24. package/dist/domains/integration/getIntegration.d.ts +1 -1
  25. package/dist/domains/integration/getIntegration.d.ts.map +1 -1
  26. package/dist/domains/module/Module.d.ts +1 -1
  27. package/dist/domains/module/Module.d.ts.map +1 -1
  28. package/dist/domains/module/Template.d.ts +2 -0
  29. package/dist/domains/module/Template.d.ts.map +1 -1
  30. package/dist/domains/run/RunScript.d.ts +1 -1
  31. package/dist/domains/run/RunScript.d.ts.map +1 -1
  32. package/dist/domains/spree/Options.d.ts +6 -0
  33. package/dist/domains/spree/Options.d.ts.map +1 -0
  34. package/dist/domains/spree/Options.js +3 -0
  35. package/dist/domains/spree/Options.js.map +1 -0
  36. package/dist/domains/spree/Spree.d.ts +1 -1
  37. package/dist/domains/spree/Spree.d.ts.map +1 -1
  38. package/dist/domains/spree/SpreeChoice.d.ts +7 -0
  39. package/dist/domains/spree/SpreeChoice.d.ts.map +1 -0
  40. package/dist/domains/spree/SpreeChoice.js +3 -0
  41. package/dist/domains/spree/SpreeChoice.js.map +1 -0
  42. package/dist/domains/spree/UserOptions.d.ts +6 -0
  43. package/dist/domains/spree/UserOptions.d.ts.map +1 -0
  44. package/dist/domains/spree/UserOptions.js +3 -0
  45. package/dist/domains/spree/UserOptions.js.map +1 -0
  46. package/dist/domains/spree/buildSpreeChoices.d.ts +7 -0
  47. package/dist/domains/spree/buildSpreeChoices.d.ts.map +1 -0
  48. package/dist/domains/spree/buildSpreeChoices.js +28 -0
  49. package/dist/domains/spree/buildSpreeChoices.js.map +1 -0
  50. package/dist/domains/spree/getSpree.d.ts +1 -3
  51. package/dist/domains/spree/getSpree.d.ts.map +1 -1
  52. package/dist/domains/spree/getSpree.js +2 -5
  53. package/dist/domains/spree/getSpree.js.map +1 -1
  54. package/dist/domains/spree/index.d.ts +4 -0
  55. package/dist/domains/spree/index.d.ts.map +1 -1
  56. package/dist/domains/spree/index.js +6 -1
  57. package/dist/domains/spree/index.js.map +1 -1
  58. package/dist/domains/theme/inheritTheme.d.ts +1 -1
  59. package/dist/domains/theme/inheritTheme.d.ts.map +1 -1
  60. package/dist/domains/typescript/Diff.d.ts +1 -1
  61. package/dist/domains/typescript/Diff.d.ts.map +1 -1
  62. package/dist/domains/variables/useVariables.d.ts +1 -1
  63. package/dist/domains/variables/useVariables.d.ts.map +1 -1
  64. package/locales/en-US/translation.json +6 -0
  65. package/oclif.manifest.json +1 -1
  66. package/package.json +2 -2
  67. package/test_app/backend/app/assets/builds/.keep +0 -0
package/README.md CHANGED
@@ -12,7 +12,7 @@ Node 14+ is required to run the CLI. Depending on the chosen Spree setup, you wi
12
12
  - docker-compose
13
13
 
14
14
  ### Spree (no docker)
15
- - ruby = 3.0.3
15
+ - ruby = 3.2.0
16
16
  - vips >= 8.6
17
17
  - gpg
18
18
  - psql
@@ -21,7 +21,7 @@ Node 14+ is required to run the CLI. Depending on the chosen Spree setup, you wi
21
21
  ### Spree (hybrid)
22
22
  - docker >= 20.0
23
23
  - docker-compose
24
- - ruby = 3.0.3
24
+ - ruby = 3.2.0
25
25
  - vips >= 8.6
26
26
  - redis (only needed for running rspec tests)
27
27
 
@@ -2,7 +2,9 @@ import { Command } from '@oclif/core';
2
2
  export default class NewApp extends Command {
3
3
  static description: string;
4
4
  static examples: string[];
5
- static flags: {};
5
+ static flags: {
6
+ beta: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
7
+ };
6
8
  static args: never[];
7
9
  run(): Promise<void>;
8
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/commands/new/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAC;AA4B7C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,OAAO;IACzC,OAAgB,WAAW,SAAoC;IAE/D,OAAgB,QAAQ,WAA2C;IAEnE,OAAgB,KAAK,KAAM;IAE3B,OAAgB,IAAI,UAAM;IAEpB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA8I3B"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/commands/new/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAgB,MAAM,aAAa,CAAC;AA6BpD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,OAAO;IACzC,OAAgB,WAAW,SAAoC;IAE/D,OAAgB,QAAQ,WAA2C;IAEnE,OAAgB,KAAK;;MAInB;IAEF,OAAgB,IAAI,UAAM;IAEpB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAmJ3B"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const core_1 = require("@oclif/core");
5
5
  const fs = tslib_1.__importStar(require("fs"));
6
+ const os_1 = tslib_1.__importDefault(require("os"));
6
7
  const color_1 = tslib_1.__importDefault(require("@oclif/color"));
7
8
  const i18next_1 = require("i18next");
8
9
  const path = tslib_1.__importStar(require("path"));
@@ -22,12 +23,17 @@ const directory_2 = require("../../domains/directory");
22
23
  const validateDependencies_1 = tslib_1.__importDefault(require("../../domains/dependencies/validate/validateDependencies"));
23
24
  class NewApp extends core_1.Command {
24
25
  async run() {
26
+ const { flags } = await this.parse(NewApp);
25
27
  const variables = await (async () => {
26
28
  const projectName = await (0, project_name_1.getProjectName)((0, i18next_1.t)('command.new_app.input.project_name'));
27
29
  return (0, variables_1.useVariables)({ projectName });
28
30
  })();
29
31
  const projectDir = path.resolve(variables.projectName);
30
- const { samples, ...spree } = await (0, spree_1.getSpree)({ message: (0, i18next_1.t)('command.new_app.input.spree') });
32
+ const { samples, ...spree } = await (0, spree_1.getSpree)({
33
+ message: (0, i18next_1.t)('command.new_app.input.spree'),
34
+ includeBeta: flags.beta,
35
+ platform: os_1.default.platform()
36
+ });
31
37
  const { samples: withSamples } = await inquirer_1.default.prompt({
32
38
  message: (0, i18next_1.t)('command.new_app.input.samples'),
33
39
  type: 'confirm',
@@ -149,6 +155,10 @@ class NewApp extends core_1.Command {
149
155
  exports.default = NewApp;
150
156
  NewApp.description = (0, i18next_1.t)('command.new_app.description');
151
157
  NewApp.examples = ['<%= config.bin %> <%= command.id %>'];
152
- NewApp.flags = {};
158
+ NewApp.flags = {
159
+ beta: core_1.Flags.boolean({
160
+ description: (0, i18next_1.t)('command.new_app.flag.beta')
161
+ })
162
+ };
153
163
  NewApp.args = [];
154
164
  //# sour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1 +1 @@
1
- {"version":3,"file":"BuildScript.d.ts","sourceRoot":"","sources":["../../../src/domains/build/BuildScript.ts"],"names":[],"mappings":"AAAA,aAAK,WAAW,GAAG,MAAM,CAAC;AAE1B,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"BuildScript.d.ts","sourceRoot":"","sources":["../../../src/domains/build/BuildScript.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GAAG,MAAM,CAAC;AAE1B,eAAe,WAAW,CAAC"}
@@ -1,3 +1,3 @@
1
- declare type ComparisonOperator = '<=' | '<' | '=' | '>' | '>=';
1
+ type ComparisonOperator = '<=' | '<' | '=' | '>' | '>=';
2
2
  export default ComparisonOperator;
3
3
  //# sourceMappingURL=ComparisonOperator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComparisonOperator.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/ComparisonOperator.ts"],"names":[],"mappings":"AAAA,aAAK,kBAAkB,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AAExD,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"ComparisonOperator.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/ComparisonOperator.ts"],"names":[],"mappings":"AAAA,KAAK,kBAAkB,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AAExD,eAAe,kBAAkB,CAAC"}
@@ -1,3 +1,3 @@
1
- declare type ComparisonResult = -1 | 0 | 1;
1
+ type ComparisonResult = -1 | 0 | 1;
2
2
  export default ComparisonResult;
3
3
  //# sourceMappingURL=ComparisonResult.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComparisonResult.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/ComparisonResult.ts"],"names":[],"mappings":"AAAA,aAAK,gBAAgB,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEnC,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"ComparisonResult.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/ComparisonResult.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEnC,eAAe,gBAAgB,CAAC"}
@@ -1,4 +1,4 @@
1
- declare type DependencyCheckResult = {
1
+ type DependencyCheckResult = {
2
2
  status: 'OK' | 'NOT_FOUND' | 'VERSION_MISMATCH';
3
3
  versionFound?: string;
4
4
  versionRequired: string;
@@ -1 +1 @@
1
- {"version":3,"file":"VersionCheckResult.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/VersionCheckResult.ts"],"names":[],"mappings":"AAAA,aAAK,qBAAqB,GAAG;IAC3B,MAAM,EAAE,IAAI,GAAG,WAAW,GAAG,kBAAkB,CAAC;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAA;AAED,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"VersionCheckResult.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/VersionCheckResult.ts"],"names":[],"mappings":"AAAA,KAAK,qBAAqB,GAAG;IAC3B,MAAM,EAAE,IAAI,GAAG,WAAW,GAAG,kBAAkB,CAAC;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAA;AAED,eAAe,qBAAqB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type ComparisonResult from './ComparisonResult';
2
- declare type VersionCondition = {
2
+ type VersionCondition = {
3
3
  expectedVersion: string | string[];
4
4
  expectedComparisonResults: ComparisonResult[] | ComparisonResult[][];
5
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"VersionCondition.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/VersionCondition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAEvD,aAAK,gBAAgB,GAAG;IACtB,eAAe,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACnC,yBAAyB,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,EAAE,CAAC;CACtE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"VersionCondition.d.ts","sourceRoot":"","sources":["../../../src/domains/dependencies/VersionCondition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAEvD,KAAK,gBAAgB,GAAG;IACtB,eAAe,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACnC,yBAAyB,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,EAAE,CAAC;CACtE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const versionRegExp = /(\d+)(\.\d+)(\.\d+)?/g;
4
4
  const extractVersion = (versionString) => {
5
5
  const regexResult = versionString.trim().match(versionRegExp);
6
- if (!regexResult || !regexResult[0]) {
6
+ if (!regexResult) {
7
7
  throw new Error(`Invalid version string: ${versionString}`);
8
8
  }
9
9
  return regexResult[0];
@@ -1 +1 @@
1
- {"version":3,"file":"extractVersion.js","sourceRoot":"","sources":["../../../src/domains/dependencies/extractVersion.ts"],"names":[],"mappings":";;AAAA,MAAM,aAAa,GAAG,uBAAuB,CAAC;AAE9C,MAAM,cAAc,GAAG,CAAC,aAAqB,EAAU,EAAE;IACvD,MAAM,WAAW,GAAG,aAAa,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAE9D,IAAI,CAAC,WAAW,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE;QACnC,MAAM,IAAI,KAAK,CAAC,2BAA2B,aAAa,EAAE,CAAC,CAAC;KAC7D;IACD,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;AACxB,CAAC,CAAC;AAEF,kBAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"extractVersion.js","sourceRoot":"","sources":["../../../src/domains/dependencies/extractVersion.ts"],"names":[],"mappings":";;AAAA,MAAM,aAAa,GAAG,uBAAuB,CAAC;AAE9C,MAAM,cAAc,GAAG,CAAC,aAAqB,EAAU,EAAE;IACvD,MAAM,WAAW,GAAG,aAAa,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAE9D,IAAI,CAAC,WAAW,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,2BAA2B,aAAa,EAAE,CAAC,CAAC;KAC7D;IACD,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;AACxB,CAAC,CAAC;AAEF,kBAAe,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
- declare type Options = {
1
+ type Options = {
2
2
  dir: string;
3
3
  gitRepositoryURL: string;
4
4
  gitRef: string;
@@ -1 +1 @@
1
- {"version":3,"file":"cloneGitRepository.d.ts","sourceRoot":"","sources":["../../../src/domains/git-repository/cloneGitRepository.ts"],"names":[],"mappings":"AAKA,aAAK,OAAO,GAAG;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gFAAgF;AAChF,QAAA,MAAM,kBAAkB,YAAmB,OAAO,KAAG,QAAQ,IAAI,CA6BhE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"cloneGitRepository.d.ts","sourceRoot":"","sources":["../../../src/domains/git-repository/cloneGitRepository.ts"],"names":[],"mappings":"AAKA,KAAK,OAAO,GAAG;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gFAAgF;AAChF,QAAA,MAAM,kBAAkB,YAAmB,OAAO,KAAG,QAAQ,IAAI,CA6BhE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,4 +1,4 @@
1
- declare type Validation = [valid: true, error: null] | [valid: false, error: Error];
1
+ type Validation = [valid: true, error: null] | [valid: false, error: Error];
2
2
  /** Validates received git repository URL by trying to get its remote info. */
3
3
  declare const validateGitRepositoryURL: (url: string) => Promise<Validation>;
4
4
  export default validateGitRepositoryURL;
@@ -1 +1 @@
1
- {"version":3,"file":"validateGitRepositoryURL.d.ts","sourceRoot":"","sources":["../../../src/domains/git-repository-url/validateGitRepositoryURL.ts"],"names":[],"mappings":"AAIA,aAAK,UAAU,GACX,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,GAC1B,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAEjC,8EAA8E;AAC9E,QAAA,MAAM,wBAAwB,QAAe,MAAM,KAAG,QAAQ,UAAU,CAUvE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"validateGitRepositoryURL.d.ts","sourceRoot":"","sources":["../../../src/domains/git-repository-url/validateGitRepositoryURL.ts"],"names":[],"mappings":"AAIA,KAAK,UAAU,GACX,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,GAC1B,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAEjC,8EAA8E;AAC9E,QAAA,MAAM,wBAAwB,QAAe,MAAM,KAAG,QAAQ,UAAU,CAUvE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Template } from '../module';
2
- declare type Integration = Template & {
2
+ type Integration = Template & {
3
3
  preSpreeBuildScript?: string;
4
4
  };
5
5
  export default Integration;
@@ -1 +1 @@
1
- {"version":3,"file":"Integration.d.ts","sourceRoot":"","sources":["../../../src/domains/integration/Integration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,aAAK,WAAW,GAAG,QAAQ,GAAG;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"Integration.d.ts","sourceRoot":"","sources":["../../../src/domains/integration/Integration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,KAAK,WAAW,GAAG,QAAQ,GAAG;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type Integration from './Integration';
2
- declare type Options = {
2
+ type Options = {
3
3
  message: string;
4
4
  customIntegrationRepositoryMessage: string;
5
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getIntegration.d.ts","sourceRoot":"","sources":["../../../src/domains/integration/getIntegration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAkB7C,aAAK,OAAO,GAAG;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,kCAAkC,EAAE,MAAM,CAAC;CAC5C,CAAC;AAEF,8CAA8C;AAC9C,QAAA,MAAM,cAAc,YAAmB,OAAO,KAAG,QAAQ,WAAW,CA2CnE,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"getIntegration.d.ts","sourceRoot":"","sources":["../../../src/domains/integration/getIntegration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAkB7C,KAAK,OAAO,GAAG;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,kCAAkC,EAAE,MAAM,CAAC;CAC5C,CAAC;AAEF,8CAA8C;AAC9C,QAAA,MAAM,cAAc,YAAmB,OAAO,KAAG,QAAQ,WAAW,CA2CnE,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -5,6 +5,6 @@ export interface Module {
5
5
  template: Template;
6
6
  buildOptions?: Record<string, any>;
7
7
  }
8
- export declare type BootModule = Omit<Module, 'absolutePath'>;
8
+ export type BootModule = Omit<Module, 'absolutePath'>;
9
9
  export default Module;
10
10
  //# sourceMappingURL=Module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../../../src/domains/module/Module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAElC,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpC;AACD,oBAAY,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AACtD,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../../../src/domains/module/Module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAElC,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpC;AACD,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AACtD,eAAe,MAAM,CAAC"}
@@ -8,6 +8,8 @@ export interface Template {
8
8
  runScriptURL?: string;
9
9
  runScriptLocalPath?: string;
10
10
  dependencies?: Record<string, string>;
11
+ beta?: boolean;
12
+ recommendedForPlatforms?: string[];
11
13
  samples?: {
12
14
  buildScriptURL?: string;
13
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Template.d.ts","sourceRoot":"","sources":["../../../src/domains/module/Template.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE;QACR,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAA;CACF;AAED,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Template.d.ts","sourceRoot":"","sources":["../../../src/domains/module/Template.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC;IACnC,OAAO,CAAC,EAAE;QACR,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAA;CACF;AAED,eAAe,QAAQ,CAAC"}
@@ -1,3 +1,3 @@
1
- declare type RunScript = string;
1
+ type RunScript = string;
2
2
  export default RunScript;
3
3
  //# sourceMappingURL=RunScript.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RunScript.d.ts","sourceRoot":"","sources":["../../../src/domains/run/RunScript.ts"],"names":[],"mappings":"AAAA,aAAK,SAAS,GAAG,MAAM,CAAC;AAExB,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"RunScript.d.ts","sourceRoot":"","sources":["../../../src/domains/run/RunScript.ts"],"names":[],"mappings":"AAAA,KAAK,SAAS,GAAG,MAAM,CAAC;AAExB,eAAe,SAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { UserOptions } from '.';
2
+ type Options = UserOptions & {
3
+ message: string;
4
+ };
5
+ export default Options;
6
+ //# sourceMappingURL=Options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../src/domains/spree/Options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AAErC,KAAK,OAAO,GAAG,WAAW,GAAG;IAC3B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Options.js","sourceRoot":"","sources":["../../../src/domains/spree/Options.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import type { Template } from '../module';
2
- declare type Spree = Template & {
2
+ type Spree = Template & {
3
3
  version: string;
4
4
  };
5
5
  export default Spree;
@@ -1 +1 @@
1
- {"version":3,"file":"Spree.d.ts","sourceRoot":"","sources":["../../../src/domains/spree/Spree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,aAAK,KAAK,GAAG,QAAQ,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Spree.d.ts","sourceRoot":"","sources":["../../../src/domains/spree/Spree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,KAAK,KAAK,GAAG,QAAQ,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Spree } from '.';
2
+ type SpreeChoice = {
3
+ name: string;
4
+ value: Spree;
5
+ };
6
+ export default SpreeChoice;
7
+ //# sourceMappingURL=SpreeChoice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpreeChoice.d.ts","sourceRoot":"","sources":["../../../src/domains/spree/SpreeChoice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE/B,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SpreeChoice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpreeChoice.js","sourceRoot":"","sources":["../../../src/domains/spree/SpreeChoice.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ type UserOptions = {
2
+ platform: string;
3
+ includeBeta: boolean;
4
+ };
5
+ export default UserOptions;
6
+ //# sourceMappingURL=UserOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserOptions.d.ts","sourceRoot":"","sources":["../../../src/domains/spree/UserOptions.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=UserOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserOptions.js","sourceRoot":"","sources":["../../../src/domains/spree/UserOptions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { UserOptions, Spree } from '.';
2
+ export declare const buildSpreeChoices: (templates: Spree[], options: UserOptions) => {
3
+ name: string;
4
+ value: Spree;
5
+ }[];
6
+ export default buildSpreeChoices;
7
+ //# sourceMappingURL=buildSpreeChoices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildSpreeChoices.d.ts","sourceRoot":"","sources":["../../../src/domains/spree/buildSpreeChoices.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAe,MAAM,GAAG,CAAC;AASzD,eAAO,MAAM,iBAAiB,cAAe,KAAK,EAAE,WAAW,WAAW;;;GAkBzE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildSpreeChoices = void 0;
4
+ const i18next_1 = require("i18next");
5
+ const filterTemplates = (templates, includeBeta) => {
6
+ if (includeBeta)
7
+ return templates;
8
+ return templates.filter((e) => !e.beta);
9
+ };
10
+ const buildSpreeChoices = (templates, options) => {
11
+ const { includeBeta, platform } = options;
12
+ const filteredTemplates = filterTemplates(templates, includeBeta);
13
+ const choices = filteredTemplates.map((template) => ({
14
+ name: template.name,
15
+ value: template
16
+ }));
17
+ const recommendedChoiceIndex = choices.findIndex((e) => { var _a; return (_a = e.value.recommendedForPlatforms) === null || _a === void 0 ? void 0 : _a.includes(platform); });
18
+ if (recommendedChoiceIndex !== -1) {
19
+ const recommendedChoice = choices[recommendedChoiceIndex];
20
+ recommendedChoice.name += ` (${(0, i18next_1.t)('domain.spree.recommended')})`;
21
+ choices.splice(recommendedChoiceIndex, 1);
22
+ choices.unshift(recommendedChoice);
23
+ }
24
+ return choices;
25
+ };
26
+ exports.buildSpreeChoices = buildSpreeChoices;
27
+ exports.default = exports.buildSpreeChoices;
28
+ //# sourceMappingURL=buildSpreeChoices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildSpreeChoices.js","sourceRoot":"","sources":["../../../src/domains/spree/buildSpreeChoices.ts"],"names":[],"mappings":";;;AAAA,qCAA4B;AAI5B,MAAM,eAAe,GAAG,CAAC,SAAkB,EAAE,WAAoB,EAAE,EAAE;IACnE,IAAI,WAAW;QAAE,OAAO,SAAS,CAAC;IAElC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC,CAAC;AAEK,MAAM,iBAAiB,GAAG,CAAC,SAAkB,EAAE,OAAoB,EAAE,EAAE;IAC5E,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;IAC1C,MAAM,iBAAiB,GAAG,eAAe,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAElE,MAAM,OAAO,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QACnD,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC,CAAC;IAEJ,MAAM,sBAAsB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,WAAC,OAAA,MAAA,CAAC,CAAC,KAAK,CAAC,uBAAuB,0CAAE,QAAQ,CAAC,QAAQ,CAAC,CAAA,EAAA,CAAC,CAAC;IAC7G,IAAI,sBAAsB,KAAK,CAAC,CAAC,EAAE;QACjC,MAAM,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,CAAgB,CAAC;QACzE,iBAAiB,CAAC,IAAI,IAAI,KAAK,IAAA,WAAC,EAAC,0BAA0B,CAAC,GAAG,CAAC;QAChE,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC,CAAC,CAAC;QAC1C,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;KACpC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAlBW,QAAA,iBAAiB,qBAkB5B;AAEF,kBAAe,yBAAiB,CAAC"}
@@ -1,7 +1,5 @@
1
1
  import type { Spree } from '.';
2
- declare type Options = {
3
- message: string;
4
- };
2
+ import type { Options } from '.';
5
3
  /** Gets the integration from user's input. */
6
4
  declare const getSpree: (options: Options) => Promise<Spree>;
7
5
  export default getSpree;
@@ -1 +1 @@
1
- {"version":3,"file":"getSpree.d.ts","sourceRoot":"","sources":["../../../src/domains/spree/getSpree.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAO/B,aAAK,OAAO,GAAG;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,8CAA8C;AAC9C,QAAA,MAAM,QAAQ,YAAmB,OAAO,KAAG,QAAQ,KAAK,CAqBvD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"getSpree.d.ts","sourceRoot":"","sources":["../../../src/domains/spree/getSpree.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AAMjC,8CAA8C;AAC9C,QAAA,MAAM,QAAQ,YAAmB,OAAO,KAAG,QAAQ,KAAK,CAkBvD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -6,11 +6,8 @@ const _1 = require(".");
6
6
  /** Gets the integration from user's input. */
7
7
  const getSpree = async (options) => {
8
8
  const { message } = options;
9
- const spreeTemplates = await (0, _1.fetchSpreeTemplates)();
10
- const choices = spreeTemplates.map((spree) => ({
11
- name: spree.name,
12
- value: spree
13
- }));
9
+ const templates = await (0, _1.fetchSpreeTemplates)();
10
+ const choices = (0, _1.buildSpreeChoices)(templates, options);
14
11
  const answers = await inquirer_1.default.prompt({
15
12
  choices,
16
13
  message,
@@ -1 +1 @@
1
- {"version":3,"file":"getSpree.js","sourceRoot":"","sources":["../../../src/domains/spree/getSpree.ts"],"names":[],"mappings":";;;AAAA,gEAAgC;AAEhC,wBAAwC;AAUxC,8CAA8C;AAC9C,MAAM,QAAQ,GAAG,KAAK,EAAE,OAAgB,EAAkB,EAAE;IAC1D,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAE5B,MAAM,cAAc,GAAG,MAAM,IAAA,sBAAmB,GAAE,CAAC;IAEnD,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAC7C,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK,EAAE,KAAK;KACb,CAAC,CAAC,CAAC;IAEJ,MAAM,OAAO,GAAG,MAAM,kBAAQ,CAAC,MAAM,CAAU;QAC7C,OAAO;QACP,OAAO;QACP,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,OAAO;KACd,CAAC,CAAC;IACH,IAAI,OAAO,CAAC,KAAK,CAAC,gBAAgB;QAAE,OAAO,OAAO,CAAC,KAAK,CAAC;IAEzD,OAAO;QACL,GAAG,OAAO,CAAC,KAAK;KACjB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"getSpree.js","sourceRoot":"","sources":["../../../src/domains/spree/getSpree.ts"],"names":[],"mappings":";;;AAAA,gEAAgC;AAEhC,wBAA2D;AAO3D,8CAA8C;AAC9C,MAAM,QAAQ,GAAG,KAAK,EAAE,OAAgB,EAAkB,EAAE;IAC1D,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAE5B,MAAM,SAAS,GAAG,MAAM,IAAA,sBAAmB,GAAE,CAAC;IAE9C,MAAM,OAAO,GAAG,IAAA,oBAAiB,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAEtD,MAAM,OAAO,GAAG,MAAM,kBAAQ,CAAC,MAAM,CAAU;QAC7C,OAAO;QACP,OAAO;QACP,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,OAAO;KACd,CAAC,CAAC;IACH,IAAI,OAAO,CAAC,KAAK,CAAC,gBAAgB;QAAE,OAAO,OAAO,CAAC,KAAK,CAAC;IAEzD,OAAO;QACL,GAAG,OAAO,CAAC,KAAK;KACjB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -1,4 +1,8 @@
1
1
  export { default as fetchSpreeTemplates } from './fetchSpreeTemplates';
2
2
  export { default as getSpree } from './getSpree';
3
+ export { default as buildSpreeChoices } from './buildSpreeChoices';
4
+ export { default as Options } from './Options';
5
+ export { default as UserOptions } from './UserOptions';
3
6
  export { default as Spree } from './Spree';
7
+ export { default as SpreeChoice } from './SpreeChoice';
4
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/spree/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/spree/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -3,10 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getSpree = exports.fetchSpreeTemplates = void 0;
6
+ exports.buildSpreeChoices = exports.getSpree = exports.fetchSpreeTemplates = void 0;
7
7
  var fetchSpreeTemplates_1 = require("./fetchSpreeTemplates");
8
8
  Object.defineProperty(exports, "fetchSpreeTemplates", { enumerable: true, get: function () { return __importDefault(fetchSpreeTemplates_1).default; } });
9
9
  var getSpree_1 = require("./getSpree");
10
10
  Object.defineProperty(exports, "getSpree", { enumerable: true, get: function () { return __importDefault(getSpree_1).default; } });
11
+ var buildSpreeChoices_1 = require("./buildSpreeChoices");
12
+ Object.defineProperty(exports, "buildSpreeChoices", { enumerable: true, get: function () { return __importDefault(buildSpreeChoices_1).default; } });
13
+ var Options_1 = require("./Options");
14
+ var UserOptions_1 = require("./UserOptions");
11
15
  var Spree_1 = require("./Spree");
16
+ var SpreeChoice_1 = require("./SpreeChoice");
12
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domains/spree/index.ts"],"names":[],"mappings":";;;;;;AAAA,6DAAuE;AAA9D,2IAAA,OAAO,OAAuB;AACvC,uCAAiD;AAAxC,qHAAA,OAAO,OAAY;AAC5B,iCAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domains/spree/index.ts"],"names":[],"mappings":";;;;;;AAAA,6DAAuE;AAA9D,2IAAA,OAAO,OAAuB;AACvC,uCAAiD;AAAxC,qHAAA,OAAO,OAAY;AAC5B,yDAAkE;AAAzD,uIAAA,OAAO,OAAqB;AACrC,qCAA+C;AAC/C,6CAAuD;AACvD,iCAA2C;AAC3C,6CAAuD"}
@@ -1,4 +1,4 @@
1
- declare type Options = {
1
+ type Options = {
2
2
  projectPath: string;
3
3
  integrationPath: string;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"inheritTheme.d.ts","sourceRoot":"","sources":["../../../src/domains/theme/inheritTheme.ts"],"names":[],"mappings":"AAUA,aAAK,OAAO,GAAG;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,YAAY,YAAmB,OAAO,kBAkC3C,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"inheritTheme.d.ts","sourceRoot":"","sources":["../../../src/domains/theme/inheritTheme.ts"],"names":[],"mappings":"AAUA,KAAK,OAAO,GAAG;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,YAAY,YAAmB,OAAO,kBAkC3C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,3 +1,3 @@
1
- declare type Diff<T, U> = T extends U ? never : T;
1
+ type Diff<T, U> = T extends U ? never : T;
2
2
  export default Diff;
3
3
  //# sourceMappingURL=Diff.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Diff.d.ts","sourceRoot":"","sources":["../../../src/domains/typescript/Diff.ts"],"names":[],"mappings":"AACA,aAAK,IAAI,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;AAE1C,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Diff.d.ts","sourceRoot":"","sources":["../../../src/domains/typescript/Diff.ts"],"names":[],"mappings":"AACA,KAAK,IAAI,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;AAE1C,eAAe,IAAI,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { Variables } from '.';
2
2
  import type { Diff } from '../typescript';
3
3
  declare const defaultVariables: Omit<Variables, 'projectName'>;
4
- declare type UserVariables = Partial<typeof defaultVariables> & Pick<Variables, Diff<keyof Variables, keyof typeof defaultVariables>>;
4
+ type UserVariables = Partial<typeof defaultVariables> & Pick<Variables, Diff<keyof Variables, keyof typeof defaultVariables>>;
5
5
  declare const useVariables: (userVariables: UserVariables) => Variables;
6
6
  export default useVariables;
7
7
  //# sourceMappingURL=useVariables.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useVariables.d.ts","sourceRoot":"","sources":["../../../src/domains/variables/useVariables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AACnC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,QAAA,MAAM,gBAAgB,EAAE,IAAI,CAAC,SAAS,EAAE,aAAa,CAKpD,CAAC;AAEF,aAAK,aAAa,GAAG,OAAO,CAAC,OAAO,gBAAgB,CAAC,GACnD,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,SAAS,EAAE,MAAM,OAAO,gBAAgB,CAAC,CAAC,CAAC;AAExE,QAAA,MAAM,YAAY,kBAAmB,aAAa,KAAG,SASpD,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"useVariables.d.ts","sourceRoot":"","sources":["../../../src/domains/variables/useVariables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AACnC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,QAAA,MAAM,gBAAgB,EAAE,IAAI,CAAC,SAAS,EAAE,aAAa,CAKpD,CAAC;AAEF,KAAK,aAAa,GAAG,OAAO,CAAC,OAAO,gBAAgB,CAAC,GACnD,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,SAAS,EAAE,MAAM,OAAO,gBAAgB,CAAC,CAAC,CAAC;AAExE,QAAA,MAAM,YAAY,kBAAmB,aAAa,KAAG,SASpD,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -2,6 +2,9 @@
2
2
  "command": {
3
3
  "new_app": {
4
4
  "description": "Generates a Spree project with storefront and backend modules.",
5
+ "flag": {
6
+ "beta": "Includes configurations that are currently in beta"
7
+ },
5
8
  "input": {
6
9
  "project_name": "What's your project name?",
7
10
  "integration": "Choose a storefront:",
@@ -47,6 +50,9 @@
47
50
  "is_invalid": "Please input a valid git repository URL.",
48
51
  "was_not_found": "Couldn't locate git repository with the received URL.",
49
52
  "suggestion": "The protocol isn't supported. Use \"{{ suggestion }}\" instead?"
53
+ },
54
+ "spree": {
55
+ "recommended": "Recommended"
50
56
  }
51
57
  }
52
58
  }
@@ -1 +1 @@
1
- {"version":"1.0.0","commands":{"new:app":{"id":"new:app","strict":true,"pluginName":"@spree/cli","pluginAlias":"@spree/cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{},"args":[],"_globalFlags":{}},"start:app":{"id":"start:app","strict":true,"pluginName":"@spree/cli","pluginAlias":"@spree/cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{},"args":[],"_globalFlags":{}}}}
1
+ {"version":"1.1.0","commands":{"new:app":{"id":"new:app","strict":true,"pluginName":"@spree/cli","pluginAlias":"@spree/cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"beta":{"name":"beta","type":"boolean","allowNo":false}},"args":[],"_globalFlags":{}},"start:app":{"id":"start:app","strict":true,"pluginName":"@spree/cli","pluginAlias":"@spree/cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{},"args":[],"_globalFlags":{}}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spree/cli",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Spree's CLI that allows for setting up the store with selected backend template and front-end integration",
5
5
  "bin": "./bin/run",
6
6
  "homepage": "https://github.com/upsidelab/spree_cli_internal",
@@ -52,7 +52,7 @@
52
52
  "oclif": "^3.0.1",
53
53
  "ts-jest": "^28.0.5",
54
54
  "ts-node": "^10.7.0",
55
- "typescript": "^4.6.4"
55
+ "typescript": "^4.9.3"
56
56
  },
57
57
  "oclif": {
58
58
  "bin": "@spree/cli",
File without changes