sku 11.10.1 → 11.11.1
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# sku
|
|
2
2
|
|
|
3
|
+
## 11.11.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Check only directories for Storybook stories ([#797](https://github.com/seek-oss/sku/pull/797))
|
|
8
|
+
|
|
9
|
+
## 11.11.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Start sku dev server middleware when running storybook ([#787](https://github.com/seek-oss/sku/pull/787))
|
|
14
|
+
|
|
15
|
+
When running `sku storybook`, if you have configured `devServerMiddleware` in your sku config, that middleware will now be passed through to storybook and injected into its own middleware stack.
|
|
16
|
+
|
|
3
17
|
## 11.10.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
1
2
|
const path = require('path');
|
|
2
3
|
const { paths, storybookAddons } = require('../../context');
|
|
3
4
|
|
|
4
5
|
module.exports = {
|
|
5
|
-
stories: paths.src
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
stories: paths.src
|
|
7
|
+
.filter((srcPath) => fs.statSync(srcPath).isDirectory())
|
|
8
|
+
.map((srcPath) => path.join(srcPath, '**/*.stories.@(js|ts|tsx)')),
|
|
8
9
|
addons: storybookAddons,
|
|
9
10
|
core: {
|
|
10
11
|
builder: 'webpack5',
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const { paths, useDevServerMiddleware } = require('../../../context');
|
|
2
|
+
|
|
3
|
+
const dummyMiddleware = (app) => app;
|
|
4
|
+
let middleware = dummyMiddleware;
|
|
5
|
+
|
|
6
|
+
if (useDevServerMiddleware) {
|
|
7
|
+
middleware = require(paths.devServerMiddleware);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
module.exports = middleware;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sku",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.11.1",
|
|
4
4
|
"description": "Front-end development toolkit, powered by Webpack, Babel, CSS Modules, Less and Jest",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -134,15 +134,14 @@
|
|
|
134
134
|
"devDependencies": {
|
|
135
135
|
"@types/dedent": "^0.7.0",
|
|
136
136
|
"@types/express": "^4.17.11",
|
|
137
|
-
"@types/react": "^
|
|
138
|
-
"@types/react-dom": "^
|
|
137
|
+
"@types/react": "^18.2.3",
|
|
138
|
+
"@types/react-dom": "^18.2.3",
|
|
139
139
|
"@vanilla-extract/css": "^1.0.0",
|
|
140
140
|
"@vocab/react": "^1.0.1",
|
|
141
141
|
"assert": "^2.0.0",
|
|
142
142
|
"braid-design-system": "^31.0.0",
|
|
143
|
-
"
|
|
144
|
-
"react": "^
|
|
145
|
-
"react-dom": "^17.0.1",
|
|
143
|
+
"react": "^18.2.0",
|
|
144
|
+
"react-dom": "^18.2.0",
|
|
146
145
|
"react-helmet": "^6.1.0",
|
|
147
146
|
"react-router-dom": "^5.2.0",
|
|
148
147
|
"seek-style-guide": "^42.0.0",
|