sku 11.3.0 → 11.3.3
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,31 @@
|
|
|
1
1
|
# sku
|
|
2
2
|
|
|
3
|
+
## 11.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Exclude playroom from vanilla-extract pipeline ([#682](https://github.com/seek-oss/sku/pull/682))
|
|
8
|
+
|
|
9
|
+
TL;DR Only affects consumers using running Playroom along side sku — i.e. Braid.
|
|
10
|
+
|
|
11
|
+
Due to the current pattern used for the virtual file paths of vanilla-extract's generated stylesheets, we are manually excluding Playroom’s vanilla-extract styles.
|
|
12
|
+
|
|
13
|
+
In the future, we are planning to use more realistic virtual file paths, which should honour the default handling of include/exclude path matching and make this work around no longer necessary.
|
|
14
|
+
|
|
15
|
+
## 11.3.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Fix banner width in CI ([#680](https://github.com/seek-oss/sku/pull/680))
|
|
20
|
+
|
|
21
|
+
## 11.3.1
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- test: Run Jest using the CI flag when in CI environment ([#678](https://github.com/seek-oss/sku/pull/678))
|
|
26
|
+
|
|
27
|
+
Tests run in CI should fail if a new snapshot is written, this was not the case and needed to be opted into manually by passing the `--ci` [flag to Jest](https://jestjs.io/docs/cli#--ci).
|
|
28
|
+
|
|
3
29
|
## 11.3.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
|
@@ -152,6 +152,10 @@ class SkuWebpackPlugin {
|
|
|
152
152
|
{
|
|
153
153
|
// All CSS created by vanilla-extract
|
|
154
154
|
test: /\.vanilla.css$/i,
|
|
155
|
+
// Don't process vanilla files from Playroom as they are handled separately.
|
|
156
|
+
// Virtual file paths will look more realistic in the future allowing
|
|
157
|
+
// more standard handling of include/exclude path matching.
|
|
158
|
+
exclude: /node_modules\/playroom/,
|
|
155
159
|
use: makeVanillaCssLoaders({
|
|
156
160
|
isProductionBuild,
|
|
157
161
|
MiniCssExtractPlugin,
|
|
@@ -138,5 +138,7 @@ An explanation of the pseudo-localization process, as well as possible use cases
|
|
|
138
138
|
`en-PSEUDO` can be consumed just like any other language in your app:
|
|
139
139
|
|
|
140
140
|
```jsx
|
|
141
|
-
|
|
141
|
+
<VocabProvider language="en-PSEUDO">
|
|
142
|
+
<App />
|
|
143
|
+
</VocabProvider>
|
|
142
144
|
```
|
package/lib/banner.js
CHANGED
|
@@ -23,8 +23,9 @@ module.exports = (type, heading, messages = []) => {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
const columns = process.stdout.columns <= 0 ? 80 : process.stdout.columns;
|
|
26
27
|
const gutter = 4;
|
|
27
|
-
const fullWidth =
|
|
28
|
+
const fullWidth = columns < 80 ? columns : 80;
|
|
28
29
|
const contentWidth = fullWidth - gutter * 2;
|
|
29
30
|
|
|
30
31
|
const border = highlight(Array(fullWidth).fill('-').join(''));
|
package/package.json
CHANGED
package/scripts/test.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable-next-line jest/no-jest-import */
|
|
2
2
|
const jest = require('jest');
|
|
3
3
|
|
|
4
|
+
const isCI = require('../lib/isCI');
|
|
4
5
|
const baseJestConfig = require('../config/jest/jestConfig');
|
|
5
6
|
const { argv } = require('../config/args');
|
|
6
7
|
const { jestDecorator } = require('../context');
|
|
@@ -14,5 +15,9 @@ const { runVocabCompile } = require('../lib/runVocab');
|
|
|
14
15
|
|
|
15
16
|
argv.push('--config', JSON.stringify(jestConfig));
|
|
16
17
|
|
|
18
|
+
if (isCI) {
|
|
19
|
+
argv.push('--ci');
|
|
20
|
+
}
|
|
21
|
+
|
|
17
22
|
jest.run(argv);
|
|
18
23
|
})();
|