@storybook/angular 7.6.0-alpha.0 → 7.6.0-alpha.2

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.
@@ -23,7 +23,7 @@ const commandBuilder = (options, context) => {
23
23
  outputDir: 'SBCONFIG_OUTPUT_DIR',
24
24
  configDir: 'SBCONFIG_CONFIG_DIR',
25
25
  });
26
- const { browserTarget, stylePreprocessorOptions, styles, configDir, docs, loglevel, outputDir, quiet, enableProdMode = true, webpackStatsJson, debugWebpack, disableTelemetry, assets, previewUrl, } = options;
26
+ const { browserTarget, stylePreprocessorOptions, styles, configDir, docs, loglevel, outputDir, quiet, enableProdMode = true, webpackStatsJson, debugWebpack, disableTelemetry, assets, previewUrl, sourceMap = false, } = options;
27
27
  const standaloneOptions = {
28
28
  packageJson: (0, read_pkg_up_1.sync)({ cwd: __dirname }).packageJson,
29
29
  configDir,
@@ -39,6 +39,7 @@ const commandBuilder = (options, context) => {
39
39
  ...(stylePreprocessorOptions ? { stylePreprocessorOptions } : {}),
40
40
  ...(styles ? { styles } : {}),
41
41
  ...(assets ? { assets } : {}),
42
+ sourceMap,
42
43
  },
43
44
  tsConfig,
44
45
  webpackStatsJson,
@@ -101,6 +101,11 @@
101
101
  "items": {
102
102
  "$ref": "#/definitions/assetPattern"
103
103
  }
104
+ },
105
+ "sourceMap": {
106
+ "type": ["boolean", "object"],
107
+ "description": "Configure sourcemaps. See: https://angular.io/guide/workspace-config#source-map-configuration",
108
+ "default": false
104
109
  }
105
110
  },
106
111
  "additionalProperties": false,
@@ -30,7 +30,7 @@ const commandBuilder = (options, context) => {
30
30
  });
31
31
  // eslint-disable-next-line no-param-reassign
32
32
  options.port = parseInt(`${options.port}`, 10);
33
- const { browserTarget, stylePreprocessorOptions, styles, ci, configDir, docs, host, https, port, quiet, enableProdMode = false, smokeTest, sslCa, sslCert, sslKey, disableTelemetry, assets, initialPath, open, debugWebpack, loglevel, webpackStatsJson, previewUrl, } = options;
33
+ const { browserTarget, stylePreprocessorOptions, styles, ci, configDir, docs, host, https, port, quiet, enableProdMode = false, smokeTest, sslCa, sslCert, sslKey, disableTelemetry, assets, initialPath, open, debugWebpack, loglevel, webpackStatsJson, previewUrl, sourceMap = false, } = options;
34
34
  const standaloneOptions = {
35
35
  packageJson: (0, read_pkg_up_1.sync)({ cwd: __dirname }).packageJson,
36
36
  ci,
@@ -52,6 +52,7 @@ const commandBuilder = (options, context) => {
52
52
  ...(stylePreprocessorOptions ? { stylePreprocessorOptions } : {}),
53
53
  ...(styles ? { styles } : {}),
54
54
  ...(assets ? { assets } : {}),
55
+ sourceMap,
55
56
  },
56
57
  tsConfig,
57
58
  initialPath,
@@ -130,7 +130,7 @@
130
130
  "description": "URL path to be appended when visiting Storybook for the first time"
131
131
  },
132
132
  "webpackStatsJson": {
133
- "type": "string",
133
+ "type": ["boolean", "string"],
134
134
  "description": "Write Webpack Stats JSON to disk",
135
135
  "default": false
136
136
  },
@@ -142,6 +142,11 @@
142
142
  "type": "string",
143
143
  "description": "Controls level of logging during build. Can be one of: [silly, verbose, info (default), warn, error, silent].",
144
144
  "pattern": "(silly|verbose|info|warn|silent)"
