@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.
Files changed (211) hide show
  1. package/dist/ts3.4/builders/build-storybook/index.d.ts +12 -0
  2. package/dist/ts3.4/builders/start-storybook/index.d.ts +12 -0
  3. package/dist/ts3.4/builders/utils/build-standalone-errors-handler.d.ts +1 -0
  4. package/dist/ts3.4/builders/utils/run-compodoc.d.ts +6 -0
  5. package/dist/ts3.4/client/index.d.ts +4 -0
  6. package/dist/ts3.4/client/preview/angular/app.token.d.ts +3 -0
  7. package/dist/ts3.4/client/preview/angular/components/app.component.d.ts +38 -0
  8. package/dist/ts3.4/client/preview/angular/helpers.d.ts +8 -0
  9. package/dist/ts3.4/client/preview/angular-beta/AbstractRenderer.d.ts +44 -0
  10. package/dist/ts3.4/client/preview/angular-beta/CanvasRenderer.d.ts +14 -0
  11. package/dist/ts3.4/client/preview/angular-beta/ComputesTemplateFromComponent.d.ts +17 -0
  12. package/dist/ts3.4/client/preview/angular-beta/DocsRenderer.d.ts +14 -0
  13. package/dist/ts3.4/client/preview/angular-beta/RendererFactory.d.ts +11 -0
  14. package/dist/ts3.4/client/preview/angular-beta/StorybookModule.d.ts +9 -0
  15. package/dist/ts3.4/client/preview/angular-beta/StorybookProvider.d.ts +5 -0
  16. package/dist/ts3.4/client/preview/angular-beta/StorybookWrapperComponent.d.ts +9 -0
  17. package/dist/ts3.4/client/preview/angular-beta/utils/NgComponentAnalyzer.d.ts +26 -0
  18. package/dist/ts3.4/client/preview/angular-beta/utils/NgModulesAnalyzer.d.ts +6 -0
  19. package/dist/ts3.4/client/preview/angular-polyfills.d.ts +41 -0
  20. package/dist/ts3.4/client/preview/config.d.ts +5 -0
  21. package/dist/ts3.4/client/preview/decorateStory.d.ts +4 -0
  22. package/dist/ts3.4/client/preview/decorators.d.ts +6 -0
  23. package/dist/ts3.4/client/preview/globals.d.ts +1 -0
  24. package/dist/ts3.4/client/preview/index.d.ts +25 -0
  25. package/dist/ts3.4/client/preview/render.d.ts +7 -0
  26. package/dist/ts3.4/client/preview/types-6-0.d.ts +42 -0
  27. package/dist/ts3.4/client/preview/types-7-0.d.ts +9 -0
  28. package/dist/ts3.4/client/preview/types.d.ts +29 -0
  29. package/dist/ts3.4/demo/button.component.d.ts +5 -0
  30. package/dist/ts3.4/demo/welcome.component.d.ts +4 -0
  31. package/dist/ts3.4/public_api.d.ts +1 -0
  32. package/dist/ts3.4/renderer.d.ts +4 -0
  33. package/dist/ts3.4/server/__mocks-ng-workspace__/minimal-config/src/main.d.ts +1 -0
  34. package/dist/ts3.4/server/__mocks-ng-workspace__/some-config/src/main.d.ts +1 -0
  35. package/dist/ts3.4/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.d.ts +1 -0
  36. package/dist/ts3.4/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.d.ts +1 -0
  37. package/dist/ts3.4/server/__mocks-ng-workspace__/with-nx/src/main.d.ts +1 -0
  38. package/dist/ts3.4/server/__mocks-ng-workspace__/with-nx-workspace/src/main.d.ts +1 -0
  39. package/dist/ts3.4/server/__mocks-ng-workspace__/with-options-styles/src/main.d.ts +1 -0
  40. package/dist/ts3.4/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.d.ts +1 -0
  41. package/dist/ts3.4/server/__mocks-ng-workspace__/without-tsConfig/src/main.d.ts +1 -0
  42. package/dist/ts3.4/server/angular-devkit-build-webpack.d.ts +30 -0
  43. package/dist/ts3.4/server/angular-read-workspace.d.ts +13 -0
  44. package/dist/ts3.4/server/build.d.ts +1 -0
  45. package/dist/ts3.4/server/create-fork-ts-checker-plugin.d.ts +3 -0
  46. package/dist/ts3.4/server/framework-preset-angular-cli.d.ts +73 -0
  47. package/dist/ts3.4/server/framework-preset-angular-ivy.d.ts +10 -0
  48. package/dist/ts3.4/server/framework-preset-angular.d.ts +4 -0
  49. package/dist/ts3.4/server/index.d.ts +1 -0
  50. package/dist/ts3.4/server/ngx-template-loader/index.d.ts +1 -0
  51. package/dist/ts3.4/server/options.d.ts +3 -0
  52. package/dist/ts3.4/server/preset.d.ts +3 -0
  53. package/dist/ts3.4/server/ts_config.d.ts +2 -0
  54. package/dist/ts3.4/server/utils/filter-out-styling-rules.d.ts +2 -0
  55. package/dist/ts3.4/server/utils/module-is-available.d.ts +1 -0
  56. package/dist/ts3.4/server/utils/normalize-asset-patterns.d.ts +6 -0
  57. package/dist/ts3.4/server/utils/normalize-optimization.d.ts +3 -0
  58. package/dist/ts3.4/types/index.d.ts +6 -0
  59. package/dist/ts3.9/builders/build-storybook/index.d.ts +12 -0
  60. package/dist/ts3.9/builders/build-storybook/index.js +114 -0
  61. package/dist/ts3.9/builders/build-storybook/schema.json +72 -0
  62. package/dist/ts3.9/builders/builders.json +14 -0
  63. package/dist/ts3.9/builders/start-storybook/index.d.ts +12 -0
  64. package/dist/ts3.9/builders/start-storybook/index.js +117 -0
  65. package/dist/ts3.9/builders/start-storybook/schema.json +99 -0
  66. package/dist/ts3.9/builders/utils/build-standalone-errors-handler.d.ts +1 -0
  67. package/dist/ts3.9/builders/utils/build-standalone-errors-handler.js +36 -0
  68. package/dist/ts3.9/builders/utils/run-compodoc.d.ts +6 -0
  69. package/dist/ts3.9/builders/utils/run-compodoc.js +45 -0
  70. package/dist/ts3.9/client/index.d.ts +4 -0
  71. package/dist/ts3.9/client/index.js +28 -0
  72. package/dist/ts3.9/client/preview/angular/app.token.d.ts +3 -0
  73. package/dist/ts3.9/client/preview/angular/app.token.js +5 -0
  74. package/dist/ts3.9/client/preview/angular/components/app.component.d.ts +38 -0
  75. package/dist/ts3.9/client/preview/angular/components/app.component.js +146 -0
  76. package/dist/ts3.9/client/preview/angular/helpers.d.ts +8 -0
  77. package/dist/ts3.9/client/preview/angular/helpers.js +165 -0
  78. package/dist/ts3.9/client/preview/angular-beta/AbstractRenderer.d.ts +44 -0
  79. package/dist/ts3.9/client/preview/angular-beta/AbstractRenderer.js +215 -0
  80. package/dist/ts3.9/client/preview/angular-beta/CanvasRenderer.d.ts +14 -0
  81. package/dist/ts3.9/client/preview/angular-beta/CanvasRenderer.js +97 -0
  82. package/dist/ts3.9/client/preview/angular-beta/ComputesTemplateFromComponent.d.ts +17 -0
  83. package/dist/ts3.9/client/preview/angular-beta/ComputesTemplateFromComponent.js +112 -0
  84. package/dist/ts3.9/client/preview/angular-beta/DocsRenderer.d.ts +14 -0
  85. package/dist/ts3.9/client/preview/angular-beta/DocsRenderer.js +145 -0
  86. package/dist/ts3.9/client/preview/angular-beta/RendererFactory.d.ts +11 -0
  87. package/dist/ts3.9/client/preview/angular-beta/RendererFactory.js +101 -0
  88. package/dist/ts3.9/client/preview/angular-beta/StorybookModule.d.ts +9 -0
  89. package/dist/ts3.9/client/preview/angular-beta/StorybookModule.js +78 -0
  90. package/dist/ts3.9/client/preview/angular-beta/StorybookProvider.d.ts +5 -0
  91. package/dist/ts3.9/client/preview/angular-beta/StorybookProvider.js +27 -0
  92. package/dist/ts3.9/client/preview/angular-beta/StorybookWrapperComponent.d.ts +9 -0
  93. package/dist/ts3.9/client/preview/angular-beta/StorybookWrapperComponent.js +155 -0
  94. package/dist/ts3.9/client/preview/angular-beta/utils/NgComponentAnalyzer.d.ts +26 -0
  95. package/dist/ts3.9/client/preview/angular-beta/utils/NgComponentAnalyzer.js +124 -0
  96. package/dist/ts3.9/client/preview/angular-beta/utils/NgModulesAnalyzer.d.ts +6 -0
  97. package/dist/ts3.9/client/preview/angular-beta/utils/NgModulesAnalyzer.js +44 -0
  98. package/dist/ts3.9/client/preview/angular-polyfills.d.ts +41 -0
  99. package/dist/ts3.9/client/preview/angular-polyfills.js +61 -0
  100. package/dist/ts3.9/client/preview/config.d.ts +5 -0
  101. package/dist/ts3.9/client/preview/config.js +9 -0
  102. package/dist/ts3.9/client/preview/decorateStory.d.ts +4 -0
  103. package/dist/ts3.9/client/preview/decorateStory.js +64 -0
  104. package/dist/ts3.9/client/preview/decorators.d.ts +6 -0
  105. package/dist/ts3.9/client/preview/decorators.js +49 -0
  106. package/dist/ts3.9/client/preview/globals.d.ts +1 -0
  107. package/dist/ts3.9/client/preview/globals.js +9 -0
  108. package/dist/ts3.9/client/preview/index.d.ts +25 -0
  109. package/dist/ts3.9/client/preview/index.js +40 -0
  110. package/dist/ts3.9/client/preview/render.d.ts +7 -0
  111. package/dist/ts3.9/client/preview/render.js +73 -0
  112. package/dist/ts3.9/client/preview/types-6-0.d.ts +42 -0
  113. package/dist/ts3.9/client/preview/types-6-0.js +2 -0
  114. package/dist/ts3.9/client/preview/types-7-0.d.ts +9 -0
  115. package/dist/ts3.9/client/preview/types-7-0.js +2 -0
  116. package/dist/ts3.9/client/preview/types.d.ts +29 -0
  117. package/dist/ts3.9/client/preview/types.js +2 -0
  118. package/dist/ts3.9/demo/button.component.d.ts +5 -0
  119. package/dist/ts3.9/demo/button.component.js +37 -0
  120. package/dist/ts3.9/demo/welcome.component.d.ts +4 -0
  121. package/dist/ts3.9/demo/welcome.component.js +32 -0
  122. package/dist/ts3.9/public_api.d.ts +1 -0
  123. package/dist/ts3.9/public_api.js +24 -0
  124. package/dist/ts3.9/renderer.d.ts +4 -0
  125. package/dist/ts3.9/renderer.js +10 -0
  126. package/dist/ts3.9/server/__mocks-ng-workspace__/empty-projects-entry/angular.json +4 -0
  127. package/dist/ts3.9/server/__mocks-ng-workspace__/minimal-config/angular.json +17 -0
  128. package/dist/ts3.9/server/__mocks-ng-workspace__/minimal-config/src/main.d.ts +1 -0
  129. package/dist/ts3.9/server/__mocks-ng-workspace__/minimal-config/src/main.js +5 -0
  130. package/dist/ts3.9/server/__mocks-ng-workspace__/minimal-config/src/tsconfig.app.json +9 -0
  131. package/dist/ts3.9/server/__mocks-ng-workspace__/minimal-config/tsconfig.json +13 -0
  132. package/dist/ts3.9/server/__mocks-ng-workspace__/some-config/angular.json +18 -0
  133. package/dist/ts3.9/server/__mocks-ng-workspace__/some-config/src/main.d.ts +1 -0
  134. package/dist/ts3.9/server/__mocks-ng-workspace__/some-config/src/main.js +5 -0
  135. package/dist/ts3.9/server/__mocks-ng-workspace__/some-config/src/tsconfig.app.json +9 -0
  136. package/dist/ts3.9/server/__mocks-ng-workspace__/some-config/tsconfig.json +13 -0
  137. package/dist/ts3.9/server/__mocks-ng-workspace__/with-angularBrowserTarget/angular.json +60 -0
  138. package/dist/ts3.9/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.d.ts +1 -0
  139. package/dist/ts3.9/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/main.js +5 -0
  140. package/dist/ts3.9/server/__mocks-ng-workspace__/with-angularBrowserTarget/src/tsconfig.app.json +9 -0
  141. package/dist/ts3.9/server/__mocks-ng-workspace__/with-angularBrowserTarget/tsconfig.json +13 -0
  142. package/dist/ts3.9/server/__mocks-ng-workspace__/with-lib/angular.json +28 -0
  143. package/dist/ts3.9/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.d.ts +1 -0
  144. package/dist/ts3.9/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/src/main.js +5 -0
  145. package/dist/ts3.9/server/__mocks-ng-workspace__/with-lib/projects/pattern-lib/tsconfig.lib.json +25 -0
  146. package/dist/ts3.9/server/__mocks-ng-workspace__/with-lib/tsconfig.json +13 -0
  147. package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx/angular.json +17 -0
  148. package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx/nx.json +3 -0
  149. package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx/src/main.d.ts +1 -0
  150. package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx/src/main.js +5 -0
  151. package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx/src/tsconfig.app.json +8 -0
  152. package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx/tsconfig.json +14 -0
  153. package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx-workspace/nx.json +3 -0
  154. package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx-workspace/src/main.d.ts +1 -0
  155. package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx-workspace/src/main.js +5 -0
  156. package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx-workspace/src/tsconfig.app.json +8 -0
  157. package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx-workspace/tsconfig.json +14 -0
  158. package/dist/ts3.9/server/__mocks-ng-workspace__/with-nx-workspace/workspace.json +17 -0
  159. package/dist/ts3.9/server/__mocks-ng-workspace__/with-options-styles/angular.json +17 -0
  160. package/dist/ts3.9/server/__mocks-ng-workspace__/with-options-styles/src/main.d.ts +1 -0
  161. package/dist/ts3.9/server/__mocks-ng-workspace__/with-options-styles/src/main.js +5 -0
  162. package/dist/ts3.9/server/__mocks-ng-workspace__/with-options-styles/src/tsconfig.app.json +9 -0
  163. package/dist/ts3.9/server/__mocks-ng-workspace__/with-options-styles/tsconfig.json +13 -0
  164. package/dist/ts3.9/server/__mocks-ng-workspace__/without-architect-build/angular.json +5 -0
  165. package/dist/ts3.9/server/__mocks-ng-workspace__/without-architect-build-options/angular.json +11 -0
  166. package/dist/ts3.9/server/__mocks-ng-workspace__/without-compatible-projects/angular.json +7 -0
  167. package/dist/ts3.9/server/__mocks-ng-workspace__/without-projects-entry/angular.json +3 -0
  168. package/dist/ts3.9/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.d.ts +1 -0
  169. package/dist/ts3.9/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/src/main.js +5 -0
  170. package/dist/ts3.9/server/__mocks-ng-workspace__/without-projects-entry/projects/pattern-lib/tsconfig.lib.json +25 -0
  171. package/dist/ts3.9/server/__mocks-ng-workspace__/without-projects-entry/tsconfig.json +13 -0
  172. package/dist/ts3.9/server/__mocks-ng-workspace__/without-tsConfig/angular.json +16 -0
  173. package/dist/ts3.9/server/__mocks-ng-workspace__/without-tsConfig/src/main.d.ts +1 -0
  174. package/dist/ts3.9/server/__mocks-ng-workspace__/without-tsConfig/src/main.js +5 -0
  175. package/dist/ts3.9/server/__mocks-ng-workspace__/without-tsConfig/src/tsconfig.app.json +9 -0
  176. package/dist/ts3.9/server/__mocks-ng-workspace__/without-tsConfig/tsconfig.json +13 -0
  177. package/dist/ts3.9/server/angular-devkit-build-webpack.d.ts +30 -0
  178. package/dist/ts3.9/server/angular-devkit-build-webpack.js +213 -0
  179. package/dist/ts3.9/server/angular-read-workspace.d.ts +13 -0
  180. package/dist/ts3.9/server/angular-read-workspace.js +118 -0
  181. package/dist/ts3.9/server/build.d.ts +1 -0
  182. package/dist/ts3.9/server/build.js +65 -0
  183. package/dist/ts3.9/server/create-fork-ts-checker-plugin.d.ts +3 -0
  184. package/dist/ts3.9/server/create-fork-ts-checker-plugin.js +19 -0
  185. package/dist/ts3.9/server/framework-preset-angular-cli.d.ts +73 -0
  186. package/dist/ts3.9/server/framework-preset-angular-cli.js +159 -0
  187. package/dist/ts3.9/server/framework-preset-angular-ivy.d.ts +10 -0
  188. package/dist/ts3.9/server/framework-preset-angular-ivy.js +111 -0
  189. package/dist/ts3.9/server/framework-preset-angular.d.ts +4 -0
  190. package/dist/ts3.9/server/framework-preset-angular.js +74 -0
  191. package/dist/ts3.9/server/index.d.ts +1 -0
  192. package/dist/ts3.9/server/index.js +8 -0
  193. package/dist/ts3.9/server/ngx-template-loader/index.d.ts +1 -0
  194. package/dist/ts3.9/server/ngx-template-loader/index.js +46 -0
  195. package/dist/ts3.9/server/options.d.ts +3 -0
  196. package/dist/ts3.9/server/options.js +8 -0
  197. package/dist/ts3.9/server/preset.d.ts +3 -0
  198. package/dist/ts3.9/server/preset.js +21 -0
  199. package/dist/ts3.9/server/ts_config.d.ts +2 -0
  200. package/dist/ts3.9/server/ts_config.js +28 -0
  201. package/dist/ts3.9/server/utils/filter-out-styling-rules.d.ts +2 -0
  202. package/dist/ts3.9/server/utils/filter-out-styling-rules.js +16 -0
  203. package/dist/ts3.9/server/utils/module-is-available.d.ts +1 -0
  204. package/dist/ts3.9/server/utils/module-is-available.js +12 -0
  205. package/dist/ts3.9/server/utils/normalize-asset-patterns.d.ts +6 -0
  206. package/dist/ts3.9/server/utils/normalize-asset-patterns.js +79 -0
  207. package/dist/ts3.9/server/utils/normalize-optimization.d.ts +3 -0
  208. package/dist/ts3.9/server/utils/normalize-optimization.js +20 -0
  209. package/dist/ts3.9/types/index.d.ts +6 -0
  210. package/dist/ts3.9/types/index.js +2 -0
  211. package/package.json +9 -9
