From 60246175c42bf0dd5473ce405eedfd8992b593a0 Mon Sep 17 00:00:00 2001 From: Filipp Riabchun Date: Tue, 2 Jan 2018 18:57:49 +0300 Subject: [PATCH] Merge pull request #2594 from Quramy/prefer-ts-temp [Angular] Change template story files extension .ts --- lib/cli/generators/ANGULAR/template/.storybook/config.js | 4 ++-- .../template/stories/{index.stories.js => index.stories.ts} | 0 lib/cli/test/snapshots/angular-cli/.storybook/config.js | 4 ++-- .../stories/{index.stories.js => index.stories.ts} | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename lib/cli/generators/ANGULAR/template/stories/{index.stories.js => index.stories.ts} (100%) rename lib/cli/test/snapshots/angular-cli/stories/{index.stories.js => index.stories.ts} (100%) diff --git a/lib/cli/generators/ANGULAR/template/.storybook/config.js b/lib/cli/generators/ANGULAR/template/.storybook/config.js index 7df645552aa3..5d8908b90240 100644 --- a/lib/cli/generators/ANGULAR/template/.storybook/config.js +++ b/lib/cli/generators/ANGULAR/template/.storybook/config.js @@ -2,8 +2,8 @@ import { configure } from '@storybook/angular'; -// automatically import all files ending in *.stories.js -const req = require.context('../stories', true, /.stories.js$/); +// automatically import all files ending in *.stories.ts +const req = require.context('../stories', true, /.stories.ts$/); function loadStories() { req.keys().forEach((filename) => req(filename)); } diff --git a/lib/cli/generators/ANGULAR/template/stories/index.stories.js b/lib/cli/generators/ANGULAR/template/stories/index.stories.ts similarity index 100% rename from lib/cli/generators/ANGULAR/template/stories/index.stories.js rename to lib/cli/generators/ANGULAR/template/stories/index.stories.ts diff --git a/lib/cli/test/snapshots/angular-cli/.storybook/config.js b/lib/cli/test/snapshots/angular-cli/.storybook/config.js index 7df645552aa3..5d8908b90240 100644 --- a/lib/cli/test/snapshots/angular-cli/.storybook/config.js +++ b/lib/cli/test/snapshots/angular-cli/.storybook/config.js @@ -2,8 +2,8 @@ import { configure } from '@storybook/angular'; -// automatically import all files ending in *.stories.js -const req = require.context('../stories', true, /.stories.js$/); +// automatically import all files ending in *.stories.ts +const req = require.context('../stories', true, /.stories.ts$/); function loadStories() { req.keys().forEach((filename) => req(filename)); } diff --git a/lib/cli/test/snapshots/angular-cli/stories/index.stories.js b/lib/cli/test/snapshots/angular-cli/stories/index.stories.ts similarity index 100% rename from lib/cli/test/snapshots/angular-cli/stories/index.stories.js rename to lib/cli/test/snapshots/angular-cli/stories/index.stories.ts