@ms-cloudpack/storybook-builder 0.7.2 → 0.7.3

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.
@@ -53,7 +53,7 @@ export async function createCloudpackContext(options) {
53
53
  reporter,
54
54
  telemetryClient,
55
55
  taskRunner: new TaskRunner(),
56
- overlayPath,
56
+ additionalPaths: overlayPath ? [overlayPath] : undefined,
57
57
  });
58
58
  // TODO: Get options and enable this.
59
59
  // Increment the session version if caching is disabled.
@@ -1 +1 @@
1
- {"version":3,"file":"createCloudpackContext.js","sourceRoot":"","sources":["../src/createCloudpackContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAgB,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EACL,IAAI,EACJ,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,YAAY,EACZ,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAEhE,oCAAoC;AACpC,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,OAG5C;IACC,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAC9C,MAAM,EAAE,QAAQ,EAAE,G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AAS;QACzF,WAAW,EAAE,WAAW;KACzB,CAAC,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC;IAElC,IAAI,WAAW,GAAG,MAAM,OAAO,CAAC,uBAAuB,EAAE,UAAU,CAAC,CAAC;IAErE,wGAAwG;IACxG,uGAAuG;IACvG,IAAI,WAAW,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,CAAC;QACnD,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,uCAAuC,CAAC,CAAC;IAClF,CAAC;IAED,MAAM,UAAU,GAAG,MAAM,gBAAgB,CAAC;QACxC,MAAM;QACN,QAAQ;QACR,eAAe;QACf,UAAU,EAAE,IAAI,UAAU,EAAE;QAC5B,WAAW;KACZ,CAAC,CAAC;IAEH,qCAAqC;IACrC,wDAAwD;IACxD,iCAAiC;IACjC,uCAAuC;IACvC,IAAI;IAEJ,OAAO,UAAU,CAAC;AACpB,CAAC","sourcesContent":["import { createApiContext, TaskRunner, type Context } from '@ms-cloudpack/api-server';\nimport { readConfig } from '@ms-cloudpack/config';\nimport { environmentInfo } from '@ms-cloudpack/environment';\nimport { getDisplayVersion, getVersion } from '@ms-cloudpack/package-utilities';\nimport { isExternalPackage, resolve } from '@ms-cloudpack/path-utilities';\nimport {\n bold,\n debugLoggingConfig,\n defaultLoggingConfig,\n noLoggingConfig,\n TaskReporter,\n verboseLoggingConfig,\n} from '@ms-cloudpack/task-reporter';\nimport { startTelemetry } from '@ms-cloudpack/telemetry';\nimport type { Options } from '@storybook/types';\nimport path from 'path';\nimport { fileURLToPath } from 'url';\n\nconst currentDir = path.dirname(fileURLToPath(import.meta.url));\n\n/** Create the Cloudpack context. */\nexport async function createCloudpackContext(options: {\n appPath: string;\n storybookOptions: Options;\n}): Promise<Context> {\n const { appPath, storybookOptions } = options;\n const { loglevel } = storybookOptions;\n\n const config = await readConfig(appPath);\n\n // TODO: Move to won package.\n // runPrerequisites(config, appPath);\n\n // This part should be almost identical to the cli start command.\n const reporter = new TaskReporter({\n productName: 'Storybook + Cloudpack',\n version: getDisplayVersion(import.meta.url),\n description: () => `Running \"${bold('storybook')}\"`,\n helpMessage: config.helpMessage,\n // TODO: Get options and enable this.\n plainTextMode: storybookOptions.ci,\n ...(loglevel === 'debug'\n ? debugLoggingConfig\n : loglevel === 'verbose'\n ? verboseLoggingConfig\n : storybookOptions.quiet || loglevel === 'quiet'\n ? noLoggingConfig\n : defaultLoggingConfig),\n });\n\n const connectionString = storybookOptions.disableTelemetry\n ? undefined\n : config.telemetry?.connectionString || environmentInfo.cloudpack.telemetryConnectionString;\n\n if (loglevel !== 'debug') {\n reporter.ignoreLogMessage('ApplicationInsights:');\n }\n\n const telemetryClient = await startTelemetry({\n productVersion: getVersion(import.meta.url),\n logLevel: loglevel === 'verbose' ? 'VERBOSE' : loglevel === 'debug' ? 'DEBUG' : undefined,\n serviceName: 'storybook',\n }).createClient(connectionString);\n\n let overlayPath = await resolve('@ms-cloudpack/overlay', currentDir);\n\n // If overlay is an internal package, resolve the overlay from the current package's linked node modules\n // to \"externalize\" it, so that we always use the bundled version of the overlay instead of the source.\n if (overlayPath && !isExternalPackage(overlayPath)) {\n overlayPath = path.resolve(currentDir, '../node_modules/@ms-cloudpack/overlay');\n }\n\n const apiContext = await createApiContext({\n config,\n reporter,\n telemetryClient,\n taskRunner: new TaskRunner(),\n overlayPath,\n });\n\n // TODO: Get options and enable this.\n // Increment the session version if caching is disabled.\n // if (options.cache === false) {\n // session.incrementSessionVersion();\n // }\n\n return apiContext;\n}\n"]}
1
+ {"version":3,"file":"createCloudpackContext.js","sourceRoot":"","sources":["../src/createCloudpackContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAgB,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EA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AAuC;IACvC,IAAI;IAEJ,OAAO,UAAU,CAAC;AACpB,CAAC","sourcesContent":["import { createApiContext, TaskRunner, type Context } from '@ms-cloudpack/api-server';\nimport { readConfig } from '@ms-cloudpack/config';\nimport { environmentInfo } from '@ms-cloudpack/environment';\nimport { getDisplayVersion, getVersion } from '@ms-cloudpack/package-utilities';\nimport { isExternalPackage, resolve } from '@ms-cloudpack/path-utilities';\nimport {\n bold,\n debugLoggingConfig,\n defaultLoggingConfig,\n noLoggingConfig,\n TaskReporter,\n verboseLoggingConfig,\n} from '@ms-cloudpack/task-reporter';\nimport { startTelemetry } from '@ms-cloudpack/telemetry';\nimport type { Options } from '@storybook/types';\nimport path from 'path';\nimport { fileURLToPath } from 'url';\n\nconst currentDir = path.dirname(fileURLToPath(import.meta.url));\n\n/** Create the Cloudpack context. */\nexport async function createCloudpackContext(options: {\n appPath: string;\n storybookOptions: Options;\n}): Promise<Context> {\n const { appPath, storybookOptions } = options;\n const { loglevel } = storybookOptions;\n\n const config = await readConfig(appPath);\n\n // TODO: Move to won package.\n // runPrerequisites(config, appPath);\n\n // This part should be almost identical to the cli start command.\n const reporter = new TaskReporter({\n productName: 'Storybook + Cloudpack',\n version: getDisplayVersion(import.meta.url),\n description: () => `Running \"${bold('storybook')}\"`,\n helpMessage: config.helpMessage,\n // TODO: Get options and enable this.\n plainTextMode: storybookOptions.ci,\n ...(loglevel === 'debug'\n ? debugLoggingConfig\n : loglevel === 'verbose'\n ? verboseLoggingConfig\n : storybookOptions.quiet || loglevel === 'quiet'\n ? noLoggingConfig\n : defaultLoggingConfig),\n });\n\n const connectionString = storybookOptions.disableTelemetry\n ? undefined\n : config.telemetry?.connectionString || environmentInfo.cloudpack.telemetryConnectionString;\n\n if (loglevel !== 'debug') {\n reporter.ignoreLogMessage('ApplicationInsights:');\n }\n\n const telemetryClient = await startTelemetry({\n productVersion: getVersion(import.meta.url),\n logLevel: loglevel === 'verbose' ? 'VERBOSE' : loglevel === 'debug' ? 'DEBUG' : undefined,\n serviceName: 'storybook',\n }).createClient(connectionString);\n\n let overlayPath = await resolve('@ms-cloudpack/overlay', currentDir);\n\n // If overlay is an internal package, resolve the overlay from the current package's linked node modules\n // to \"externalize\" it, so that we always use the bundled version of the overlay instead of the source.\n if (overlayPath && !isExternalPackage(overlayPath)) {\n overlayPath = path.resolve(currentDir, '../node_modules/@ms-cloudpack/overlay');\n }\n\n const apiContext = await createApiContext({\n config,\n reporter,\n telemetryClient,\n taskRunner: new TaskRunner(),\n additionalPaths: overlayPath ? [overlayPath] : undefined,\n });\n\n // TODO: Get options and enable this.\n // Increment the session version if caching is disabled.\n // if (options.cache === false) {\n // session.incrementSessionVersion();\n // }\n\n return apiContext;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/storybook-builder",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "A tool for building storybook bundles for the cloudpack ecosystem.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,12 +22,12 @@
22
22
  "lint": "cloudpack-scripts lint"
23
23
  },
24
24
  "dependencies": {
25
- "@ms-cloudpack/api-server": "^0.62.1",
26
- "@ms-cloudpack/app-server": "^0.18.2",
25
+ "@ms-cloudpack/api-server": "^0.63.0",
26
+ "@ms-cloudpack/app-server": "^0.18.3",
27
27
  "@ms-cloudpack/common-types": "^0.24.17",
28
28
  "@ms-cloudpack/config": "^0.35.3",
29
29
  "@ms-cloudpack/environment": "^0.1.1",
30
- "@ms-cloudpack/overlay": "^0.18.1",
30
+ "@ms-cloudpack/overlay": "^0.18.2",
31
31
  "@ms-cloudpack/package-utilities": "^12.3.5",
32
32
  "@ms-cloudpack/path-string-parsing": "^1.2.7",
33
33
  "@ms-cloudpack/path-utilities": "^3.1.2",