Skip to content

Commit 6bec4ab

Browse files
Merge pull request #1117 from Financial-Times/unstorybook
build: remove storybook
2 parents a549dc3 + a3727e0 commit 6bec4ab

Some content is hidden

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

46 files changed

+11329
-22518
lines changed

.circleci/config.yml

-16
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ jobs:
111111
- run:
112112
name: Run example app integration tests
113113
command: npm run test:examples-ci
114-
- run:
115-
name: Run storybook
116-
command: npm run storybook:ci
117114

118115
publish:
119116
<<: *container_config_node
@@ -145,14 +142,6 @@ jobs:
145142
name: NPM publish
146143
command: npm publish --workspace=packages/ --access=public --tag=pre-release
147144

148-
deploy:
149-
<<: *container_config_node
150-
steps:
151-
- *attach_workspace
152-
- run:
153-
name: Deploy Storybook
154-
command: npm run deploy-storybook:ci
155-
156145
workflows:
157146
version: 2
158147

@@ -189,11 +178,6 @@ workflows:
189178
- node
190179
- node20
191180
- node18
192-
- deploy:
193-
filters:
194-
<<: *filters_only_main
195-
requires:
196-
- test-node
197181

198182
build-test-publish:
199183
jobs:

.eslintrc.js

-12
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@ module.exports = {
2323
'import/resolver': {
2424
node: {
2525
extensions: ['.js', '.jsx', '.ts', '.tsx', '.d.ts', '.mjs']
26-
},
27-
webpack: {
28-
// Because we configure Storybook in "full control" mode we have to manually extend a
29-
// configuration object. Rather than mock all that here I've chosen to copy the resolve
30-
// rules so that the two files do not need to know about one other and their structure.
31-
config: {
32-
resolve: {
33-
modules: ['node_modules'],
34-
descriptionFiles: ['package.json'],
35-
mainFiles: ['index', 'main']
36-
}
37-
}
3826
}
3927
}
4028
},

.storybook/.browserslistrc

-4
This file was deleted.

.storybook/.gitignore

-1
This file was deleted.

.storybook/components/OnReady.tsx

-41
This file was deleted.

.storybook/main.js

-12
This file was deleted.

.storybook/preview-head.html

-27
This file was deleted.

.storybook/webpack.config.js

-67
This file was deleted.

README.md

+1-26
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Please note that Page Kit has only been tested in Mac and Linux environments. If
7979
npm run build
8080
```
8181

82-
4. You can now choose to run an example application or start Storybook to view UI component demos. Examples are located in the `examples/` directory and each have their own instructions. To use Storybook you can follow [the guide below](#using-storybook).
82+
4. You can now choose to run an example application to view UI component demos. Examples are located in the `examples/` directory and each have their own instructions.
8383

8484
Before writing any new code you may also find it useful to refer to the [architecture overview](architecture.md) and [contribution guide](contributing.md) which covers coding standards and expectations.
8585

@@ -100,31 +100,6 @@ If you're interested to know more about our approach of building so many small p
100100
101101
[Express]: https://expressjs.com/
102102
103-
104-
### Using Storybook
105-
106-
[Storybook] is a development environment and showcase for UI components. It makes working on and sharing UI components easier by providing a richly configurable environment.
107-
108-
[Storybook]: https://storybook.js.org/
109-
110-
Before starting Storybook you must first run the build script for all packages (if you have not done so already) using this command:
111-
112-
```
113-
npm run build
114-
```
115-
116-
Once all of the packages have been built you can run Storybook using the following the command:
117-
118-
```
119-
npm run storybook
120-
```
121-
122-
The Storybook interface should then open in your default browser. Storybook has been configured to automatically find stories inside packages with names prefixed with `dotcom-ui-`.
123-
124-
#### Storybook deployment
125-
The deployment of Storybook to Github Pages is managed by our CircleCI workflow. It is able to deploy to Github Pages by using a personal access token created from the `next-team` Github account, stored as the `GH_TOKEN` environment variable in Doppler.
126-
127-
128103
## FAQ
129104
130105
### Why are you doing this?

docs/design-decisions/html-templating.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ We think JSX has several key advantages over Handlebars that are worth the effor
2222
- It works in the same way on the server and in the browser.
2323
- Components are authored as JavaScript files and integrate seamlessly with the JS ecosystem.
2424
- Almost every JavaScript parser, linter, compiler, and editor support JSX syntax out of the box.
25-
- Enables access to a modern ecosystem of fantastic development tools like [Storybook].
25+
- Enables access to a modern ecosystem of fantastic development tools.
2626
- Components can be rendered with [many] [different] [libraries], not just [React].
2727

2828
This opinion was also backed up by [the survey] we sent to the customer products engineering team. We asked "Which tool would you choose to provide server-side rendering for your app?" and only 18% of the respondents told us that they would choose Handlebars but 67% said they would choose the same tool as they would use on the client-side. When asked "Which tools would you choose to build the client-side parts for your app?" 67% of respondants indicated that they would choose React or a similar library.
@@ -33,7 +33,6 @@ This opinion was also backed up by [the survey] we sent to the customer products
3333
[x-dash]: https://financial-times.github.io/x-dash/
3434
[Preact]: https://preactjs.com/
3535
[JSX]: https://jasonformat.com/wtf-is-jsx/
36-
[Storybook]:https://storybook.js.org/
3736
[React]: https://reactjs.org/
3837
[many]: https://github.com/jorgebucaran/hyperapp
3938
[different]: https://github.com/i-like-robots/hyperons

0 commit comments

Comments
 (0)