@storybook/angular 6.5.9 → 7.0.0-alpha.10
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/dist/{ts3.9 → types}/builders/build-storybook/index.d.ts +1 -1
- package/dist/types/builders/build-storybook/index.js +56 -0
- package/dist/{ts3.9 → types}/builders/build-storybook/schema.json +0 -0
- package/dist/{ts3.9 → types}/builders/builders.json +0 -0
- package/dist/{ts3.9 → types}/builders/start-storybook/index.d.ts +1 -1
- package/dist/types/builders/start-storybook/index.js +64 -0
- package/dist/{ts3.9 → types}/builders/start-storybook/schema.json +0 -0
- package/dist/{ts3.9 → types}/builders/utils/build-standalone-errors-handler.d.ts +0 -0
- package/dist/{ts3.9 → types}/builders/utils/build-standalone-errors-handler.js +5 -5
- package/dist/{ts3.9 → types}/builders/utils/run-compodoc.d.ts +0 -0
- package/dist/{ts3.9 → types}/builders/utils/run-compodoc.js +9 -4
- package/dist/types/builders/utils/standalone-options.d.ts +12 -0
- package/dist/{ts3.9/client/docs/types.js → types/builders/utils/standalone-options.js} +0 -0
- package/dist/{ts3.9/client/preview/angular/components → types/client/angular}/app.component.d.ts +1 -1
- package/dist/{ts3.9/client/preview/angular/components → types/client/angular}/app.component.js +5 -5
- package/dist/{ts3.9/client/preview → types/client}/angular/app.token.d.ts +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular/app.token.js +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular/helpers.d.ts +1 -1
- package/dist/{ts3.9/client/preview → types/client}/angular/helpers.js +7 -7
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/AbstractRenderer.d.ts +1 -2
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/AbstractRenderer.js +40 -48
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/CanvasRenderer.d.ts +1 -2
- package/dist/types/client/angular-beta/CanvasRenderer.js +16 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/ComputesTemplateFromComponent.d.ts +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/ComputesTemplateFromComponent.js +10 -8
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/DocsRenderer.d.ts +1 -2
- package/dist/types/client/angular-beta/DocsRenderer.js +41 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/RendererFactory.d.ts +0 -0
- package/dist/types/client/angular-beta/RendererFactory.js +55 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookModule.d.ts +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookModule.js +18 -17
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookProvider.d.ts +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookProvider.js +2 -1
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookWrapperComponent.d.ts +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/StorybookWrapperComponent.js +11 -10
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/utils/NgComponentAnalyzer.d.ts +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/utils/NgComponentAnalyzer.js +24 -13
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/utils/NgModulesAnalyzer.d.ts +0 -0
- package/dist/{ts3.9/client/preview → types/client}/angular-beta/utils/NgModulesAnalyzer.js +3 -2
- package/dist/{ts3.9/client/preview → types/client}/config.d.ts +1 -1
- package/dist/{ts3.9/client/preview → types/client}/config.js +1 -1
- package/dist/{ts3.9/client/preview → types/client}/decorateStory.d.ts +1 -1
- package/dist/{ts3.9/client/preview → types/client}/decorateStory.js +11 -6
- package/dist/{ts3.9/client/preview → types/client}/decorators.d.ts +1 -2
- package/dist/{ts3.9/client/preview → types/client}/decorators.js +23 -11
- package/dist/{ts3.9 → types}/client/docs/compodoc.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/docs/compodoc.js +47 -34
- package/dist/{ts3.9 → types}/client/docs/config.d.ts +3 -4
- package/dist/{ts3.9 → types}/client/docs/config.js +0 -2
- package/dist/{ts3.9 → types}/client/docs/index.d.ts +0 -0
- package/dist/{ts3.9 → types}/client/docs/index.js +6 -2
- package/dist/{ts3.9 → types}/client/docs/sourceDecorator.d.ts +2 -2
- package/dist/{ts3.9 → types}/client/docs/sourceDecorator.js +10 -9
- package/dist/{ts3.9 → types}/client/docs/types.d.ts +0 -0
- package/dist/{ts3.9/client/preview → types/client/docs}/types.js +0 -0
- package/dist/{ts3.9/client/preview/angular-polyfills.d.ts → types/client/globals.d.ts} +0 -10
- package/dist/{ts3.9/client/preview/angular-polyfills.js → types/client/globals.js} +7 -1
- package/dist/types/client/index.d.ts +5 -0
- package/dist/types/client/index.js +25 -0
- package/dist/{ts3.9/client/preview/index.d.ts → types/client/public-api.d.ts} +2 -4
- package/dist/types/client/public-api.js +43 -0
- package/dist/{ts3.9/client/preview/types-6-0.d.ts → types/client/public-types.d.ts} +4 -19
- package/dist/{ts3.9/client/preview/types-6-0.js → types/client/public-types.js} +0 -0
- package/dist/{ts3.9/client/preview → types/client}/render.d.ts +1 -1
- package/dist/types/client/render.js +24 -0
- package/dist/{ts3.9/client/preview → types/client}/types.d.ts +13 -0
- package/dist/{ts3.9/client/preview/types-7-0.js → types/client/types.js} +0 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/{ts3.9/public_api.js → types/index.js} +8 -3
- package/dist/types/preset.d.ts +6 -0
- package/dist/types/preset.js +36 -0
- package/dist/types/renderer.d.ts +4 -0
- package/dist/{ts3.9 → types}/renderer.js +5 -4
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/empty-projects-entry/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/src/tsconfig.app.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/minimal-config/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/src/tsconfig.app.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/some-config/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/tsconfig.app.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-angularBrowserTarget/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/tsconfig.lib.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-lib/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/nx.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/src/tsconfig.app.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/nx.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/src/tsconfig.app.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-nx-workspace/workspace.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/src/tsconfig.app.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/with-options-styles/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-architect-build/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-architect-build-options/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-compatible-projects/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/tsconfig.lib.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-projects-entry/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/angular.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/src/main.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/src/main.js +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/src/tsconfig.app.json +0 -0
- package/dist/{ts3.9 → types}/server/__mocks-ng-workspace__/without-tsConfig/tsconfig.json +0 -0
- package/dist/{ts3.9 → types}/server/angular-cli-webpack-12.2.x.d.ts +0 -0
- package/dist/types/server/angular-cli-webpack-12.2.x.js +66 -0
- package/dist/{ts3.9 → types}/server/angular-cli-webpack-13.x.x.d.ts +0 -0
- package/dist/types/server/angular-cli-webpack-13.x.x.js +70 -0
- package/dist/types/server/angular-cli-webpack-older.d.ts +6 -0
- package/dist/types/server/angular-cli-webpack-older.js +111 -0
- package/dist/{ts3.9 → types}/server/angular-devkit-build-webpack.d.ts +6 -6
- package/dist/{ts3.9 → types}/server/angular-devkit-build-webpack.js +66 -54
- package/dist/{ts3.9 → types}/server/angular-read-workspace.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/angular-read-workspace.js +8 -14
- package/dist/{ts3.9 → types}/server/create-fork-ts-checker-plugin.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/create-fork-ts-checker-plugin.js +1 -1
- package/dist/{ts3.9 → types}/server/framework-preset-angular-cli.d.ts +1 -1
- package/dist/types/server/framework-preset-angular-cli.js +175 -0
- package/dist/{ts3.9 → types}/server/framework-preset-angular-docs.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/framework-preset-angular-docs.js +4 -3
- package/dist/{ts3.9 → types}/server/framework-preset-angular-ivy.d.ts +1 -1
- package/dist/{ts3.9 → types}/server/framework-preset-angular-ivy.js +26 -22
- package/dist/{ts3.9 → types}/server/framework-preset-angular.d.ts +0 -0
- package/dist/types/server/framework-preset-angular.js +103 -0
- package/dist/{ts3.9 → types}/server/ngx-template-loader/index.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/ngx-template-loader/index.js +0 -0
- package/dist/{ts3.9/server/options.d.ts → types/server/preset-options.d.ts} +1 -3
- package/dist/{ts3.9/types/index.js → types/server/preset-options.js} +0 -0
- package/dist/{ts3.9 → types}/server/ts_config.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/ts_config.js +0 -0
- package/dist/{ts3.9 → types}/server/utils/filter-out-styling-rules.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/utils/filter-out-styling-rules.js +2 -1
- package/dist/{ts3.9 → types}/server/utils/module-is-available.d.ts +0 -0
- package/dist/{ts3.9 → types}/server/utils/module-is-available.js +2 -1
- package/dist/{ts3.4 → types}/server/utils/normalize-asset-patterns.d.ts +7 -6
- package/dist/{ts3.9 → types}/server/utils/normalize-asset-patterns.js +9 -9
- package/dist/{ts3.9 → types}/server/utils/normalize-optimization.d.ts +1 -1
- package/dist/{ts3.9 → types}/server/utils/normalize-optimization.js +3 -2
- package/dist/types/types.d.ts +28 -0
- package/dist/types/types.js +2 -0
- package/jest.config.js +1 -0
- package/package.json +47 -57
- package/preset.js +1 -1
- package/renderer.d.ts +1 -1
- package/renderer.js +1 -1
- package/bin/build.js +0 -4
- package/bin/index.js +0 -3
- package/demo.d.ts +0 -4
- package/demo.js +0 -5
- package/dist/ts3.4/builders/build-storybook/index.d.ts +0 -15
- package/dist/ts3.4/builders/start-storybook/index.d.ts +0 -15
- package/dist/ts3.4/builders/utils/build-standalone-errors-handler.d.ts +0 -1
- package/dist/ts3.4/builders/utils/run-compodoc.d.ts +0 -6
- package/dist/ts3.4/client/docs/compodoc.d.ts +0 -18
- package/dist/ts3.4/client/docs/config.d.ts +0 -15
- package/dist/ts3.4/client/docs/index.d.ts +0 -1
- package/dist/ts3.4/client/docs/prepareForInline.d.ts +0 -7
- package/dist/ts3.4/client/docs/sourceDecorator.d.ts +0 -9
- package/dist/ts3.4/client/docs/types.d.ts +0 -102
- package/dist/ts3.4/client/index.d.ts +0 -4
- package/dist/ts3.4/client/preview/angular/app.token.d.ts +0 -3
- package/dist/ts3.4/client/preview/angular/components/app.component.d.ts +0 -38
- package/dist/ts3.4/client/preview/angular/helpers.d.ts +0 -8
- package/dist/ts3.4/client/preview/angular-beta/AbstractRenderer.d.ts +0 -57
- package/dist/ts3.4/client/preview/angular-beta/CanvasRenderer.d.ts +0 -14
- package/dist/ts3.4/client/preview/angular-beta/ComputesTemplateFromComponent.d.ts +0 -17
- package/dist/ts3.4/client/preview/angular-beta/DocsRenderer.d.ts +0 -14
- package/dist/ts3.4/client/preview/angular-beta/RendererFactory.d.ts +0 -11
- package/dist/ts3.4/client/preview/angular-beta/StorybookModule.d.ts +0 -9
- package/dist/ts3.4/client/preview/angular-beta/StorybookProvider.d.ts +0 -5
- package/dist/ts3.4/client/preview/angular-beta/StorybookWrapperComponent.d.ts +0 -9
- package/dist/ts3.4/client/preview/angular-beta/utils/NgComponentAnalyzer.d.ts +0 -29
- package/dist/ts3.4/client/preview/angular-beta/utils/NgModulesAnalyzer.d.ts +0 -6
- package/dist/ts3.4/client/preview/angular-polyfills.d.ts +0 -41
- package/dist/ts3.4/client/preview/config.d.ts +0 -6
- package/dist/ts3.4/client/preview/decorateStory.d.ts +0 -4
- package/dist/ts3.4/client/preview/decorators.d.ts +0 -6
- package/dist/ts3.4/client/preview/globals.d.ts +0 -1
- package/dist/ts3.4/client/preview/index.d.ts +0 -25
- package/dist/ts3.4/client/preview/render.d.ts +0 -7
- package/dist/ts3.4/client/preview/types-6-0.d.ts +0 -42
- package/dist/ts3.4/client/preview/types-7-0.d.ts +0 -9
- package/dist/ts3.4/client/preview/types.d.ts +0 -29
- package/dist/ts3.4/demo/button.component.d.ts +0 -5
- package/dist/ts3.4/demo/welcome.component.d.ts +0 -4
- package/dist/ts3.4/public_api.d.ts +0 -1
- package/dist/ts3.4/renderer.d.ts +0 -4
- package/dist/ts3.4/server/__mocks-ng-workspace__/minimal-config/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/some-config/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/with-nx/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/with-nx-workspace/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/with-options-styles/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.d.ts +0 -1
- package/dist/ts3.4/server/__mocks-ng-workspace__/without-tsConfig/src/main.d.ts +0 -1
- package/dist/ts3.4/server/angular-cli-webpack-12.2.x.d.ts +0 -1
- package/dist/ts3.4/server/angular-cli-webpack-13.x.x.d.ts +0 -1
- package/dist/ts3.4/server/angular-cli-webpack-older.d.ts +0 -73
- package/dist/ts3.4/server/angular-devkit-build-webpack.d.ts +0 -30
- package/dist/ts3.4/server/angular-read-workspace.d.ts +0 -13
- package/dist/ts3.4/server/build.d.ts +0 -1
- package/dist/ts3.4/server/create-fork-ts-checker-plugin.d.ts +0 -3
- package/dist/ts3.4/server/framework-preset-angular-cli.d.ts +0 -3
- package/dist/ts3.4/server/framework-preset-angular-docs.d.ts +0 -2
- package/dist/ts3.4/server/framework-preset-angular-ivy.d.ts +0 -10
- package/dist/ts3.4/server/framework-preset-angular.d.ts +0 -5
- package/dist/ts3.4/server/index.d.ts +0 -1
- package/dist/ts3.4/server/ngx-template-loader/index.d.ts +0 -1
- package/dist/ts3.4/server/options.d.ts +0 -14
- package/dist/ts3.4/server/preset.d.ts +0 -3
- package/dist/ts3.4/server/ts_config.d.ts +0 -2
- package/dist/ts3.4/server/utils/filter-out-styling-rules.d.ts +0 -2
- package/dist/ts3.4/server/utils/module-is-available.d.ts +0 -1
- package/dist/ts3.4/server/utils/normalize-optimization.d.ts +0 -3
- package/dist/ts3.4/types/index.d.ts +0 -6
- package/dist/ts3.9/builders/build-storybook/index.js +0 -65
- package/dist/ts3.9/builders/start-storybook/index.js +0 -73
- package/dist/ts3.9/client/docs/prepareForInline.d.ts +0 -7
- package/dist/ts3.9/client/docs/prepareForInline.js +0 -45
- package/dist/ts3.9/client/index.d.ts +0 -4
- package/dist/ts3.9/client/index.js +0 -28
- package/dist/ts3.9/client/preview/angular-beta/CanvasRenderer.js +0 -34
- package/dist/ts3.9/client/preview/angular-beta/DocsRenderer.js +0 -59
- package/dist/ts3.9/client/preview/angular-beta/RendererFactory.js +0 -65
- package/dist/ts3.9/client/preview/globals.d.ts +0 -1
- package/dist/ts3.9/client/preview/globals.js +0 -9
- package/dist/ts3.9/client/preview/index.js +0 -27
- package/dist/ts3.9/client/preview/render.js +0 -34
- package/dist/ts3.9/client/preview/types-7-0.d.ts +0 -9
- package/dist/ts3.9/demo/button.component.d.ts +0 -5
- package/dist/ts3.9/demo/button.component.js +0 -46
- package/dist/ts3.9/demo/welcome.component.d.ts +0 -4
- package/dist/ts3.9/demo/welcome.component.js +0 -99
- package/dist/ts3.9/public_api.d.ts +0 -1
- package/dist/ts3.9/renderer.d.ts +0 -4
- package/dist/ts3.9/server/angular-cli-webpack-12.2.x.js +0 -56
- package/dist/ts3.9/server/angular-cli-webpack-13.x.x.js +0 -60
- package/dist/ts3.9/server/angular-cli-webpack-older.d.ts +0 -73
- package/dist/ts3.9/server/angular-cli-webpack-older.js +0 -110
- package/dist/ts3.9/server/build.d.ts +0 -1
- package/dist/ts3.9/server/build.js +0 -28
- package/dist/ts3.9/server/framework-preset-angular-cli.js +0 -177
- package/dist/ts3.9/server/framework-preset-angular.js +0 -100
- package/dist/ts3.9/server/index.d.ts +0 -1
- package/dist/ts3.9/server/index.js +0 -8
- package/dist/ts3.9/server/options.js +0 -8
- package/dist/ts3.9/server/preset.d.ts +0 -3
- package/dist/ts3.9/server/preset.js +0 -13
- package/dist/ts3.9/server/utils/normalize-asset-patterns.d.ts +0 -6
- package/dist/ts3.9/types/index.d.ts +0 -6
- package/standalone.d.ts +0 -21
- package/standalone.js +0 -8
- package/types-6-0.d.ts +0 -1
- package/types-7-0.d.ts +0 -1
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Component, Type } from '@angular/core';
|
|
2
|
-
export declare type ComponentInputsOutputs = {
|
|
3
|
-
inputs: {
|
|
4
|
-
propName: string;
|
|
5
|
-
templateName: string;
|
|
6
|
-
}[];
|
|
7
|
-
outputs: {
|
|
8
|
-
propName: string;
|
|
9
|
-
templateName: string;
|
|
10
|
-
}[];
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Returns component Inputs / Outputs by browsing these properties and decorator
|
|
14
|
-
*/
|
|
15
|
-
export declare const getComponentInputsOutputs: (component: any) => ComponentInputsOutputs;
|
|
16
|
-
export declare const isDeclarable: (component: any) => boolean;
|
|
17
|
-
export declare const isComponent: (component: any) => component is Type<unknown>;
|
|
18
|
-
export declare const isStandaloneComponent: (component: any) => component is Type<unknown>;
|
|
19
|
-
/**
|
|
20
|
-
* Returns all component decorator properties
|
|
21
|
-
* is used to get all `@Input` and `@Output` Decorator
|
|
22
|
-
*/
|
|
23
|
-
export declare const getComponentPropsDecoratorMetadata: (component: any) => {
|
|
24
|
-
[key: string]: any[];
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Returns component decorator `@Component`
|
|
28
|
-
*/
|
|
29
|
-
export declare const getComponentDecoratorMetadata: (component: any) => Component | undefined;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Avoid component redeclaration
|
|
3
|
-
*
|
|
4
|
-
* Checks recursively if the component has already been declared in all import Module
|
|
5
|
-
*/
|
|
6
|
-
export declare const isComponentAlreadyDeclaredInModules: (componentToFind: any, moduleDeclarations: any[], moduleImports: any[]) => boolean;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file includes polyfills needed by Angular and is loaded before the app.
|
|
3
|
-
* You can add your own extra polyfills to this file.
|
|
4
|
-
*
|
|
5
|
-
* This file is divided into 2 sections:
|
|
6
|
-
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
|
7
|
-
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
|
8
|
-
* file.
|
|
9
|
-
*
|
|
10
|
-
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
|
11
|
-
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
|
12
|
-
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
|
13
|
-
*
|
|
14
|
-
* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
|
|
15
|
-
*/
|
|
16
|
-
/** *************************************************************************************************
|
|
17
|
-
* BROWSER POLYFILLS
|
|
18
|
-
*/
|
|
19
|
-
/** IE9, IE10 and IE11 requires all of the following polyfills. * */
|
|
20
|
-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
|
21
|
-
/** Evergreen browsers require these. * */
|
|
22
|
-
import 'core-js/es/reflect';
|
|
23
|
-
import 'core-js/proposals/reflect-metadata';
|
|
24
|
-
/**
|
|
25
|
-
* Required to support Web Animations `@angular/animation`.
|
|
26
|
-
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
|
|
27
|
-
* */
|
|
28
|
-
/** *************************************************************************************************
|
|
29
|
-
* Zone JS is required by Angular itself.
|
|
30
|
-
*/
|
|
31
|
-
import 'zone.js/dist/zone';
|
|
32
|
-
/** *************************************************************************************************
|
|
33
|
-
* APPLICATION IMPORTS
|
|
34
|
-
*/
|
|
35
|
-
/**
|
|
36
|
-
* Date, currency, decimal and percent pipes.
|
|
37
|
-
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
|
|
38
|
-
*/
|
|
39
|
-
/**
|
|
40
|
-
* Need to import at least one locale-data with intl.
|
|
41
|
-
*/
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DecoratorFunction, LegacyStoryFn } from '@storybook/csf';
|
|
2
|
-
import { AngularFramework } from './types-6-0';
|
|
3
|
-
export default function decorateStory(mainStoryFn: LegacyStoryFn<AngularFramework>, decorators: DecoratorFunction<AngularFramework>[]): LegacyStoryFn<AngularFramework>;
|
|
4
|
-
export { decorateStory };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { DecoratorFunction, StoryContext } from '@storybook/csf';
|
|
3
|
-
import { ICollection, NgModuleMetadata } from './types';
|
|
4
|
-
import { AngularFramework } from './types-6-0';
|
|
5
|
-
export declare const moduleMetadata: <TArgs = any>(metadata: Partial<NgModuleMetadata>) => DecoratorFunction<AngularFramework, TArgs>;
|
|
6
|
-
export declare const componentWrapperDecorator: <TArgs = any>(element: Type<unknown> | ((story: string) => string), props?: ICollection | ((storyContext: StoryContext<AngularFramework, TArgs>) => ICollection)) => DecoratorFunction<AngularFramework, TArgs>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './angular-polyfills';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="webpack-env" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
import { ClientStoryApi, Loadable } from '@storybook/addons';
|
|
4
|
-
import './globals';
|
|
5
|
-
import { IStorybookSection } from './types';
|
|
6
|
-
import { AngularFramework } from './types-6-0';
|
|
7
|
-
interface ClientApi extends ClientStoryApi<AngularFramework['storyResult']> {
|
|
8
|
-
setAddon(addon: any): void;
|
|
9
|
-
configure(loader: Loadable, module: NodeModule): void;
|
|
10
|
-
getStorybook(): IStorybookSection[];
|
|
11
|
-
clearDecorators(): void;
|
|
12
|
-
forceReRender(): void;
|
|
13
|
-
raw: () => any;
|
|
14
|
-
load: (...args: any[]) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const storiesOf: ClientApi['storiesOf'];
|
|
17
|
-
export declare const configure: ClientApi['configure'];
|
|
18
|
-
export declare const addDecorator: ClientApi['addDecorator'];
|
|
19
|
-
export declare const addParameters: ClientApi['addParameters'];
|
|
20
|
-
export declare const clearDecorators: ClientApi['clearDecorators'];
|
|
21
|
-
export declare const setAddon: ClientApi['setAddon'];
|
|
22
|
-
export declare const forceReRender: ClientApi['forceReRender'];
|
|
23
|
-
export declare const getStorybook: ClientApi['getStorybook'];
|
|
24
|
-
export declare const raw: ClientApi['raw'];
|
|
25
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RenderContext } from '@storybook/store';
|
|
2
|
-
import { ArgsStoryFn } from '@storybook/csf';
|
|
3
|
-
import { AngularFramework } from './types-6-0';
|
|
4
|
-
import { RendererFactory } from './angular-beta/RendererFactory';
|
|
5
|
-
export declare const rendererFactory: RendererFactory;
|
|
6
|
-
export declare const render: ArgsStoryFn<AngularFramework>;
|
|
7
|
-
export declare function renderToDOM({ storyFn, showMain, forceRemount, storyContext: { parameters, component }, id, }: RenderContext<AngularFramework>, element: HTMLElement): Promise<void>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Args, Parameters as DefaultParameters, StoryContext as DefaultStoryContext, ComponentAnnotations, StoryAnnotations, AnnotatedStoryFn } from '@storybook/csf';
|
|
2
|
-
import { StoryFnAngularReturnType } from './types';
|
|
3
|
-
export { Args, ArgTypes } from '@storybook/csf';
|
|
4
|
-
export declare type AngularFramework = {
|
|
5
|
-
component: any;
|
|
6
|
-
storyResult: StoryFnAngularReturnType;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Metadata to configure the stories for a component.
|
|
10
|
-
*
|
|
11
|
-
* @see [Default export](https://storybook.js.org/docs/formats/component-story-format/#default-export)
|
|
12
|
-
*/
|
|
13
|
-
export declare type Meta<TArgs = Args> = ComponentAnnotations<AngularFramework, TArgs>;
|
|
14
|
-
/**
|
|
15
|
-
* Story function that represents a CSFv2 component example.
|
|
16
|
-
*
|
|
17
|
-
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
|
18
|
-
*/
|
|
19
|
-
export declare type StoryFn<TArgs = Args> = AnnotatedStoryFn<AngularFramework, TArgs>;
|
|
20
|
-
/**
|
|
21
|
-
* Story function that represents a CSFv3 component example.
|
|
22
|
-
*
|
|
23
|
-
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
|
24
|
-
*/
|
|
25
|
-
export declare type StoryObj<TArgs = Args> = StoryAnnotations<AngularFramework, TArgs>;
|
|
26
|
-
/**
|
|
27
|
-
* Story function that represents a CSFv2 component example.
|
|
28
|
-
*
|
|
29
|
-
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
|
30
|
-
*
|
|
31
|
-
* NOTE that in Storybook 7.0, this type will be renamed to `StoryFn` and replaced by the current `StoryObj` type.
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
export declare type Story<TArgs = Args> = StoryFn<TArgs>;
|
|
35
|
-
export declare type Parameters = DefaultParameters & {
|
|
36
|
-
/** Uses legacy angular rendering engine that use dynamic component */
|
|
37
|
-
angularLegacyRendering?: boolean;
|
|
38
|
-
bootstrapModuleOptions?: unknown;
|
|
39
|
-
};
|
|
40
|
-
export declare type StoryContext = DefaultStoryContext<AngularFramework> & {
|
|
41
|
-
parameters: Parameters;
|
|
42
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Args } from '@storybook/csf';
|
|
2
|
-
import { StoryObj } from './types-6-0';
|
|
3
|
-
export { StoryFn, StoryObj, Meta } from './types-6-0';
|
|
4
|
-
/**
|
|
5
|
-
* Story function that represents a CSFv3 component example.
|
|
6
|
-
*
|
|
7
|
-
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
|
|
8
|
-
*/
|
|
9
|
-
export declare type Story<TArgs = Args> = StoryObj<TArgs>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface NgModuleMetadata {
|
|
2
|
-
declarations?: any[];
|
|
3
|
-
entryComponents?: any[];
|
|
4
|
-
imports?: any[];
|
|
5
|
-
schemas?: any[];
|
|
6
|
-
providers?: any[];
|
|
7
|
-
}
|
|
8
|
-
export interface ICollection {
|
|
9
|
-
[p: string]: any;
|
|
10
|
-
}
|
|
11
|
-
export interface IStorybookStory {
|
|
12
|
-
name: string;
|
|
13
|
-
render: (context: any) => any;
|
|
14
|
-
}
|
|
15
|
-
export interface IStorybookSection {
|
|
16
|
-
kind: string;
|
|
17
|
-
stories: IStorybookStory[];
|
|
18
|
-
}
|
|
19
|
-
export interface StoryFnAngularReturnType {
|
|
20
|
-
/** @deprecated `component` story input is deprecated, and will be removed in Storybook 7.0. */
|
|
21
|
-
component?: any;
|
|
22
|
-
props?: ICollection;
|
|
23
|
-
/** @deprecated `propsMeta` story input is deprecated, and will be removed in Storybook 7.0. */
|
|
24
|
-
propsMeta?: ICollection;
|
|
25
|
-
moduleMetadata?: NgModuleMetadata;
|
|
26
|
-
template?: string;
|
|
27
|
-
styles?: string[];
|
|
28
|
-
userDefinedTemplate?: boolean;
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './client';
|
package/dist/ts3.4/renderer.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { computesTemplateSourceFromComponent } from './client/preview/angular-beta/ComputesTemplateFromComponent';
|
|
2
|
-
export { rendererFactory } from './client/preview/render';
|
|
3
|
-
export { AbstractRenderer } from './client/preview/angular-beta/AbstractRenderer';
|
|
4
|
-
export { getStorybookModuleMetadata } from './client/preview/angular-beta/StorybookModule';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const not = "empty";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const not = "empty";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const not = "empty";
|
package/dist/ts3.4/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const not = "empty";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const not = "empty";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const not = "empty";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const not = "empty";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const not = "empty";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const not = "empty";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function getWebpackConfig(baseConfig: any, { builderOptions, builderContext }: any): Promise<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function getWebpackConfig(baseConfig: any, { builderOptions, builderContext }: any): Promise<any>;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import webpack from 'webpack';
|
|
2
|
-
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
|
|
3
|
-
import { PresetOptions } from './options';
|
|
4
|
-
/**
|
|
5
|
-
* Old way currently support version lower than 12.2.x
|
|
6
|
-
*/
|
|
7
|
-
export declare function getWebpackConfig(baseConfig: webpack.Configuration, options: PresetOptions): Promise<webpack.Configuration | {
|
|
8
|
-
entry: any[];
|
|
9
|
-
module: {
|
|
10
|
-
rules: webpack.RuleSetRule[];
|
|
11
|
-
noParse?: RegExp | RegExp[] | ((content: string) => boolean);
|
|
12
|
-
unknownContextRequest?: string;
|
|
13
|
-
unknownContextRecursive?: boolean;
|
|
14
|
-
unknownContextRegExp?: RegExp;
|
|
15
|
-
unknownContextCritical?: boolean;
|
|
16
|
-
exprContextRequest?: string;
|
|
17
|
-
exprContextRegExp?: RegExp;
|
|
18
|
-
exprContextRecursive?: boolean;
|
|
19
|
-
exprContextCritical?: boolean;
|
|
20
|
-
wrappedContextRegExp?: RegExp;
|
|
21
|
-
wrappedContextRecursive?: boolean;
|
|
22
|
-
wrappedContextCritical?: boolean;
|
|
23
|
-
strictExportPresence?: boolean;
|
|
24
|
-
};
|
|
25
|
-
plugins: webpack.Plugin[];
|
|
26
|
-
resolve: {
|
|
27
|
-
modules: string[];
|
|
28
|
-
plugins: TsconfigPathsPlugin[];
|
|
29
|
-
descriptionFiles?: string[];
|
|
30
|
-
mainFields?: string[] | string[][];
|
|
31
|
-
aliasFields?: string[] | string[][];
|
|
32
|
-
mainFiles?: string[];
|
|
33
|
-
extensions?: string[];
|
|
34
|
-
enforceExtension?: boolean;
|
|
35
|
-
alias?: {
|
|
36
|
-
[key: string]: string;
|
|
37
|
-
};
|
|
38
|
-
unsafeCache?: boolean | {};
|
|
39
|
-
cachePredicate?(data: {
|
|
40
|
-
path: string;
|
|
41
|
-
request: string;
|
|
42
|
-
}): boolean;
|
|
43
|
-
symlinks?: boolean;
|
|
44
|
-
cacheWithContext?: boolean;
|
|
45
|
-
roots?: string[];
|
|
46
|
-
};
|
|
47
|
-
resolveLoader: webpack.ResolveLoader;
|
|
48
|
-
mode?: "development" | "production" | "none";
|
|
49
|
-
name?: string;
|
|
50
|
-
context?: string;
|
|
51
|
-
devtool?: string | boolean;
|
|
52
|
-
output?: webpack.Output;
|
|
53
|
-
externals?: string | RegExp | webpack.ExternalsObjectElement | webpack.ExternalsFunctionElement | webpack.ExternalsElement[];
|
|
54
|
-
target?: "node" | "web" | "webworker" | "async-node" | "node-webkit" | "atom" | "electron" | "electron-renderer" | "electron-preload" | "electron-main" | ((compiler?: any) => void);
|
|
55
|
-
bail?: boolean;
|
|
56
|
-
profile?: boolean;
|
|
57
|
-
cache?: boolean | object;
|
|
58
|
-
watch?: boolean;
|
|
59
|
-
watchOptions?: webpack.ICompiler.WatchOptions;
|
|
60
|
-
node?: false | webpack.Node;
|
|
61
|
-
amd?: {
|
|
62
|
-
[moduleName: string]: boolean;
|
|
63
|
-
};
|
|
64
|
-
recordsPath?: string;
|
|
65
|
-
recordsInputPath?: string;
|
|
66
|
-
recordsOutputPath?: string;
|
|
67
|
-
stats?: webpack.Stats.ToStringOptions;
|
|
68
|
-
performance?: false | webpack.Options.Performance;
|
|
69
|
-
parallelism?: number;
|
|
70
|
-
optimization?: webpack.Options.Optimization;
|
|
71
|
-
infrastructureLogging?: webpack.Options.InfrastructureLogging;
|
|
72
|
-
devServer?: import("webpack-dev-server").Configuration;
|
|
73
|
-
}>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is to be watched !
|
|
3
|
-
* The code must be compatible from @angular-devkit version 6.1.0 to the latest supported
|
|
4
|
-
*
|
|
5
|
-
* It uses code block of angular cli to extract parts of webpack configuration
|
|
6
|
-
*/
|
|
7
|
-
import webpack from 'webpack';
|
|
8
|
-
import { workspaces } from '@angular-devkit/core';
|
|
9
|
-
export declare type AngularCliWebpackConfig = {
|
|
10
|
-
cliCommonWebpackConfig: {
|
|
11
|
-
plugins: webpack.Plugin[];
|
|
12
|
-
resolve: {
|
|
13
|
-
modules: string[];
|
|
14
|
-
};
|
|
15
|
-
resolveLoader: webpack.ResolveLoader;
|
|
16
|
-
};
|
|
17
|
-
cliStyleWebpackConfig: {
|
|
18
|
-
entry: string | string[] | webpack.Entry | webpack.EntryFunc;
|
|
19
|
-
module: {
|
|
20
|
-
rules: webpack.RuleSetRule[];
|
|
21
|
-
};
|
|
22
|
-
plugins: webpack.Plugin[];
|
|
23
|
-
};
|
|
24
|
-
tsConfigPath: string;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Uses angular cli to extract webpack configuration.
|
|
28
|
-
* The `AngularCliWebpackConfig` type lists the parts used by storybook
|
|
29
|
-
*/
|
|
30
|
-
export declare function extractAngularCliWebpackConfig(dirToSearch: string, project: workspaces.ProjectDefinition, target: workspaces.TargetDefinition, confName?: string): Promise<AngularCliWebpackConfig>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { workspaces } from '@angular-devkit/core';
|
|
2
|
-
/**
|
|
3
|
-
* Returns the workspace definition
|
|
4
|
-
*
|
|
5
|
-
* - Either from NX if it is present
|
|
6
|
-
* - Either from `@angular-devkit/core` -> https://github.com/angular/angular-cli/tree/master/packages/angular_devkit/core
|
|
7
|
-
*/
|
|
8
|
-
export declare const readAngularWorkspaceConfig: (dirToSearch: string) => Promise<workspaces.WorkspaceDefinition>;
|
|
9
|
-
export declare const getDefaultProjectName: (workspace: workspaces.WorkspaceDefinition) => string;
|
|
10
|
-
export declare const findAngularProjectTarget: (workspace: workspaces.WorkspaceDefinition, projectName: string, targetName: string) => {
|
|
11
|
-
project: workspaces.ProjectDefinition;
|
|
12
|
-
target: workspaces.TargetDefinition;
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Configuration } from 'webpack';
|
|
2
|
-
import { PresetOptions } from './options';
|
|
3
|
-
/**
|
|
4
|
-
* Run ngcc for converting modules to ivy format before starting storybook
|
|
5
|
-
* This step is needed in order to support Ivy in storybook
|
|
6
|
-
*
|
|
7
|
-
* Information about Ivy can be found here https://angular.io/guide/ivy
|
|
8
|
-
*/
|
|
9
|
-
export declare const runNgcc: () => Promise<void>;
|
|
10
|
-
export declare const webpack: (webpackConfig: Configuration, options: PresetOptions) => Promise<Configuration>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function (source: string): string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LoadOptions, Options as CoreOptions } from '@storybook/core-common';
|
|
2
|
-
import { BuilderContext } from '@angular-devkit/architect';
|
|
3
|
-
import { ExtraEntryPoint, StylePreprocessorOptions } from '@angular-devkit/build-angular';
|
|
4
|
-
export declare type PresetOptions = CoreOptions & {
|
|
5
|
-
angularBrowserTarget?: string | null;
|
|
6
|
-
angularBuilderOptions?: {
|
|
7
|
-
styles?: ExtraEntryPoint[];
|
|
8
|
-
stylePreprocessorOptions?: StylePreprocessorOptions;
|
|
9
|
-
};
|
|
10
|
-
angularBuilderContext?: BuilderContext | null;
|
|
11
|
-
tsConfig?: string;
|
|
12
|
-
};
|
|
13
|
-
declare const _default: LoadOptions;
|
|
14
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const moduleIsAvailable: (moduleName: string) => boolean;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { OptimizationUnion } from '@angular-devkit/build-angular/src/browser/schema';
|
|
2
|
-
import { NormalizedOptimizationOptions } from '@angular-devkit/build-angular/src/utils/normalize-optimization';
|
|
3
|
-
export declare const normalizeOptimization: (options: OptimizationUnion) => NormalizedOptimizationOptions;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const architect_1 = require("@angular-devkit/architect");
|
|
16
|
-
const rxjs_1 = require("rxjs");
|
|
17
|
-
const operators_1 = require("rxjs/operators");
|
|
18
|
-
const find_up_1 = require("find-up");
|
|
19
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
20
|
-
const standalone_1 = __importDefault(require("@storybook/angular/standalone"));
|
|
21
|
-
const run_compodoc_1 = require("../utils/run-compodoc");
|
|
22
|
-
const build_standalone_errors_handler_1 = require("../utils/build-standalone-errors-handler");
|
|
23
|
-
exports.default = architect_1.createBuilder(commandBuilder);
|
|
24
|
-
function commandBuilder(options, context) {
|
|
25
|
-
return rxjs_1.from(setup(options, context)).pipe(operators_1.switchMap(({ tsConfig }) => {
|
|
26
|
-
const runCompodoc$ = options.compodoc
|
|
27
|
-
? run_compodoc_1.runCompodoc({ compodocArgs: options.compodocArgs, tsconfig: tsConfig }, context).pipe(operators_1.mapTo({ tsConfig }))
|
|
28
|
-
: rxjs_1.of({});
|
|
29
|
-
return runCompodoc$.pipe(operators_1.mapTo({ tsConfig }));
|
|
30
|
-
}), operators_1.map(({ tsConfig }) => {
|
|
31
|
-
const { browserTarget, stylePreprocessorOptions, styles, configDir, docs, loglevel, outputDir, quiet, webpackStatsJson, } = options;
|
|
32
|
-
const standaloneOptions = {
|
|
33
|
-
configDir,
|
|
34
|
-
docs,
|
|
35
|
-
loglevel,
|
|
36
|
-
outputDir,
|
|
37
|
-
quiet,
|
|
38
|
-
angularBrowserTarget: browserTarget,
|
|
39
|
-
angularBuilderContext: context,
|
|
40
|
-
angularBuilderOptions: Object.assign(Object.assign({}, (stylePreprocessorOptions ? { stylePreprocessorOptions } : {})), (styles ? { styles } : {})),
|
|
41
|
-
tsConfig,
|
|
42
|
-
webpackStatsJson,
|
|
43
|
-
};
|
|
44
|
-
return standaloneOptions;
|
|
45
|
-
}), operators_1.switchMap((standaloneOptions) => runInstance(Object.assign(Object.assign({}, standaloneOptions), { mode: 'static' }))), operators_1.map(() => {
|
|
46
|
-
return { success: true };
|
|
47
|
-
}));
|
|
48
|
-
}
|
|
49
|
-
function setup(options, context) {
|
|
50
|
-
var _a, _b;
|
|
51
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
let browserOptions;
|
|
53
|
-
let browserTarget;
|
|
54
|
-
if (options.browserTarget) {
|
|
55
|
-
browserTarget = architect_1.targetFromTargetString(options.browserTarget);
|
|
56
|
-
browserOptions = yield context.validateOptions(yield context.getTargetOptions(browserTarget), yield context.getBuilderNameForTarget(browserTarget));
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
tsConfig: (_b = (_a = options.tsConfig) !== null && _a !== void 0 ? _a : find_up_1.sync('tsconfig.json', { cwd: options.configDir })) !== null && _b !== void 0 ? _b : browserOptions.tsConfig,
|
|
60
|
-
};
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
function runInstance(options) {
|
|
64
|
-
return rxjs_1.from(standalone_1.default(options)).pipe(operators_1.catchError((error) => rxjs_1.throwError(build_standalone_errors_handler_1.buildStandaloneErrorHandler(error))));
|
|
65
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const architect_1 = require("@angular-devkit/architect");
|
|
16
|
-
const rxjs_1 = require("rxjs");
|
|
17
|
-
const operators_1 = require("rxjs/operators");
|
|
18
|
-
const find_up_1 = require("find-up");
|
|
19
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
20
|
-
const standalone_1 = __importDefault(require("@storybook/angular/standalone"));
|
|
21
|
-
const run_compodoc_1 = require("../utils/run-compodoc");
|
|
22
|
-
const build_standalone_errors_handler_1 = require("../utils/build-standalone-errors-handler");
|
|
23
|
-
exports.default = architect_1.createBuilder(commandBuilder);
|
|
24
|
-
function commandBuilder(options, context) {
|
|
25
|
-
return rxjs_1.from(setup(options, context)).pipe(operators_1.switchMap(({ tsConfig }) => {
|
|
26
|
-
const runCompodoc$ = options.compodoc
|
|
27
|
-
? run_compodoc_1.runCompodoc({ compodocArgs: options.compodocArgs, tsconfig: tsConfig }, context).pipe(operators_1.mapTo({ tsConfig }))
|
|
28
|
-
: rxjs_1.of({});
|
|
29
|
-
return runCompodoc$.pipe(operators_1.mapTo({ tsConfig }));
|
|
30
|
-
}), operators_1.map(({ tsConfig }) => {
|
|
31
|
-
const { browserTarget, stylePreprocessorOptions, styles, ci, configDir, docs, host, https, port, quiet, smokeTest, sslCa, sslCert, sslKey, } = options;
|
|
32
|
-
const standaloneOptions = {
|
|
33
|
-
ci,
|
|
34
|
-
configDir,
|
|
35
|
-
docs,
|
|
36
|
-
host,
|
|
37
|
-
https,
|
|
38
|
-
port,
|
|
39
|
-
quiet,
|
|
40
|
-
smokeTest,
|
|
41
|
-
sslCa,
|
|
42
|
-
sslCert,
|
|
43
|
-
sslKey,
|
|
44
|
-
angularBrowserTarget: browserTarget,
|
|
45
|
-
angularBuilderContext: context,
|
|
46
|
-
angularBuilderOptions: Object.assign(Object.assign({}, (stylePreprocessorOptions ? { stylePreprocessorOptions } : {})), (styles ? { styles } : {})),
|
|
47
|
-
tsConfig,
|
|
48
|
-
};
|
|
49
|
-
return standaloneOptions;
|
|
50
|
-
}), operators_1.switchMap((standaloneOptions) => runInstance(standaloneOptions)), operators_1.map(() => {
|
|
51
|
-
return { success: true };
|
|
52
|
-
}));
|
|
53
|
-
}
|
|
54
|
-
function setup(options, context) {
|
|
55
|
-
var _a, _b;
|
|
56
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
let browserOptions;
|
|
58
|
-
let browserTarget;
|
|
59
|
-
if (options.browserTarget) {
|
|
60
|
-
browserTarget = architect_1.targetFromTargetString(options.browserTarget);
|
|
61
|
-
browserOptions = yield context.validateOptions(yield context.getTargetOptions(browserTarget), yield context.getBuilderNameForTarget(browserTarget));
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
tsConfig: (_b = (_a = options.tsConfig) !== null && _a !== void 0 ? _a : find_up_1.sync('tsconfig.json', { cwd: options.configDir })) !== null && _b !== void 0 ? _b : browserOptions.tsConfig,
|
|
65
|
-
};
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function runInstance(options) {
|
|
69
|
-
return new rxjs_1.Observable((observer) => {
|
|
70
|
-
// This Observable intentionally never complete, leaving the process running ;)
|
|
71
|
-
standalone_1.default(options).then(() => observer.next(), (error) => observer.error(build_standalone_errors_handler_1.buildStandaloneErrorHandler(error)));
|
|
72
|
-
});
|
|
73
|
-
}
|