create-o2s-app 4.0.0 → 4.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # create-o2s-app
2
2
 
3
+ ## 4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a2d9ea4: CLI scaffolding and logging enhancements (branding header, summary box, docs links, block warnings)
8
+
9
+ ### Patch Changes
10
+
11
+ - 83a3d13: chore(deps): update dependencies
12
+ - 98b2e68: chore(deps): update dependencies
13
+ - Updated dependencies [83a3d13]
14
+ - Updated dependencies [98b2e68]
15
+ - @o2s/telemetry@1.2.2
16
+
3
17
  ## 4.0.0
4
18
 
5
19
  ### Major Changes
@@ -3,7 +3,8 @@ export declare const GITHUB_REPO_URL = "https://github.com/o2sdev/openselfservic
3
3
  export declare const GITHUB_BRANCH = "create-o2s-app/base";
4
4
  export declare const PROJECT_PREFIX = "o2s";
5
5
  export declare const STORYBOOK_URL = "https://storybook-o2s.openselfservice.com/";
6
- export declare const DOCS_URL = "https://docs.openselfservice.com/getting-started";
6
+ export declare const DOCS_URL = "https://www.openselfservice.com/docs/getting-started/installation";
7
+ export declare const DOCS_INTEGRATIONS_URL = "https://www.openselfservice.com/docs/integrations";
7
8
  export declare const BLOCKS_PATH = "packages/blocks";
8
9
  export declare const INTEGRATIONS_PATH = "packages/integrations";
9
10
  export declare const ALWAYS_REMOVE_DIRS: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,eAAe,8CAA8C,CAAC;AAC3E,eAAO,MAAM,aAAa,wBAAwB,CAAC;AACnD,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,aAAa,+CAA+C,CAAC;AAC1E,eAAO,MAAM,QAAQ,qDAAqD,CAAC;AAE3E,eAAO,MAAM,WAAW,oBAAoB,CAAC;AAC7C,eAAO,MAAM,iBAAiB,0BAA0B,CAAC;AAGzD,eAAO,MAAM,kBAAkB,EAAE,MAAM,EAYtC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MAAM,EAAoB,CAAC;AAE7D,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAiDzD,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,eAAe,8CAA8C,CAAC;AAC3E,eAAO,MAAM,aAAa,wBAAwB,CAAC;AACnD,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,aAAa,+CAA+C,CAAC;AAC1E,eAAO,MAAM,QAAQ,sEAAsE,CAAC;AAC5F,eAAO,MAAM,qBAAqB,sDAAsD,CAAC;AAEzF,eAAO,MAAM,WAAW,oBAAoB,CAAC;AAC7C,eAAO,MAAM,iBAAiB,0BAA0B,CAAC;AAGzD,eAAO,MAAM,kBAAkB,EAAE,MAAM,EAYtC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MAAM,EAAoB,CAAC;AAE7D,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAiDzD,CAAC"}
package/dist/constants.js CHANGED
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.INTEGRATION_ENV_VARS = exports.ALWAYS_REMOVE_FILES = exports.ALWAYS_REMOVE_DIRS = exports.INTEGRATIONS_PATH = exports.BLOCKS_PATH = exports.DOCS_URL = exports.STORYBOOK_URL = exports.PROJECT_PREFIX = exports.GITHUB_BRANCH = exports.GITHUB_REPO_URL = void 0;
3
+ exports.INTEGRATION_ENV_VARS = exports.ALWAYS_REMOVE_FILES = exports.ALWAYS_REMOVE_DIRS = exports.INTEGRATIONS_PATH = exports.BLOCKS_PATH = exports.DOCS_INTEGRATIONS_URL = exports.DOCS_URL = exports.STORYBOOK_URL = exports.PROJECT_PREFIX = exports.GITHUB_BRANCH = exports.GITHUB_REPO_URL = void 0;
4
4
  exports.GITHUB_REPO_URL = 'https://github.com/o2sdev/openselfservice';
5
5
  exports.GITHUB_BRANCH = 'create-o2s-app/base';
6
6
  exports.PROJECT_PREFIX = 'o2s';
7
7
  exports.STORYBOOK_URL = 'https://storybook-o2s.openselfservice.com/';
8
- exports.DOCS_URL = 'https://docs.openselfservice.com/getting-started';
8
+ exports.DOCS_URL = 'https://www.openselfservice.com/docs/getting-started/installation';
9
+ exports.DOCS_INTEGRATIONS_URL = 'https://www.openselfservice.com/docs/integrations';
9
10
  exports.BLOCKS_PATH = 'packages/blocks';
10
11
  exports.INTEGRATIONS_PATH = 'packages/integrations';
11
12
  // Directories always removed during scaffolding
package/dist/index.js CHANGED
@@ -43,7 +43,7 @@ const commander_1 = require("commander");
43
43
  const program = new commander_1.Command();
44
44
  program
45
45
  .name('create-o2s-app')
46
- .description('Create a new O2S project with interactive setup wizard')
46
+ .description('Scaffold your custom frontend')
47
47
  .argument('[name]', 'Name of the new project')
48
48
  .option('--directory [directory]', 'Specify the destination directory')
49
49
  .option('--template [template]', 'Template: o2s | dxp | custom')
@@ -51,6 +51,7 @@ program
51
51
  .option('--integrations [integrations]', 'Comma-separated list of integration names (for non-interactive mode)')
52
52
  .option('--skip-install', 'Skip npm install step')
53
53
  .action(async (name, options) => {
54
+ (0, logger_1.printBanner)();
54
55
  telemetry.sendEvent('o2s', 'create-o2s-app', 'create-project');
55
56
  await telemetry.flushEvents();
56
57
  let tempDir;
@@ -69,7 +70,7 @@ program
69
70
  phase = 'scaffold';
70
71
  const { targetDir, uncoveredModules } = await (0, index_1.scaffold)(tempDir, answers, options.skipInstall, options.directory);
71
72
  // Step 4: Print summary
72
- (0, logger_1.printSummary)(targetDir, answers.template, answers.selectedBlocks.length, answers.selectedIntegrations.length, uncoveredModules, options.skipInstall);
73
+ (0, logger_1.printSummary)(targetDir, answers.template, answers.selectedBlocks, answers.selectedIntegrations, uncoveredModules, options.skipInstall);
73
74
  }
74
75
  catch (error) {
75
76
  if (tempDir) {