@@ -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,17 @@
1
+ {
2
+ "version": 1,
3
+ "projects": {
4
+ "foo-project": {
5
+ "root": "",
6
+ "architect": {
7
+ "build": {
8
+ "options": {
9
+ "tsConfig": "src/tsconfig.app.json",
10
+ "styles": ["src/styles.css", "src/styles.scss"]
11
+ }
12
+ }
13
+ }
14
+ }
15
+ },
16
+ "defaultProject": "foo-project"
17
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "npmScope": "nx-example"
3
+ }
@@ -0,0 +1 @@
1
+ export declare const not = "empty";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.not = void 0;
4
+ // To avoid "No inputs were found in config file" tsc error
5
+ exports.not = 'empty';
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "baseUrl": "./",
5
+ "module": "es2015",
6
+ "types": ["node"]
7
+ }
8
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "include": ["./src"],
3
+ "compilerOptions": {
4
+ "sourceMap": true,
5
+ "moduleResolution": "node",
6
+ "emitDecoratorMetadata": true,
7
+ "experimentalDecorators": true,
8
+ "allowSyntheticDefaultImports": true,
9
+ "esModuleInterop": true,
10
+ "skipLibCheck": true,
11
+ "target": "es5",
12
+ "lib": ["es2017", "dom"]
13
+ }
14
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "npmScope": "nx-example"
3
+ }
@@ -0,0 +1 @@
1
+ export declare const not = "empty";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.not = void 0;
4
+ // To avoid "No inputs were found in config file" tsc error
5
+ exports.not = 'empty';
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "baseUrl": "./",
5
+ "module": "es2015",
6
+ "types": ["node"]
7
+ }
8
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "include": ["./src"],
3
+ "compilerOptions": {
4
+ "sourceMap": true,
5
+ "moduleResolution": "node",
6
+ "emitDecoratorMetadata": true,
7
+ "experimentalDecorators": true,
8
+ "allowSyntheticDefaultImports": true,
9
+ "esModuleInterop": true,
10
+ "skipLibCheck": true,
11
+ "target": "es5",
12
+ "lib": ["es2017", "dom"]
13
+ }
14
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "version": 1,
3
+ "projects": {
4
+ "foo-project": {
5
+ "root": "",
6
+ "architect": {
7
+ "build": {
8
+ "options": {
9
+ "tsConfig": "src/tsconfig.app.json",
10
+ "styles": ["src/styles.css", "src/styles.scss"]
11
+ }
12
+ }
13
+ }
14
+ }
15
+ },
16
+ "defaultProject": "foo-project"
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "version": 1,
3
+ "projects": {
4
+ "foo-project": {
5
+ "root": "",
6
+ "architect": {
7
+ "build": {
8
+ "options": {
9
+ "tsConfig": "src/tsconfig.app.json",
10
+ "styles": ["src/styles.css", "src/styles.scss"]
11
+ }
12
+ }
13
+ }
14
+ }
15
+ },
16
+ "defaultProject": "foo-project"
17
+ }
@@ -0,0 +1 @@
1
+ export declare const not = "empty";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.not = void 0;
4
+ // To avoid "No inputs were found in config file" tsc error
5
+ exports.not = 'empty';
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "baseUrl": "./",
5
+ "module": "es2015",
6
+ "types": ["node"]
7
+ },
8
+ "exclude": ["karma.ts", "**/*.spec.ts"]
9
+ }
@@ -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,5 @@
1
+ {
2
+ "version": 1,
3
+ "projects": { "foo-project": {} },
4
+ "defaultProject": "foo-project"
5
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "version": 1,
3
+ "projects": {
4
+ "foo-project": {
5
+ "architect": {
6
+ "build": {}
7
+ }
8
+ }
9
+ },
10
+ "defaultProject": "foo-project"
11
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 1,
3
+ "projects": {
4
+ "noop-project": {}
5
+ },
6
+ "defaultProject": "missing-project"
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.not = void 0;
4
+ // To avoid "No inputs were found in config file" tsc error
5
+ exports.not = 'empty';
@@ -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
+ }
@@ -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,16 @@
1
+ {
2
+ "version": 1,
3
+ "projects": {
4
+ "foo-project": {
5
+ "root": "",
6
+ "architect": {
7
+ "build": {
8
+ "options": {
9
+ "assets": []
10
+ }
11
+ }
12
+ }
13
+ }
14
+ },
15
+ "defaultProject": "foo-project"
16
+ }
@@ -0,0 +1 @@
1
+ export declare const not = "empty";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.not = void 0;
4
+ // To avoid "No inputs were found in config file" tsc error
5
+ exports.not = 'empty';
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "baseUrl": "./",
5
+ "module": "es2015",
6
+ "types": ["node"]
7
+ },
8
+ "exclude": ["karma.ts", "**/*.spec.ts"]
9
+ }
@@ -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,30 @@
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>;
@@ -0,0 +1,213 @@
1
+ "use strict";
2
+ /**
3
+ * This file is to be watched !
4
+ * The code must be compatible from @angular-devkit version 6.1.0 to the latest supported
5
+ *
6
+ * It uses code block of angular cli to extract parts of webpack configuration
7
+ */
8
+ var __assign = (this && this.__assign) || function () {
9
+ __assign = Object.assign || function(t) {
10
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
11
+ s = arguments[i];
12
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
13
+ t[p] = s[p];
14
+ }
15
+ return t;
16
+ };
17
+ return __assign.apply(this, arguments);
18
+ };
19
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
20
+ if (k2 === undefined) k2 = k;
21
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || function (mod) {
32
+ if (mod && mod.__esModule) return mod;
33
+ var result = {};
34
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
35
+ __setModuleDefault(result, mod);
36
+ return result;
37
+ };
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __generator = (this && this.__generator) || function (thisArg, body) {
48
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
49
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
50
+ function verb(n) { return function (v) { return step([n, v]); }; }
51
+ function step(op) {
52
+ if (f) throw new TypeError("Generator is already executing.");
53
+ while (_) try {
54
+ 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;
55
+ if (y = 0, t) op = [op[0] & 2, t.value];
56
+ switch (op[0]) {
57
+ case 0: case 1: t = op; break;
58
+ case 4: _.label++; return { value: op[1], done: false };
59
+ case 5: _.label++; y = op[1]; op = [0]; continue;
60
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
61
+ default:
62
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
63
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
64
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
65
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
66
+ if (t[2]) _.ops.pop();
67
+ _.trys.pop(); continue;
68
+ }
69
+ op = body.call(thisArg, _);
70
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
71
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
72
+ }
73
+ };
74
+ var __spreadArrays = (this && this.__spreadArrays) || function () {
75
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
76
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
77
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
78
+ r[k] = a[j];
79
+ return r;
80
+ };
81
+ var __importDefault = (this && this.__importDefault) || function (mod) {
82
+ return (mod && mod.__esModule) ? mod : { "default": mod };
83
+ };
84
+ Object.defineProperty(exports, "__esModule", { value: true });
85
+ exports.extractAngularCliWebpackConfig = void 0;
86
+ var path_1 = __importDefault(require("path"));
87
+ var core_1 = require("@angular-devkit/core");
88
+ var node_1 = require("@angular-devkit/core/node");
89
+ var module_is_available_1 = require("./utils/module-is-available");
90
+ var normalize_asset_patterns_1 = require("./utils/normalize-asset-patterns");
91
+ var normalize_optimization_1 = require("./utils/normalize-optimization");
92
+ var importAngularCliWebpackConfigGenerator = function () {
93
+ var angularWebpackConfig;
94
+ // First we look for webpack config according to directory structure of Angular 11
95
+ if (module_is_available_1.moduleIsAvailable('@angular-devkit/build-angular/src/webpack/configs')) {
96
+ // eslint-disable-next-line global-require
97
+ angularWebpackConfig = require('@angular-devkit/build-angular/src/webpack/configs');
98
+ }
99
+ // We fallback on directory structure of Angular 10 (and below)
100
+ else if (module_is_available_1.moduleIsAvailable('@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs')) {
101
+ // eslint-disable-next-line global-require
102
+ angularWebpackConfig = require('@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs');
103
+ }
104
+ else {
105
+ throw new Error('Webpack config not found in "@angular-devkit/build-angular"');
106
+ }
107
+ return {
108
+ getCommonConfig: angularWebpackConfig.getCommonConfig,
109
+ getStylesConfig: angularWebpackConfig.getStylesConfig,
110
+ };
111
+ };
112
+ var importAngularCliReadTsconfigUtil = function () {
113
+ // First we look for webpack config according to directory structure of Angular 11
114
+ if (module_is_available_1.moduleIsAvailable('@angular-devkit/build-angular/src/utils/read-tsconfig')) {
115
+ // eslint-disable-next-line global-require
116
+ return require('@angular-devkit/build-angular/src/utils/read-tsconfig');
117
+ }
118
+ // We fallback on directory structure of Angular 10 (and below)
119
+ if (module_is_available_1.moduleIsAvailable('@angular-devkit/build-angular/src/angular-cli-files/utilities/read-tsconfig')) {
120
+ // eslint-disable-next-line global-require
121
+ return require('@angular-devkit/build-angular/src/angular-cli-files/utilities/read-tsconfig');
122
+ }
123
+ throw new Error('ReadTsconfig not found in "@angular-devkit/build-angular"');
124
+ };
125
+ var buildWebpackConfigOptions = function (dirToSearch, project, target, confName) { return __awaiter(void 0, void 0, void 0, function () {
126
+ var conf, projectBuildOptions, requiredOptions, workspaceRootNormalized, projectRootNormalized, sourceRootNormalized, tsConfigPath, tsConfig, ts, scriptTarget, buildOptions;
127
+ return __generator(this, function (_a) {
128
+ switch (_a.label) {
129
+ case 0:
130
+ conf = {};
131
+ if (confName) {
132
+ if (!target.configurations) {
133
+ throw new Error('Missing "configurations" section in project target');
134
+ }
135
+ if (!target.configurations[confName]) {
136
+ throw new Error("Missing required configuration in project target. Check \"" + confName + "\"");
137
+ }
138
+ conf = target.configurations[confName];
139
+ }
140
+ projectBuildOptions = __assign(__assign({}, target.options), conf);
141
+ requiredOptions = ['tsConfig'];
142
+ if (!requiredOptions.every(function (key) { return !!projectBuildOptions[key]; })) {
143
+ throw new Error("Missing required options in project target. Check \"" + requiredOptions.join(', ') + "\"");
144
+ }
145
+ workspaceRootNormalized = core_1.normalize(dirToSearch);
146
+ projectRootNormalized = core_1.resolve(workspaceRootNormalized, core_1.normalize(project.root || ''));
147
+ sourceRootNormalized = project.sourceRoot
148
+ ? core_1.resolve(workspaceRootNormalized, core_1.normalize(project.sourceRoot))
149
+ : undefined;
150
+ tsConfigPath = path_1.default.resolve(core_1.getSystemPath(workspaceRootNormalized), projectBuildOptions.tsConfig);
151
+ tsConfig = importAngularCliReadTsconfigUtil().readTsconfig(tsConfigPath);
152
+ return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require('typescript')); })];
153
+ case 1:
154
+ ts = _a.sent();
155
+ scriptTarget = tsConfig.options.target || ts.ScriptTarget.ES5;
156
+ buildOptions = __assign(__assign({
157
+ // Default options
158
+ budgets: [], fileReplacements: [], main: '', outputPath: 'dist/storybook-angular', scripts: [], sourceMap: {}, styles: [], lazyModules: [] }, projectBuildOptions), { assets: normalize_asset_patterns_1.normalizeAssetPatterns(projectBuildOptions.assets || [], workspaceRootNormalized, projectRootNormalized, sourceRootNormalized), optimization: normalize_optimization_1.normalizeOptimization(projectBuildOptions.optimization),
159
+ // Forced options
160
+ statsJson: false, forkTypeChecker: false });
161
+ return [2 /*return*/, {
162
+ root: core_1.getSystemPath(workspaceRootNormalized),
163
+ // The dependency of `@angular-devkit/build-angular` to `@angular-devkit/core` is not exactly the same version as the one for storybook (node modules of node modules ^^)
164
+ logger: node_1.createConsoleLogger(),
165
+ projectRoot: core_1.getSystemPath(projectRootNormalized),
166
+ sourceRoot: core_1.getSystemPath(sourceRootNormalized),
167
+ buildOptions: buildOptions,
168
+ tsConfig: tsConfig,
169
+ tsConfigPath: tsConfigPath,
170
+ scriptTarget: scriptTarget,
171
+ }];
172
+ }
173
+ });
174
+ }); };
175
+ /**
176
+ * Uses angular cli to extract webpack configuration.
177
+ * The `AngularCliWebpackConfig` type lists the parts used by storybook
178
+ */
179
+ function extractAngularCliWebpackConfig(dirToSearch, project, target, confName) {
180
+ var _a;
181
+ return __awaiter(this, void 0, void 0, function () {
182
+ var _b, getCommonConfig, getStylesConfig, webpackConfigOptions, cliCommonConfig, cliStyleConfig;
183
+ return __generator(this, function (_c) {
184
+ switch (_c.label) {
185
+ case 0:
186
+ _b = importAngularCliWebpackConfigGenerator(), getCommonConfig = _b.getCommonConfig, getStylesConfig = _b.getStylesConfig;
187
+ return [4 /*yield*/, buildWebpackConfigOptions(dirToSearch, project, target, confName)];
188
+ case 1:
189
+ webpackConfigOptions = _c.sent();
190
+ cliCommonConfig = getCommonConfig(webpackConfigOptions);
191
+ cliStyleConfig = getStylesConfig(webpackConfigOptions);
192
+ return [2 /*return*/, {
193
+ cliCommonWebpackConfig: {
194
+ plugins: cliCommonConfig.plugins,
195
+ resolve: {
196
+ modules: (_a = cliCommonConfig.resolve) === null || _a === void 0 ? void 0 : _a.modules,
197
+ },
198
+ resolveLoader: cliCommonConfig.resolveLoader,
199
+ },
200
+ cliStyleWebpackConfig: {
201
+ entry: cliStyleConfig.entry,
202
+ module: {
203
+ rules: __spreadArrays(cliStyleConfig.module.rules),
204
+ },
205
+ plugins: cliStyleConfig.plugins,
206
+ },
207
+ tsConfigPath: webpackConfigOptions.tsConfigPath,
208
+ }];
209
+ }
210
+ });
211
+ });
212
+ }
213
+ exports.extractAngularCliWebpackConfig = extractAngularCliWebpackConfig;
@@ -0,0 +1,13 @@
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
+ };