145
+ },
146
+ "sourceMap": {
147
+ "type": ["boolean", "object"],
148
+ "description": "Configure sourcemaps. See: https://angular.io/guide/workspace-config#source-map-configuration",
149
+ "default": false
145
150
  }
146
151
  },
147
152
  "additionalProperties": false,
@@ -1,5 +1,5 @@
1
1
  import { BuilderContext } from '@angular-devkit/architect';
2
- import { AssetPattern, StyleElement, StylePreprocessorOptions } from '@angular-devkit/build-angular/src/builders/browser/schema';
2
+ import { AssetPattern, SourceMapUnion, StyleElement, StylePreprocessorOptions } from '@angular-devkit/build-angular/src/builders/browser/schema';
3
3
  import { LoadOptions, CLIOptions, BuilderOptions } from '@storybook/types';
4
4
  export type StandaloneOptions = CLIOptions & LoadOptions & BuilderOptions & {
5
5
  mode?: 'static' | 'dev';
@@ -9,6 +9,7 @@ export type StandaloneOptions = CLIOptions & LoadOptions & BuilderOptions & {
9
9
  styles?: StyleElement[];
10
10
  stylePreprocessorOptions?: StylePreprocessorOptions;
11
11
  assets?: AssetPattern[];
12
+ sourceMap?: SourceMapUnion;
12
13
  };
13
14
  angularBuilderContext?: BuilderContext | null;
14
15
  tsConfig?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/angular",
3
- "version": "7.6.0-alpha.0",
3
+ "version": "7.6.0-alpha.2",
4
4
  "description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.",
5
5
  "keywords": [
6
6
  "storybook",
@@ -37,20 +37,20 @@
37
37
  "prep": "../../../scripts/prepare/tsc.ts"
38
38
  },
39
39
  "dependencies": {
40
- "@storybook/builder-webpack5": "7.6.0-alpha.0",
41
- "@storybook/cli": "7.6.0-alpha.0",
42
- "@storybook/client-logger": "7.6.0-alpha.0",
43
- "@storybook/core-common": "7.6.0-alpha.0",
44
- "@storybook/core-events": "7.6.0-alpha.0",
45
- "@storybook/core-server": "7.6.0-alpha.0",
46
- "@storybook/core-webpack": "7.6.0-alpha.0",
47
- "@storybook/docs-tools": "7.6.0-alpha.0",
40
+ "@storybook/builder-webpack5": "7.6.0-alpha.2",
41
+ "@storybook/cli": "7.6.0-alpha.2",
42
+ "@storybook/client-logger": "7.6.0-alpha.2",
43
+ "@storybook/core-common": "7.6.0-alpha.2",
44
+ "@storybook/core-events": "7.6.0-alpha.2",
45
+ "@storybook/core-server": "7.6.0-alpha.2",
46
+ "@storybook/core-webpack": "7.6.0-alpha.2",
47
+ "@storybook/docs-tools": "7.6.0-alpha.2",
48
48
  "@storybook/global": "^5.0.0",
49
- "@storybook/manager-api": "7.6.0-alpha.0",
50
- "@storybook/node-logger": "7.6.0-alpha.0",
51
- "@storybook/preview-api": "7.6.0-alpha.0",
52
- "@storybook/telemetry": "7.6.0-alpha.0",
53
- "@storybook/types": "7.6.0-alpha.0",
49
+ "@storybook/manager-api": "7.6.0-alpha.2",
50
+ "@storybook/node-logger": "7.6.0-alpha.2",
51
+ "@storybook/preview-api": "7.6.0-alpha.2",
52
+ "@storybook/telemetry": "7.6.0-alpha.2",
53
+ "@storybook/types": "7.6.0-alpha.2",
54
54
  "@types/node": "^18.0.0",
55
55
  "@types/react": "^16.14.34",
56
56
  "@types/react-dom": "^16.9.14",