Skip to content

Commit e487fb2

Browse files
authored
LG-2767: Rename .story to .stories (#2238)
* rename story files * with changeset * better * fix * fix where story files were being imported * clean up * final * two more renamed files * last files
1 parent 5546ffa commit e487fb2

File tree

124 files changed

+98
-64
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+98
-64
lines changed

.changeset/twenty-mayflies-relax.md

+31

packages/a11y/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../hooks"

packages/badge/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../emotion"

packages/banner/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../lib"
File renamed without changes.

packages/box/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": []
1818
}

packages/button/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../box"

packages/callout/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../emotion"
File renamed without changes.

packages/card/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../box"

packages/checkbox/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"../../typings/*",
1616
"../a11y/src/useReducedMotionQuery.ts"
1717
],
18-
"exclude": ["**/*.spec.*", "**/*.story.*"],
18+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1919
"references": [
2020
{
2121
"path": "../a11y"

packages/chip/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"exclude": [
2121
"**/*.spec.*",
22-
"**/*.story.*"
22+
"**/*.stories.*"
2323
],
2424
"references": [
2525
{
File renamed without changes.

packages/code/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"src/**/*",
1515
"../../typings"
1616
],
17-
"exclude": ["**/*.spec.*", "**/*.story.*"],
17+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1818
"references": [
1919
{
2020
"path": "../a11y"

packages/combobox/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"exclude": [
2121
"**/*.spec.*",
22-
"**/*.story.*"
22+
"**/*.stories.*"
2323
],
2424
"references": [
2525
{

packages/confirmation-modal/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../button"

packages/copyable/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"src/**/*",
1515
"../../typings"
1616
],
17-
"exclude": ["**/*.spec.*", "**/*.story.*"],
17+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1818
"references": [
1919
{
2020
"path": "../button"

packages/date-picker/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"exclude": [
2121
"**/*.spec.*",
22-
"**/*.story.*"
22+
"**/*.stories.*",
2323
],
2424
"references": [
2525
{

packages/descendants/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"include": [
1313
"src/**/*"
1414
],
15-
"exclude": ["**/*.spec.*", "**/*.story.*"],
15+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1616
"references": [
1717
{
1818
"path": "../button"

packages/emotion/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": []
1818
}

packages/empty-state/src/EmptyState.story.tsx renamed to packages/empty-state/src/EmptyState.stories.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import { storybookArgTypes, StoryMetaType } from '@leafygreen-ui/lib';
77
import BasicEmptyStateStoryMeta, {
88
WithActionsAndLink,
99
WithSmallGraphic,
10-
} from './BasicEmptyState/BasicEmptyState.story';
10+
} from './BasicEmptyState/BasicEmptyState.stories';
1111
import FeaturesEmptyStateStoryMeta, {
1212
ThreeFeaturesWithSecondaryActionAndLink,
1313
TwoFeaturesWithSecondaryActionAndLink,
14-
} from './FeaturesEmptyState/FeaturesEmptyState.story';
14+
} from './FeaturesEmptyState/FeaturesEmptyState.stories';
1515
import {
1616
BasicEmptyState,
1717
type BasicEmptyStateProps,

packages/empty-state/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"src/**/*",
1515
"./example-graphics/svg.d.ts"
1616
],
17-
"exclude": ["**/*.spec.*", "**/*.story.*"],
17+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1818
"references": [
1919
{
2020
"path": "../button"

packages/expandable-card/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../card"

packages/form-field/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../button"

packages/form-footer/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../banner"

packages/guide-cue/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../a11y"

packages/hooks/src/useAutoScroll/useAutoscroll.spec.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { render } from '@testing-library/react';
33

44
import { testItemHeight } from './constants.test';
5-
import { Basic } from './useAutoScroll.story';
5+
import { Basic } from './useAutoScroll.stories';
66

77
describe('packages/hooks/useAutoScroll', () => {
88
test('Initially at the top', async () => {

packages/hooks/tsconfig.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [{
1818
"path": "../lib"
19+
}, {
20+
"path": "../emotion"
1921
}]
2022
}
File renamed without changes.

packages/icon/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../emotion"

packages/info-sprinkle/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
],
2020
"exclude": [
2121
"**/*.spec.*",
22-
"**/*.story.*"
22+
"**/*.story.*",
23+
"**/*.stories.*"
2324
],
2425
"references": [
2526
{

packages/inline-definition/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../emotion"

packages/input-option/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../a11y"

packages/leafygreen-provider/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../lib"

packages/lib/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
]
1919
}

packages/loading-indicator/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../emotion"
File renamed without changes.

packages/marketing-modal/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../button"
File renamed without changes.

packages/menu/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../emotion"

packages/modal/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"src/**/*",
1515
"../../typings"
1616
],
17-
"exclude": ["**/*.spec.*", "**/*.story.*"],
17+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1818
"references": [
1919
{
2020
"path": "../emotion"

packages/number-input/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../a11y"

packages/pagination/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../emotion"

packages/palette/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": []
1818
}

packages/password-input/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"include": [
1414
"src/**/*"
1515
],
16-
"exclude": ["**/*.spec.*", "**/*.story.*"],
16+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1717
"references": [
1818
{
1919
"path": "../a11y"

packages/polymorphic/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"include": [
1010
"src/**/*"
1111
],
12-
"exclude": ["**/*.spec.*", "**/*.story.*"],
12+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1313
"references": []
1414
}

packages/popover/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"src/**/*",
1515
"../../typings/*"
1616
],
17-
"exclude": ["**/*.spec.*", "**/*.story.*"],
17+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
1818
"references": [
1919
{
2020
"path": "../emotion"

0 commit comments

Comments
 (0)