@storybook/angular 6.4.0-beta.24 → 6.4.0-beta.28
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.4/builders/build-storybook/index.d.ts +12 -0
- package/dist/ts3.4/builders/start-storybook/index.d.ts +12 -0
- package/dist/ts3.4/builders/utils/build-standalone-errors-handler.d.ts +1 -0
- package/dist/ts3.4/builders/utils/run-compodoc.d.ts +6 -0
- package/dist/ts3.4/client/index.d.ts +4 -0
- package/dist/ts3.4/client/preview/angular/app.token.d.ts +3 -0
- package/dist/ts3.4/client/preview/angular/components/app.component.d.ts +38 -0
- package/dist/ts3.4/client/preview/angular/helpers.d.ts +8 -0
- package/dist/ts3.4/client/preview/angular-beta/AbstractRenderer.d.ts +44 -0
- package/dist/ts3.4/client/preview/angular-beta/CanvasRenderer.d.ts +14 -0
- package/dist/ts3.4/client/preview/angular-beta/ComputesTemplateFromComponent.d.ts +17 -0
- package/dist/ts3.4/client/preview/angular-beta/DocsRenderer.d.ts +14 -0
- package/dist/ts3.4/client/preview/angular-beta/RendererFactory.d.ts +11 -0
- package/dist/ts3.4/client/preview/angular-beta/StorybookModule.d.ts +9 -0
- package/dist/ts3.4/client/preview/angular-beta/StorybookProvider.d.ts +5 -0
- package/dist/ts3.4/client/preview/angular-beta/StorybookWrapperComponent.d.ts +9 -0
- package/dist/ts3.4/client/preview/angular-beta/utils/NgComponentAnalyzer.d.ts +26 -0
- package/dist/ts3.4/client/preview/angular-beta/utils/NgModulesAnalyzer.d.ts +6 -0
- package/dist/ts3.4/client/preview/angular-polyfills.d.ts +41 -0
- package/dist/ts3.4/client/preview/config.d.ts +5 -0
- package/dist/ts3.4/client/preview/decorateStory.d.ts +4 -0
- package/dist/ts3.4/client/preview/decorators.d.ts +6 -0
- package/dist/ts3.4/client/preview/globals.d.ts +1 -0
- package/dist/ts3.4/client/preview/index.d.ts +25 -0
- package/dist/ts3.4/client/preview/render.d.ts +7 -0
- package/dist/ts3.4/client/preview/types-6-0.d.ts +42 -0
- package/dist/ts3.4/client/preview/types-7-0.d.ts +9 -0
- package/dist/ts3.4/client/preview/types.d.ts +29 -0
- package/dist/ts3.4/demo/button.component.d.ts +5 -0
- package/dist/ts3.4/demo/welcome.component.d.ts +4 -0
- package/dist/ts3.4/public_api.d.ts +1 -0
- package/dist/ts3.4/renderer.d.ts +4 -0
- package/dist/ts3.4/server/__mocks-ng-workspace__/minimal-config/src/main.d.ts +1 -0
- package/dist/ts3.4/server/__mocks-ng-workspace__/some-config/src/main.d.ts +1 -0
- package/dist/ts3.4/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.d.ts +1 -0
- package/dist/ts3.4/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.d.ts +1 -0
- package/dist/ts3.4/server/__mocks-ng-workspace__/with-nx/src/main.d.ts +1 -0
- package/dist/ts3.4/server/__mocks-ng-workspace__/with-nx-workspace/src/main.d.ts +1 -0
- package/dist/ts3.4/server/__mocks-ng-workspace__/with-options-styles/src/main.d.ts +1 -0
- package/dist/ts3.4/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.d.ts +1 -0
- package/dist/ts3.4/server/__mocks-ng-workspace__/without-tsConfig/src/main.d.ts +1 -0
- package/dist/ts3.4/server/angular-devkit-build-webpack.d.ts +30 -0
- package/dist/ts3.4/server/angular-read-workspace.d.ts +13 -0
- package/dist/ts3.4/server/build.d.ts +1 -0
- package/dist/ts3.4/server/create-fork-ts-checker-plugin.d.ts +3 -0
- package/dist/ts3.4/server/framework-preset-angular-cli.d.ts +73 -0
- package/dist/ts3.4/server/framework-preset-angular-ivy.d.ts +10 -0
- package/dist/ts3.4/server/framework-preset-angular.d.ts +4 -0
- package/dist/ts3.4/server/index.d.ts +1 -0
- package/dist/ts3.4/server/ngx-template-loader/index.d.ts +1 -0
- package/dist/ts3.4/server/options.d.ts +3 -0
- package/dist/ts3.4/server/preset.d.ts +3 -0
- package/dist/ts3.4/server/ts_config.d.ts +2 -0
- package/dist/ts3.4/server/utils/filter-out-styling-rules.d.ts +2 -0
- package/dist/ts3.4/server/utils/module-is-available.d.ts +1 -0
- package/dist/ts3.4/server/utils/normalize-asset-patterns.d.ts +6 -0
- package/dist/ts3.4/server/utils/normalize-optimization.d.ts +3 -0
- package/dist/ts3.4/types/index.d.ts +6 -0
- package/dist/ts3.9/builders/build-storybook/index.d.ts +12 -0
- package/dist/ts3.9/builders/build-storybook/index.js +114 -0
- package/dist/ts3.9/builders/build-storybook/schema.json +72 -0
- package/dist/ts3.9/builders/builders.json +14 -0
- package/dist/ts3.9/builders/start-storybook/index.d.ts +12 -0
- package/dist/ts3.9/builders/start-storybook/index.js +117 -0
- package/dist/ts3.9/builders/start-storybook/schema.json +99 -0
- package/dist/ts3.9/builders/utils/build-standalone-errors-handler.d.ts +1 -0
- package/dist/ts3.9/builders/utils/build-standalone-errors-handler.js +36 -0
- package/dist/ts3.9/builders/utils/run-compodoc.d.ts +6 -0
- package/dist/ts3.9/builders/utils/run-compodoc.js +45 -0
- package/dist/ts3.9/client/index.d.ts +4 -0
- package/dist/ts3.9/client/index.js +28 -0
- package/dist/ts3.9/client/preview/angular/app.token.d.ts +3 -0
- package/dist/ts3.9/client/preview/angular/app.token.js +5 -0
- package/dist/ts3.9/client/preview/angular/components/app.component.d.ts +38 -0
- package/dist/ts3.9/client/preview/angular/components/app.component.js +146 -0
- package/dist/ts3.9/client/preview/angular/helpers.d.ts +8 -0
- package/dist/ts3.9/client/preview/angular/helpers.js +165 -0
- package/dist/ts3.9/client/preview/angular-beta/AbstractRenderer.d.ts +44 -0
- package/dist/ts3.9/client/preview/angular-beta/AbstractRenderer.js +215 -0
- package/dist/ts3.9/client/preview/angular-beta/CanvasRenderer.d.ts +14 -0
- package/dist/ts3.9/client/preview/angular-beta/CanvasRenderer.js +97 -0
- package/dist/ts3.9/client/preview/angular-beta/ComputesTemplateFromComponent.d.ts +17 -0
- package/dist/ts3.9/client/preview/angular-beta/ComputesTemplateFromComponent.js +112 -0
- package/dist/ts3.9/client/preview/angular-beta/DocsRenderer.d.ts +14 -0
- package/dist/ts3.9/client/preview/angular-beta/DocsRenderer.js +145 -0
- package/dist/ts3.9/client/preview/angular-beta/RendererFactory.d.ts +11 -0
- package/dist/ts3.9/client/preview/angular-beta/RendererFactory.js +101 -0
- package/dist/ts3.9/client/preview/angular-beta/StorybookModule.d.ts +9 -0
- package/dist/ts3.9/client/preview/angular-beta/StorybookModule.js +78 -0
- package/dist/ts3.9/client/preview/angular-beta/StorybookProvider.d.ts +5 -0
- package/dist/ts3.9/client/preview/angular-beta/StorybookProvider.js +27 -0
- package/dist/ts3.9/client/preview/angular-beta/StorybookWrapperComponent.d.ts +9 -0
- package/dist/ts3.9/client/preview/angular-beta/StorybookWrapperComponent.js +155 -0
- package/dist/ts3.9/client/preview/angular-beta/utils/NgComponentAnalyzer.d.ts +26 -0
- package/dist/ts3.9/client/preview/angular-beta/utils/NgComponentAnalyzer.js +124 -0
- package/dist/ts3.9/client/preview/angular-beta/utils/NgModulesAnalyzer.d.ts +6 -0
- package/dist/ts3.9/client/preview/angular-beta/utils/NgModulesAnalyzer.js +44 -0
- package/dist/ts3.9/client/preview/angular-polyfills.d.ts +41 -0
- package/dist/ts3.9/client/preview/angular-polyfills.js +61 -0
- package/dist/ts3.9/client/preview/config.d.ts +5 -0
- package/dist/ts3.9/client/preview/config.js +9 -0
- package/dist/ts3.9/client/preview/decorateStory.d.ts +4 -0
- package/dist/ts3.9/client/preview/decorateStory.js +64 -0
- package/dist/ts3.9/client/preview/decorators.d.ts +6 -0
- package/dist/ts3.9/client/preview/decorators.js +49 -0
- package/dist/ts3.9/client/preview/globals.d.ts +1 -0
- package/dist/ts3.9/client/preview/globals.js +9 -0
- package/dist/ts3.9/client/preview/index.d.ts +25 -0
- package/dist/ts3.9/client/preview/index.js +40 -0
- package/dist/ts3.9/client/preview/render.d.ts +7 -0
- package/dist/ts3.9/client/preview/render.js +73 -0
- package/dist/ts3.9/client/preview/types-6-0.d.ts +42 -0
- package/dist/ts3.9/client/preview/types-6-0.js +2 -0
- package/dist/ts3.9/client/preview/types-7-0.d.ts +9 -0
- package/dist/ts3.9/client/preview/types-7-0.js +2 -0
- package/dist/ts3.9/client/preview/types.d.ts +29 -0
- package/dist/ts3.9/client/preview/types.js +2 -0
- package/dist/ts3.9/demo/button.component.d.ts +5 -0
- package/dist/ts3.9/demo/button.component.js +37 -0
- package/dist/ts3.9/demo/welcome.component.d.ts +4 -0
- package/dist/ts3.9/demo/welcome.component.js +32 -0
- package/dist/ts3.9/public_api.d.ts +1 -0
- package/dist/ts3.9/public_api.js +24 -0
- package/dist/ts3.9/renderer.d.ts +4 -0
- package/dist/ts3.9/renderer.js +10 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/empty-projects-entry/angular.json +4 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/minimal-config/angular.json +17 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/minimal-config/src/main.d.ts +1 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/minimal-config/src/main.js +5 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/minimal-config/src/tsconfig.app.json +9 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/minimal-config/tsconfig.json +13 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/some-config/angular.json +18 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/some-config/src/main.d.ts +1 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/some-config/src/main.js +5 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/some-config/src/tsconfig.app.json +9 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/some-config/tsconfig.json +13 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-angularBrowserTarget/angular.json +60 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.d.ts +1 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.js +5 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/tsconfig.app.json +9 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-angularBrowserTarget/tsconfig.json +13 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-lib/angular.json +28 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.d.ts +1 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.js +5 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/tsconfig.lib.json +25 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-lib/tsconfig.json +13 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx/angular.json +17 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx/nx.json +3 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx/src/main.d.ts +1 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx/src/main.js +5 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx/src/tsconfig.app.json +8 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx/tsconfig.json +14 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx-workspace/nx.json +3 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx-workspace/src/main.d.ts +1 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx-workspace/src/main.js +5 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx-workspace/src/tsconfig.app.json +8 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx-workspace/tsconfig.json +14 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx-workspace/workspace.json +17 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-options-styles/angular.json +17 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-options-styles/src/main.d.ts +1 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-options-styles/src/main.js +5 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-options-styles/src/tsconfig.app.json +9 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/with-options-styles/tsconfig.json +13 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/without-architect-build/angular.json +5 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/without-architect-build-options/angular.json +11 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/without-compatible-projects/angular.json +7 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/without-projects-entry/angular.json +3 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.d.ts +1 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.js +5 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/tsconfig.lib.json +25 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/without-projects-entry/tsconfig.json +13 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/without-tsConfig/angular.json +16 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/without-tsConfig/src/main.d.ts +1 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/without-tsConfig/src/main.js +5 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/without-tsConfig/src/tsconfig.app.json +9 -0
- package/dist/ts3.9/server/__mocks-ng-workspace__/without-tsConfig/tsconfig.json +13 -0
- package/dist/ts3.9/server/angular-devkit-build-webpack.d.ts +30 -0
- package/dist/ts3.9/server/angular-devkit-build-webpack.js +213 -0
- package/dist/ts3.9/server/angular-read-workspace.d.ts +13 -0
- package/dist/ts3.9/server/angular-read-workspace.js +118 -0
- package/dist/ts3.9/server/build.d.ts +1 -0
- package/dist/ts3.9/server/build.js +65 -0
- package/dist/ts3.9/server/create-fork-ts-checker-plugin.d.ts +3 -0
- package/dist/ts3.9/server/create-fork-ts-checker-plugin.js +19 -0
- package/dist/ts3.9/server/framework-preset-angular-cli.d.ts +73 -0
- package/dist/ts3.9/server/framework-preset-angular-cli.js +159 -0
- package/dist/ts3.9/server/framework-preset-angular-ivy.d.ts +10 -0
- package/dist/ts3.9/server/framework-preset-angular-ivy.js +111 -0
- package/dist/ts3.9/server/framework-preset-angular.d.ts +4 -0
- package/dist/ts3.9/server/framework-preset-angular.js +74 -0
- package/dist/ts3.9/server/index.d.ts +1 -0
- package/dist/ts3.9/server/index.js +8 -0
- package/dist/ts3.9/server/ngx-template-loader/index.d.ts +1 -0
- package/dist/ts3.9/server/ngx-template-loader/index.js +46 -0
- package/dist/ts3.9/server/options.d.ts +3 -0
- package/dist/ts3.9/server/options.js +8 -0
- package/dist/ts3.9/server/preset.d.ts +3 -0
- package/dist/ts3.9/server/preset.js +21 -0
- package/dist/ts3.9/server/ts_config.d.ts +2 -0
- package/dist/ts3.9/server/ts_config.js +28 -0
- package/dist/ts3.9/server/utils/filter-out-styling-rules.d.ts +2 -0
- package/dist/ts3.9/server/utils/filter-out-styling-rules.js +16 -0
- package/dist/ts3.9/server/utils/module-is-available.d.ts +1 -0
- package/dist/ts3.9/server/utils/module-is-available.js +12 -0
- package/dist/ts3.9/server/utils/normalize-asset-patterns.d.ts +6 -0
- package/dist/ts3.9/server/utils/normalize-asset-patterns.js +79 -0
- package/dist/ts3.9/server/utils/normalize-optimization.d.ts +3 -0
- package/dist/ts3.9/server/utils/normalize-optimization.js +20 -0
- package/dist/ts3.9/types/index.d.ts +6 -0
- package/dist/ts3.9/types/index.js +2 -0
- package/package.json +9 -9
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
3
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
4
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
5
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
6
|
+
r[k] = a[j];
|
|
7
|
+
return r;
|
|
8
|
+
};
|
|
9
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.raw = exports.getStorybook = exports.forceReRender = exports.setAddon = exports.clearDecorators = exports.addParameters = exports.addDecorator = exports.configure = exports.storiesOf = void 0;
|
|
14
|
+
var client_1 = require("@storybook/core/client");
|
|
15
|
+
require("./globals");
|
|
16
|
+
var render_1 = require("./render");
|
|
17
|
+
var decorateStory_1 = __importDefault(require("./decorateStory"));
|
|
18
|
+
var framework = 'angular';
|
|
19
|
+
var api = client_1.start(render_1.renderToDOM, { decorateStory: decorateStory_1.default, render: render_1.render });
|
|
20
|
+
exports.storiesOf = function (kind, m) {
|
|
21
|
+
return api.clientApi.storiesOf(kind, m).addParameters({
|
|
22
|
+
framework: framework,
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
exports.configure = function () {
|
|
26
|
+
var args = [];
|
|
27
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
28
|
+
args[_i] = arguments[_i];
|
|
29
|
+
}
|
|
30
|
+
return api.configure.apply(api, __spreadArrays([framework], args));
|
|
31
|
+
};
|
|
32
|
+
exports.addDecorator = api.clientApi
|
|
33
|
+
.addDecorator;
|
|
34
|
+
exports.addParameters = api.clientApi
|
|
35
|
+
.addParameters;
|
|
36
|
+
exports.clearDecorators = api.clientApi.clearDecorators;
|
|
37
|
+
exports.setAddon = api.clientApi.setAddon;
|
|
38
|
+
exports.forceReRender = api.forceReRender;
|
|
39
|
+
exports.getStorybook = api.clientApi.getStorybook;
|
|
40
|
+
exports.raw = api.clientApi.raw;
|
|
@@ -0,0 +1,7 @@
|
|
|
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>;
|
|
@@ -0,0 +1,73 @@
|
|
|
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 __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.renderToDOM = exports.render = exports.rendererFactory = void 0;
|
|
40
|
+
var helpers_1 = require("./angular/helpers");
|
|
41
|
+
var RendererFactory_1 = require("./angular-beta/RendererFactory");
|
|
42
|
+
exports.rendererFactory = new RendererFactory_1.RendererFactory();
|
|
43
|
+
exports.render = function (props) { return ({ props: props }); };
|
|
44
|
+
function renderToDOM(_a, element) {
|
|
45
|
+
var storyFn = _a.storyFn, showMain = _a.showMain, forceRemount = _a.forceRemount, _b = _a.storyContext, parameters = _b.parameters, component = _b.component, id = _a.id;
|
|
46
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
47
|
+
var renderer;
|
|
48
|
+
return __generator(this, function (_c) {
|
|
49
|
+
switch (_c.label) {
|
|
50
|
+
case 0:
|
|
51
|
+
showMain();
|
|
52
|
+
if (parameters.angularLegacyRendering) {
|
|
53
|
+
helpers_1.renderNgApp(storyFn, !forceRemount);
|
|
54
|
+
return [2 /*return*/];
|
|
55
|
+
}
|
|
56
|
+
return [4 /*yield*/, exports.rendererFactory.getRendererInstance(id, element)];
|
|
57
|
+
case 1:
|
|
58
|
+
renderer = _c.sent();
|
|
59
|
+
return [4 /*yield*/, renderer.render({
|
|
60
|
+
storyFnAngular: storyFn(),
|
|
61
|
+
component: component,
|
|
62
|
+
parameters: parameters,
|
|
63
|
+
forced: !forceRemount,
|
|
64
|
+
targetDOMNode: element,
|
|
65
|
+
})];
|
|
66
|
+
case 2:
|
|
67
|
+
_c.sent();
|
|
68
|
+
return [2 /*return*/];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
exports.renderToDOM = renderToDOM;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Args, Parameters as DefaultParameters, StoryContext as DefaultStoryContext, ComponentAnnotations, StoryAnnotations, AnnotatedStoryFn } from '@storybook/csf';
|
|
2
|
+
import { StoryFnAngularReturnType } from './types';
|
|
3
|
+
export type { 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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Args } from '@storybook/csf';
|
|
2
|
+
import type { StoryObj } from './types-6-0';
|
|
3
|
+
export type { 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>;
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
var core_1 = require("@angular/core");
|
|
13
|
+
var ButtonComponent = /** @class */ (function () {
|
|
14
|
+
function ButtonComponent() {
|
|
15
|
+
this.text = '';
|
|
16
|
+
this.onClick = new core_1.EventEmitter();
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
core_1.Input(),
|
|
20
|
+
__metadata("design:type", Object)
|
|
21
|
+
], ButtonComponent.prototype, "text", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
core_1.Output(),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], ButtonComponent.prototype, "onClick", void 0);
|
|
26
|
+
ButtonComponent = __decorate([
|
|
27
|
+
core_1.Component({
|
|
28
|
+
selector: 'storybook-button-component',
|
|
29
|
+
template: " <button (click)=\"onClick.emit($event)\">{{ text }}</button> ",
|
|
30
|
+
styles: [
|
|
31
|
+
"\n button {\n border: 1px solid #eee;\n border-radius: 3px;\n background-color: #ffffff;\n cursor: pointer;\n font-size: 15px;\n padding: 3px 10px;\n margin: 10px;\n }\n ",
|
|
32
|
+
],
|
|
33
|
+
})
|
|
34
|
+
], ButtonComponent);
|
|
35
|
+
return ButtonComponent;
|
|
36
|
+
}());
|
|
37
|
+
exports.default = ButtonComponent;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
var core_1 = require("@angular/core");
|
|
13
|
+
var WelcomeComponent = /** @class */ (function () {
|
|
14
|
+
function WelcomeComponent() {
|
|
15
|
+
this.showApp = new core_1.EventEmitter();
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
core_1.Output(),
|
|
19
|
+
__metadata("design:type", Object)
|
|
20
|
+
], WelcomeComponent.prototype, "showApp", void 0);
|
|
21
|
+
WelcomeComponent = __decorate([
|
|
22
|
+
core_1.Component({
|
|
23
|
+
selector: 'storybook-welcome-component',
|
|
24
|
+
template: "\n <main>\n <h1>Welcome to storybook</h1>\n <p>This is a UI component dev environment for your app.</p>\n <p>\n We've added some basic stories inside the\n <span class=\"inline-code\">src/stories</span> directory. <br />\n A story is a single state of one or more UI components. You can have as many stories as you\n want. <br />\n (Basically a story is like a visual test case.)\n </p>\n <p>\n See these sample\n <a (click)=\"showApp.emit($event)\" role=\"button\" tabIndex=\"0\">stories</a> for a component\n called <span class=\"inline-code\">Button</span> .\n </p>\n <p>\n Just like that, you can add your own components as stories. <br />\n You can also edit those components and see changes right away. <br />\n (Try editing the <span class=\"inline-code\">Button</span> stories located at\n <span class=\"inline-code\">src/stories/index.js</span>.)\n </p>\n <p>\n Usually we create stories with smaller UI components in the app.<br />\n Have a look at the\n <a\n href=\"https://storybook.js.org/basics/writing-stories\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n Writing Stories\n </a>\n section in our documentation.\n </p>\n <p class=\"note\">\n <b>NOTE:</b> <br />\n Have a look at the <span class=\"inline-code\">.storybook/webpack.config.js</span> to add\n webpack loaders and plugins you are using in this project.\n </p>\n </main>\n ",
|
|
25
|
+
styles: [
|
|
26
|
+
"\n main {\n padding: 15px;\n line-height: 1.4;\n font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;\n background-color: #ffffff;\n }\n\n .note {\n opacity: 0.5;\n }\n\n .inline-code {\n font-size: 15px;\n font-weight: 600;\n padding: 2px 5px;\n border: 1px solid #eae9e9;\n border-radius: 4px;\n background-color: #f3f2f2;\n color: #3a3a3a;\n }\n\n a {\n color: #1474f3;\n text-decoration: none;\n border-bottom: 1px solid #1474f3;\n padding-bottom: 2px;\n }\n ",
|
|
27
|
+
],
|
|
28
|
+
})
|
|
29
|
+
], WelcomeComponent);
|
|
30
|
+
return WelcomeComponent;
|
|
31
|
+
}());
|
|
32
|
+
exports.default = WelcomeComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './client';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./client"), exports);
|
|
14
|
+
/*
|
|
15
|
+
* ATTENTION:
|
|
16
|
+
* - moduleMetadata
|
|
17
|
+
* - NgModuleMetadata
|
|
18
|
+
* - ICollection
|
|
19
|
+
*
|
|
20
|
+
* These typings are coped out of decorators.d.ts and types.d.ts in order to fix a bug with tsc
|
|
21
|
+
* It was imported out of dist before which was not the proper way of exporting public API
|
|
22
|
+
*
|
|
23
|
+
* This can be fixed by migrating app/angular to typescript
|
|
24
|
+
*/
|
|
@@ -0,0 +1,4 @@
|
|
|
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';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var ComputesTemplateFromComponent_1 = require("./client/preview/angular-beta/ComputesTemplateFromComponent");
|
|
4
|
+
Object.defineProperty(exports, "computesTemplateSourceFromComponent", { enumerable: true, get: function () { return ComputesTemplateFromComponent_1.computesTemplateSourceFromComponent; } });
|
|
5
|
+
var render_1 = require("./client/preview/render");
|
|
6
|
+
Object.defineProperty(exports, "rendererFactory", { enumerable: true, get: function () { return render_1.rendererFactory; } });
|
|
7
|
+
var AbstractRenderer_1 = require("./client/preview/angular-beta/AbstractRenderer");
|
|
8
|
+
Object.defineProperty(exports, "AbstractRenderer", { enumerable: true, get: function () { return AbstractRenderer_1.AbstractRenderer; } });
|
|
9
|
+
var StorybookModule_1 = require("./client/preview/angular-beta/StorybookModule");
|
|
10
|
+
Object.defineProperty(exports, "getStorybookModuleMetadata", { enumerable: true, get: function () { return StorybookModule_1.getStorybookModuleMetadata; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const not = "empty";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"sourceMap": true,
|
|
4
|
+
"moduleResolution": "node",
|
|
5
|
+
"emitDecoratorMetadata": true,
|
|
6
|
+
"experimentalDecorators": true,
|
|
7
|
+
"allowSyntheticDefaultImports": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"target": "es5",
|
|
11
|
+
"lib": ["es2017", "dom"]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"projects": {
|
|
4
|
+
"foo-project": {
|
|
5
|
+
"root": "",
|
|
6
|
+
"architect": {
|
|
7
|
+
"build": {
|
|
8
|
+
"options": {
|
|
9
|
+
"optimization": false,
|
|
10
|
+
"tsConfig": "src/tsconfig.app.json",
|
|
11
|
+
"assets": []
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"defaultProject": "foo-project"
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const not = "empty";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"sourceMap": true,
|
|
4
|
+
"moduleResolution": "node",
|
|
5
|
+
"emitDecoratorMetadata": true,
|
|
6
|
+
"experimentalDecorators": true,
|
|
7
|
+
"allowSyntheticDefaultImports": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"target": "es5",
|
|
11
|
+
"lib": ["es2017", "dom"]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"projects": {
|
|
4
|
+
"foo-project": {
|
|
5
|
+
"root": "",
|
|
6
|
+
"architect": {
|
|
7
|
+
"build": {
|
|
8
|
+
"options": {
|
|
9
|
+
"tsConfig": "src/tsconfig.app.json",
|
|
10
|
+
"assets": []
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"no-confs-project": {
|
|
16
|
+
"root": "",
|
|
17
|
+
"architect": {
|
|
18
|
+
"target-build": {
|
|
19
|
+
"options": {
|
|
20
|
+
"tsConfig": "src/tsconfig.app.json",
|
|
21
|
+
"assets": []
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"no-target-conf-project": {
|
|
27
|
+
"root": "",
|
|
28
|
+
"architect": {
|
|
29
|
+
"target-build": {
|
|
30
|
+
"options": {
|
|
31
|
+
"tsConfig": "src/tsconfig.app.json",
|
|
32
|
+
"assets": []
|
|
33
|
+
},
|
|
34
|
+
"configurations": {
|
|
35
|
+
"other-conf": {
|
|
36
|
+
"styles": ["src/styles.css"]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"target-project": {
|
|
43
|
+
"root": "",
|
|
44
|
+
"architect": {
|
|
45
|
+
"target-build": {
|
|
46
|
+
"options": {
|
|
47
|
+
"tsConfig": "src/tsconfig.app.json",
|
|
48
|
+
"assets": []
|
|
49
|
+
},
|
|
50
|
+
"configurations": {
|
|
51
|
+
"target-conf": {
|
|
52
|
+
"styles": ["src/styles.css"]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"defaultProject": "foo-project"
|
|
60
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const not = "empty";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"sourceMap": true,
|
|
4
|
+
"moduleResolution": "node",
|
|
5
|
+
"emitDecoratorMetadata": true,
|
|
6
|
+
"experimentalDecorators": true,
|
|
7
|
+
"allowSyntheticDefaultImports": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"target": "es5",
|
|
11
|
+
"lib": ["es2017", "dom"]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"projects": {
|
|
6
|
+
"pattern-lib": {
|
|
7
|
+
"projectType": "library",
|
|
8
|
+
"root": "projects/pattern-lib",
|
|
9
|
+
"sourceRoot": "projects/pattern-lib/src",
|
|
10
|
+
"prefix": "lib",
|
|
11
|
+
"architect": {
|
|
12
|
+
"build": {
|
|
13
|
+
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
14
|
+
"options": {
|
|
15
|
+
"tsConfig": "projects/pattern-lib/tsconfig.lib.json",
|
|
16
|
+
"project": "projects/pattern-lib/ng-package.json"
|
|
17
|
+
},
|
|
18
|
+
"configurations": {
|
|
19
|
+
"production": {
|
|
20
|
+
"tsConfig": "projects/pattern-lib/tsconfig.lib.prod.json"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"defaultProject": "pattern-lib"
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const not = "empty";
|
package/dist/ts3.9/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/tsconfig.lib.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
+
{
|
|
3
|
+
"extends": "../../tsconfig.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "../../out-tsc/lib",
|
|
6
|
+
"target": "es2015",
|
|
7
|
+
"declaration": true,
|
|
8
|
+
"declarationMap": true,
|
|
9
|
+
"inlineSources": true,
|
|
10
|
+
"types": [],
|
|
11
|
+
"lib": [
|
|
12
|
+
"dom",
|
|
13
|
+
"es2018"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"angularCompilerOptions": {
|
|
17
|
+
"skipTemplateCodegen": true,
|
|
18
|
+
"strictMetadataEmit": true,
|
|
19
|
+
"enableResourceInlining": true
|
|
20
|
+
},
|
|
21
|
+
"exclude": [
|
|
22
|
+
"src/test.ts",
|
|
23
|
+
"**/*.spec.ts"
|
|
24
|
+
]
|
|
25
|
+
}
|