@ms-cloudpack/storybook-builder 0.7.11 → 0.7.12
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCloudpackContext.d.ts","sourceRoot":"","sources":["../src/createCloudpackContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,OAAO,EAAE,MAAM,0BAA0B,CAAC;AActF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAMhD,oCAAoC;AACpC,wBAAsB,sBAAsB,CAAC,OAAO,EAAE;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,GAAG,OAAO,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"createCloudpackContext.d.ts","sourceRoot":"","sources":["../src/createCloudpackContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,OAAO,EAAE,MAAM,0BAA0B,CAAC;AActF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAMhD,oCAAoC;AACpC,wBAAsB,sBAAsB,CAAC,OAAO,EAAE;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,GAAG,OAAO,CAAC,OAAO,CAAC,CAmEnB"}
|
|
@@ -54,6 +54,10 @@ export async function createCloudpackContext(options) {
|
|
|
54
54
|
telemetryClient,
|
|
55
55
|
taskRunner: new TaskRunner(),
|
|
56
56
|
additionalPaths: overlayPath ? [overlayPath] : undefined,
|
|
57
|
+
// Allow setting the cache path with an environment variable for E2E tests, since the storybook CLI
|
|
58
|
+
// doesn't seem to allow passing extra args through.
|
|
59
|
+
// eslint-disable-next-line no-restricted-properties -- Storybook-specific environment variable
|
|
60
|
+
cachePath: process.env.CLOUDPACK_CACHE_PATH,
|
|
57
61
|
});
|
|
58
62
|
// TODO: Get options and enable this.
|
|
59
63
|
// 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,GAAG,gBAAgB,CAAC;IAEtC,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC;IAEzC,6BAA6B;IAC7B,qCAAqC;IAErC,iEAAiE;IACjE,MAAM,QAAQ,GAAG,IAAI,YAAY,CAAC;QAChC,WAAW,EAAE,uBAAuB;QACpC,OAAO,EAAE,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;Q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,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,eAAe,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS;QACxD,mGAAmG;QACnG,oDAAoD;QACpD,+FAA+F;QAC/F,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB;KAC5C,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 additionalPaths: overlayPath ? [overlayPath] : undefined,\n // Allow setting the cache path with an environment variable for E2E tests, since the storybook CLI\n // doesn't seem to allow passing extra args through.\n // eslint-disable-next-line no-restricted-properties -- Storybook-specific environment variable\n cachePath: process.env.CLOUDPACK_CACHE_PATH,\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.
|
|
3
|
+
"version": "0.7.12",
|
|
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.63.
|
|
26
|
-
"@ms-cloudpack/app-server": "^0.18.
|
|
25
|
+
"@ms-cloudpack/api-server": "^0.63.9",
|
|
26
|
+
"@ms-cloudpack/app-server": "^0.18.12",
|
|
27
27
|
"@ms-cloudpack/common-types": "^0.24.20",
|
|
28
28
|
"@ms-cloudpack/config": "^0.35.8",
|
|
29
29
|
"@ms-cloudpack/environment": "^0.1.1",
|
|
30
|
-
"@ms-cloudpack/overlay": "^0.19.
|
|
30
|
+
"@ms-cloudpack/overlay": "^0.19.7",
|
|
31
31
|
"@ms-cloudpack/package-utilities": "^12.3.10",
|
|
32
32
|
"@ms-cloudpack/path-string-parsing": "^1.2.7",
|
|
33
33
|
"@ms-cloudpack/path-utilities": "^3.1.5",
|