From 6861e5320eb4157882f5fb08f124218674c656f3 Mon Sep 17 00:00:00 2001 From: Maurizio Vitale Date: Fri, 22 Oct 2021 16:06:43 +0100 Subject: [PATCH] [AAE-6162][AAE-6163] Add the storybook target to core and content (#7303) * Add the storybook target to core and content * Remove test story --- angular.json | 66 +++++++++++++++++++ lib/content-services/.storybook/tsconfig.json | 10 +++ lib/core/.storybook/tsconfig.json | 10 +++ 3 files changed, 86 insertions(+) create mode 100644 lib/content-services/.storybook/tsconfig.json create mode 100644 lib/core/.storybook/tsconfig.json diff --git a/angular.json b/angular.json index 717ed2eb85..714cc26bc2 100644 --- a/angular.json +++ b/angular.json @@ -407,6 +407,39 @@ "**/node_modules/**" ] } + }, + "storybook": { + "builder": "@nrwl/storybook:storybook", + "options": { + "uiFramework": "@storybook/angular", + "port": 4400, + "config": { + "configFolder": "lib/core/.storybook" + } + }, + "configurations": { + "ci": { + "quiet": true + } + } + }, + "build-storybook": { + "builder": "@nrwl/storybook:build", + "outputs": [ + "{options.outputPath}" + ], + "options": { + "uiFramework": "@storybook/angular", + "outputPath": "dist/storybook/core", + "config": { + "configFolder": "lib/core/.storybook" + } + }, + "configurations": { + "ci": { + "quiet": true + } + } } } }, @@ -455,6 +488,39 @@ "**/node_modules/**" ] } + }, + "storybook": { + "builder": "@nrwl/storybook:storybook", + "options": { + "uiFramework": "@storybook/angular", + "port": 4400, + "config": { + "configFolder": "lib/content-services/.storybook" + } + }, + "configurations": { + "ci": { + "quiet": true + } + } + }, + "build-storybook": { + "builder": "@nrwl/storybook:build", + "outputs": [ + "{options.outputPath}" + ], + "options": { + "uiFramework": "@storybook/angular", + "outputPath": "dist/storybook/content-services", + "config": { + "configFolder": "lib/content-services/.storybook" + } + }, + "configurations": { + "ci": { + "quiet": true + } + } } } }, diff --git a/lib/content-services/.storybook/tsconfig.json b/lib/content-services/.storybook/tsconfig.json new file mode 100644 index 0000000000..74829392d7 --- /dev/null +++ b/lib/content-services/.storybook/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.base.json", + "compilerOptions": { + "emitDecoratorMetadata": true + + }, + + "exclude": ["../**/*.spec.ts" ], + "include": ["../src/**/*", "*.js"] +} diff --git a/lib/core/.storybook/tsconfig.json b/lib/core/.storybook/tsconfig.json new file mode 100644 index 0000000000..3f01515e9a --- /dev/null +++ b/lib/core/.storybook/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.base.json", + "compilerOptions": { + "emitDecoratorMetadata": true + + }, + + "exclude": ["../**/*.spec.ts" ], + "include": ["../**/*.ts", "*.js"] +}