sku 11.7.2 → 11.8.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 +31 -0
- package/README.md +3 -3
- package/config/webpack/webpack.config.js +4 -2
- package/context/configSchema.js +4 -0
- package/context/defaultSkuConfig.js +1 -0
- package/context/index.js +1 -0
- package/entry/libraryRender/index.js +7 -4
- package/entry/render/index.js +3 -2
- package/lib/configure.js +0 -0
- package/package.json +7 -59
- package/scripts/build-ssr.js +4 -0
- package/scripts/configure.js +0 -0
- package/scripts/postinstall.js +0 -0
- package/scripts/pre-commit.js +0 -0
- package/sku-types.d.ts +13 -0
- package/.changeset/changelog.js +0 -58
- package/.changeset/config.json +0 -8
- package/.editorconfig +0 -13
- package/.eslintignore +0 -12
- package/.eslintrc +0 -53
- package/.github/CODEOWNERS +0 -5
- package/.github/workflows/release.yml +0 -37
- package/.github/workflows/snapshot.yml +0 -29
- package/.github/workflows/validate.yml +0 -31
- package/.nvmrc +0 -1
- package/.prettierignore +0 -13
- package/.vscode/extensions.json +0 -5
- package/.vscode/settings.json +0 -3
- package/CONTRIBUTING.md +0 -72
- package/deploy-docs.js +0 -36
- package/docs/.nojekyll +0 -0
- package/docs/_coverpage.md +0 -6
- package/docs/_navbar.md +0 -8
- package/docs/docs/_sidebar.md +0 -22
- package/docs/docs/building-the-app.md +0 -70
- package/docs/docs/code-splitting.md +0 -106
- package/docs/docs/compilation.md +0 -27
- package/docs/docs/configuration.md +0 -447
- package/docs/docs/csp.md +0 -56
- package/docs/docs/custom-builds.md +0 -32
- package/docs/docs/extra-features.md +0 -111
- package/docs/docs/faq.md +0 -13
- package/docs/docs/getting-started.md +0 -15
- package/docs/docs/libraries.md +0 -23
- package/docs/docs/linting.md +0 -19
- package/docs/docs/multi-language.md +0 -192
- package/docs/docs/multi-site.md +0 -138
- package/docs/docs/server-rendering.md +0 -125
- package/docs/docs/static-rendering.md +0 -287
- package/docs/docs/storybook.md +0 -63
- package/docs/docs/styling.md +0 -77
- package/docs/docs/testing.md +0 -29
- package/docs/index.html +0 -116
- package/docs/logo/logo.png +0 -0
- package/docs/migration-guides/_sidebar.md +0 -4
- package/docs/migration-guides/v10.0.0.md +0 -3
- package/docs/migration-guides/v11.0.0.md +0 -3
- package/docs/migration-guides/v7.0.0.md +0 -322
- package/docs/migration-guides/v8.0.0.md +0 -137
- package/docs/migration-guides/v9.0.0.md +0 -25
- package/docs/package.json +0 -13
- package/docs/yarn.lock +0 -1310
- package/jest-puppeteer.config.js +0 -5
- package/jest.config.js +0 -14
- package/prettier.config.js +0 -1
- package/renovate.json +0 -84
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# sku
|
|
2
2
|
|
|
3
|
+
## 11.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Re-add `@types/jest` as a dependency ([#757](https://github.com/seek-oss/sku/pull/757))
|
|
8
|
+
|
|
9
|
+
## 11.8.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Add `libraryFile` configuration option ([#755](https://github.com/seek-oss/sku/pull/755))
|
|
14
|
+
|
|
15
|
+
This option allows the file name of the library to be specified in the sku configuration.
|
|
16
|
+
If this option is not specified then the `libraryName` option will be used for this purpose instead (note that this is the previously existing behaviour).
|
|
17
|
+
|
|
18
|
+
**EXAMPLE USAGE**:
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
// sku.config.ts
|
|
22
|
+
import type { SkuConfig } from 'sku';
|
|
23
|
+
|
|
24
|
+
const skuConfig: SkuConfig = {
|
|
25
|
+
libraryEntry: 'src/library.js',
|
|
26
|
+
renderEntry: 'src/render.js',
|
|
27
|
+
libraryName: 'MyAwesomeLibrary',
|
|
28
|
+
libraryFile: 'my-awesome-library',
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default skuConfig;
|
|
32
|
+
```
|
|
33
|
+
|
|
3
34
|
## 11.7.2
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[](https://www.npmjs.com/package/sku)
|
|
2
2
|
|
|
3
3
|
<br />
|
|
4
|
-
<img src="docs/logo/logo.png?raw=true" alt="sku" title="sku" width="147" height="79" />
|
|
4
|
+
<img src="https://github.com/seek-oss/sku/raw/master/docs/logo/logo.png?raw=true" alt="sku" title="sku" width="147" height="79" />
|
|
5
5
|
<br />
|
|
6
6
|
|
|
7
|
-
Front-end development toolkit, powered by [Webpack](https://webpack.js.org/), [Babel](https://babeljs.io/), [CSS Modules](https://github.com/css-modules/css-modules), [Less](http://lesscss.org/), [ESLint](http://eslint.org/), [Prettier](https://prettier.io/), [Jest](https://facebook.github.io/jest/) and [Storybook](https://storybook.js.org/).
|
|
7
|
+
Front-end development toolkit, powered by [Webpack](https://webpack.js.org/), [Babel](https://babeljs.io/), [Vanilla Extract](https://vanilla-extract.style/), [CSS Modules](https://github.com/css-modules/css-modules), [Less](http://lesscss.org/), [ESLint](http://eslint.org/), [Prettier](https://prettier.io/), [Jest](https://facebook.github.io/jest/) and [Storybook](https://storybook.js.org/).
|
|
8
8
|
|
|
9
9
|
Quickly get up and running with a zero-config development environment, or optionally add minimal config when needed. Designed for usage with [braid-design-system](https://github.com/seek-oss/braid-design-system), although this isn't a requirement.
|
|
10
10
|
|
|
@@ -36,7 +36,7 @@ $ npm install -g npx
|
|
|
36
36
|
|
|
37
37
|
## Contributing
|
|
38
38
|
|
|
39
|
-
Refer to [CONTRIBUTING.md](
|
|
39
|
+
Refer to [CONTRIBUTING.md](/CONTRIBUTING.md). If you're planning to change the public API, please [open a new issue](https://github.com/seek-oss/sku/issues/new).
|
|
40
40
|
|
|
41
41
|
## License
|
|
42
42
|
|
|
@@ -33,6 +33,7 @@ const {
|
|
|
33
33
|
polyfills,
|
|
34
34
|
isLibrary,
|
|
35
35
|
libraryName,
|
|
36
|
+
libraryFile,
|
|
36
37
|
supportedBrowsers,
|
|
37
38
|
displayNamesProd,
|
|
38
39
|
cspEnabled,
|
|
@@ -99,7 +100,7 @@ const makeWebpackConfig = ({
|
|
|
99
100
|
// Libraries should always have the same file name
|
|
100
101
|
// for the main chunk unless we're building for storybook
|
|
101
102
|
if (isLibrary && isMainChunk) {
|
|
102
|
-
return libraryName;
|
|
103
|
+
return libraryFile ?? libraryName;
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
// The client file mask is set to just name in start/dev mode as contenthash
|
|
@@ -314,7 +315,8 @@ const makeWebpackConfig = ({
|
|
|
314
315
|
...(htmlRenderPlugin ? [htmlRenderPlugin.rendererPlugin] : []),
|
|
315
316
|
new webpack.DefinePlugin(envVars),
|
|
316
317
|
new webpack.DefinePlugin({
|
|
317
|
-
|
|
318
|
+
__SKU_LIBRARY_NAME__: JSON.stringify(libraryName),
|
|
319
|
+
__SKU_LIBRARY_FILE__: JSON.stringify(libraryFile),
|
|
318
320
|
__SKU_PUBLIC_PATH__: JSON.stringify(paths.publicPath),
|
|
319
321
|
__SKU_CSP__: JSON.stringify({
|
|
320
322
|
enabled: cspEnabled,
|
package/context/configSchema.js
CHANGED
package/context/index.js
CHANGED
|
@@ -169,6 +169,7 @@ module.exports = {
|
|
|
169
169
|
server: skuConfig.serverPort,
|
|
170
170
|
},
|
|
171
171
|
libraryName: skuConfig.libraryName,
|
|
172
|
+
libraryFile: skuConfig.libraryFile,
|
|
172
173
|
isLibrary: Boolean(skuConfig.libraryEntry),
|
|
173
174
|
storybookPort: skuConfig.storybookPort,
|
|
174
175
|
storybookTarget: skuConfig.storybookTarget,
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import render from '__sku_alias__renderEntry';
|
|
2
2
|
|
|
3
|
-
const libraryName =
|
|
3
|
+
const libraryName = __SKU_LIBRARY_NAME__;
|
|
4
|
+
const libraryFile = __SKU_LIBRARY_FILE__;
|
|
4
5
|
const publicPath = __SKU_PUBLIC_PATH__;
|
|
5
6
|
|
|
7
|
+
const libraryPath = `${publicPath}${libraryFile ?? libraryName}`;
|
|
8
|
+
|
|
6
9
|
export default (renderParams) => {
|
|
7
|
-
const renderContext = { ...renderParams, libraryName };
|
|
10
|
+
const renderContext = { ...renderParams, libraryName, libraryFile };
|
|
8
11
|
|
|
9
12
|
return render.renderDocument({
|
|
10
13
|
...renderContext,
|
|
11
|
-
headTags: `<link rel="stylesheet" type="text/css" href="${
|
|
12
|
-
bodyTags: `<script src="${
|
|
14
|
+
headTags: `<link rel="stylesheet" type="text/css" href="${libraryPath}.css">`,
|
|
15
|
+
bodyTags: `<script src="${libraryPath}.js"></script>`,
|
|
13
16
|
});
|
|
14
17
|
};
|
package/entry/render/index.js
CHANGED
|
@@ -7,7 +7,8 @@ import createCSPHandler from '../csp';
|
|
|
7
7
|
|
|
8
8
|
import render from '__sku_alias__renderEntry';
|
|
9
9
|
|
|
10
|
-
const libraryName =
|
|
10
|
+
const libraryName = __SKU_LIBRARY_NAME__;
|
|
11
|
+
const libraryFile = __SKU_LIBRARY_FILE__;
|
|
11
12
|
const publicPath = __SKU_PUBLIC_PATH__;
|
|
12
13
|
const csp = __SKU_CSP__;
|
|
13
14
|
|
|
@@ -18,7 +19,7 @@ export const serializeConfig = (config) =>
|
|
|
18
19
|
)}</script>`;
|
|
19
20
|
|
|
20
21
|
export default async (renderParams) => {
|
|
21
|
-
const renderContext = { ...renderParams, libraryName };
|
|
22
|
+
const renderContext = { ...renderParams, libraryName, libraryFile };
|
|
22
23
|
|
|
23
24
|
let app;
|
|
24
25
|
let clientContext = {};
|
package/lib/configure.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sku",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.8.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": {
|
|
@@ -9,43 +9,12 @@
|
|
|
9
9
|
"engines": {
|
|
10
10
|
"node": ">=14.15"
|
|
11
11
|
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"lint": "yarn format-check && eslint --cache .",
|
|
14
|
-
"check": "yarn check --integrity && echo 'Ignore paths from lint-staged'",
|
|
15
|
-
"pretest": "yarn check --integrity",
|
|
16
|
-
"test": "SKU_TELEMETRY=false SKU_DISABLE_CACHE=true OPEN_TAB=false jest --verbose --detectOpenHandles --runInBand",
|
|
17
|
-
"test-manual": "SKU_TELEMETRY=false node test/manual",
|
|
18
|
-
"setup-test-hosts": "node test/utils/setupTestHosts",
|
|
19
|
-
"format": "prettier --write '**/*.{js,ts,tsx,md,less,css}'",
|
|
20
|
-
"format-check": "prettier --list-different '**/*.{js,ts,tsx,md,less,css}'",
|
|
21
|
-
"postinstall": "node ./scripts/postinstall.js",
|
|
22
|
-
"release": "node ./deploy-docs.js && changeset publish"
|
|
23
|
-
},
|
|
24
12
|
"types": "./sku-types.d.ts",
|
|
25
|
-
"husky": {
|
|
26
|
-
"hooks": {
|
|
27
|
-
"pre-commit": "lint-staged"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"lint-staged": {
|
|
31
|
-
"+(package.json|yarn.lock)": [
|
|
32
|
-
"yarn run check"
|
|
33
|
-
],
|
|
34
|
-
"**/*.js": [
|
|
35
|
-
"eslint --cache --fix"
|
|
36
|
-
],
|
|
37
|
-
"**/*.{js,ts,tsx,md,less,css}": [
|
|
38
|
-
"prettier --write"
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
13
|
"repository": {
|
|
42
14
|
"type": "git",
|
|
43
|
-
"url": "https://github.com/seek-oss/sku.git"
|
|
15
|
+
"url": "https://github.com/seek-oss/sku.git",
|
|
16
|
+
"directory": "packages/sku"
|
|
44
17
|
},
|
|
45
|
-
"keywords": [
|
|
46
|
-
"toolkit",
|
|
47
|
-
"webpack"
|
|
48
|
-
],
|
|
49
18
|
"author": "SEEK",
|
|
50
19
|
"license": "MIT",
|
|
51
20
|
"bugs": {
|
|
@@ -123,7 +92,6 @@
|
|
|
123
92
|
"html-render-webpack-plugin": "^3.0.1",
|
|
124
93
|
"identity-obj-proxy": "^3.0.0",
|
|
125
94
|
"indent-string": "^4.0.0",
|
|
126
|
-
"inquirer": "^8.2.3",
|
|
127
95
|
"jest": "^29.0.0",
|
|
128
96
|
"jest-environment-jsdom": "^29.0.0",
|
|
129
97
|
"jest-watch-typeahead": "^2.2.0",
|
|
@@ -165,10 +133,6 @@
|
|
|
165
133
|
"x-default-browser": "^0.5.0"
|
|
166
134
|
},
|
|
167
135
|
"devDependencies": {
|
|
168
|
-
"@changesets/cli": "^2.13.0",
|
|
169
|
-
"@changesets/get-github-info": "^0.4.5",
|
|
170
|
-
"@storybook/addon-controls": "^6.5.12",
|
|
171
|
-
"@testing-library/react": "^11.2.3",
|
|
172
136
|
"@types/dedent": "^0.7.0",
|
|
173
137
|
"@types/express": "^4.17.11",
|
|
174
138
|
"@types/react": "^17.0.0",
|
|
@@ -176,32 +140,16 @@
|
|
|
176
140
|
"@vanilla-extract/css": "^1.0.0",
|
|
177
141
|
"@vocab/react": "^1.0.1",
|
|
178
142
|
"assert": "^2.0.0",
|
|
179
|
-
"async-disk-cache": "^2.1.0",
|
|
180
143
|
"braid-design-system": "^31.0.0",
|
|
181
|
-
"child-process-promise": "^2.2.1",
|
|
182
|
-
"css": "^3.0.0",
|
|
183
|
-
"diffable-html": "^4.0.0",
|
|
184
|
-
"gh-pages": "^3.1.0",
|
|
185
|
-
"git-diff": "^2.0.6",
|
|
186
|
-
"html-webpack-plugin": "^5.3.2",
|
|
187
|
-
"husky": "^4.3.8",
|
|
188
|
-
"jest-puppeteer": "^7.0.0",
|
|
189
|
-
"jsonc-parser": "^3.0.0",
|
|
190
|
-
"node-dir": "^0.1.17",
|
|
191
144
|
"node-fetch": "^2.6.1",
|
|
192
|
-
"puppeteer": "^19.0.0",
|
|
193
145
|
"react": "^17.0.1",
|
|
194
146
|
"react-dom": "^17.0.1",
|
|
195
147
|
"react-helmet": "^6.1.0",
|
|
196
148
|
"react-router-dom": "^5.2.0",
|
|
197
|
-
"renovate-config-seek": "^0.4.0",
|
|
198
149
|
"seek-style-guide": "^42.0.0",
|
|
199
|
-
"
|
|
200
|
-
"webpack-cli": "^5.0.0",
|
|
201
|
-
"webpack-stats-plugin": "^1.0.3"
|
|
150
|
+
"webpack-cli": "^5.0.0"
|
|
202
151
|
},
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"yarn": "1.22.19"
|
|
152
|
+
"scripts": {
|
|
153
|
+
"postinstall": "node ./scripts/postinstall.js"
|
|
206
154
|
}
|
|
207
|
-
}
|
|
155
|
+
}
|
package/scripts/build-ssr.js
CHANGED
package/scripts/configure.js
CHANGED
|
File without changes
|
package/scripts/postinstall.js
CHANGED
|
File without changes
|
package/scripts/pre-commit.js
CHANGED
|
File without changes
|
package/sku-types.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ interface SharedRenderProps {
|
|
|
7
7
|
site: string;
|
|
8
8
|
language: string;
|
|
9
9
|
libraryName: string;
|
|
10
|
+
libraryFile: string;
|
|
10
11
|
// Webpack use an any here. PR for better type welcome.
|
|
11
12
|
webpackStats: any;
|
|
12
13
|
}
|
|
@@ -212,6 +213,18 @@ export interface SkuConfig {
|
|
|
212
213
|
*/
|
|
213
214
|
libraryName?: string;
|
|
214
215
|
|
|
216
|
+
/**
|
|
217
|
+
* **Only for libraries**
|
|
218
|
+
*
|
|
219
|
+
* The file name of the library. The main bundle of the library will be output to `dist/${libraryFile}.js` - note that the
|
|
220
|
+
* `.js` extension will be added automatically and should not be included in the configuration option itself.
|
|
221
|
+
*
|
|
222
|
+
* If `libraryFile` is not specified then `libraryName` will be used instead.
|
|
223
|
+
*
|
|
224
|
+
* @link https://seek-oss.github.io/sku/#/./docs/configuration?id=libraryfile
|
|
225
|
+
*/
|
|
226
|
+
libraryFile?: string;
|
|
227
|
+
|
|
215
228
|
/**
|
|
216
229
|
* Enables linting of import order. This rule supports auto-fix.
|
|
217
230
|
*
|
package/.changeset/changelog.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// Slightly modified version of
|
|
2
|
-
// https://github.com/atlassian/changesets/blob/master/packages/changelog-github/src/index.ts
|
|
3
|
-
// changing the release line formatting
|
|
4
|
-
const { getInfo } = require('@changesets/get-github-info');
|
|
5
|
-
|
|
6
|
-
const repo = 'seek-oss/sku';
|
|
7
|
-
|
|
8
|
-
const changelogFunctions = {
|
|
9
|
-
getDependencyReleaseLine: async (changesets, dependenciesUpdated) => {
|
|
10
|
-
if (dependenciesUpdated.length === 0) return '';
|
|
11
|
-
|
|
12
|
-
const changesetLink = `- Updated dependencies [${(
|
|
13
|
-
await Promise.all(
|
|
14
|
-
changesets.map(async (cs) => {
|
|
15
|
-
if (cs.commit) {
|
|
16
|
-
let { links } = await getInfo({
|
|
17
|
-
repo,
|
|
18
|
-
commit: cs.commit,
|
|
19
|
-
});
|
|
20
|
-
return links.commit;
|
|
21
|
-
}
|
|
22
|
-
}),
|
|
23
|
-
)
|
|
24
|
-
)
|
|
25
|
-
.filter((_) => _)
|
|
26
|
-
.join(', ')}]:`;
|
|
27
|
-
|
|
28
|
-
const updatedDepenenciesList = dependenciesUpdated.map(
|
|
29
|
-
(dependency) => ` - ${dependency.name}@${dependency.newVersion}`,
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
return [changesetLink, ...updatedDepenenciesList].join('\n');
|
|
33
|
-
},
|
|
34
|
-
getReleaseLine: async (changeset) => {
|
|
35
|
-
const [firstLine, ...futureLines] = changeset.summary
|
|
36
|
-
.split('\n')
|
|
37
|
-
.map((l) => l.trimRight());
|
|
38
|
-
|
|
39
|
-
if (changeset.commit) {
|
|
40
|
-
let { links } = await getInfo({
|
|
41
|
-
repo,
|
|
42
|
-
commit: changeset.commit,
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
const versionInfo = links.pull === null ? changeset.commit : links.pull;
|
|
46
|
-
|
|
47
|
-
const summary = `- ${firstLine} (${versionInfo})`;
|
|
48
|
-
|
|
49
|
-
return `${summary}\n${futureLines.map((l) => ` ${l}`).join('\n')}`;
|
|
50
|
-
} else {
|
|
51
|
-
return `\n\n- ${firstLine}\n${futureLines
|
|
52
|
-
.map((l) => ` ${l}`)
|
|
53
|
-
.join('\n')}`;
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
module.exports = changelogFunctions;
|
package/.changeset/config.json
DELETED
package/.editorconfig
DELETED
package/.eslintignore
DELETED
package/.eslintrc
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "seek",
|
|
3
|
-
"rules": {
|
|
4
|
-
"no-console": "off",
|
|
5
|
-
"no-process-exit": "off",
|
|
6
|
-
"no-sync": "off",
|
|
7
|
-
"import/no-unresolved": [
|
|
8
|
-
"error",
|
|
9
|
-
{
|
|
10
|
-
"commonjs": true,
|
|
11
|
-
"amd": true,
|
|
12
|
-
"ignore": [
|
|
13
|
-
"__sku_alias__renderEntry",
|
|
14
|
-
"__sku_alias__serverEntry",
|
|
15
|
-
"__sku_alias__clientEntry",
|
|
16
|
-
"__sku_alias__webpackStats"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"react/jsx-uses-react": "off",
|
|
21
|
-
"react/react-in-jsx-scope": "off"
|
|
22
|
-
},
|
|
23
|
-
"overrides": [
|
|
24
|
-
{
|
|
25
|
-
"files": ["test/**"],
|
|
26
|
-
"env": {
|
|
27
|
-
"jest": true
|
|
28
|
-
},
|
|
29
|
-
"globals": {
|
|
30
|
-
"browser": true
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"globals": {
|
|
35
|
-
"__SKU_SRC_PATHS_0__": true,
|
|
36
|
-
"__SKU_SRC_PATHS_1__": true,
|
|
37
|
-
"__SKU_SRC_PATHS_2__": true,
|
|
38
|
-
"__SKU_SRC_PATHS_3__": true,
|
|
39
|
-
"__SKU_SRC_PATHS_4__": true,
|
|
40
|
-
"__SKU_SRC_PATHS_5__": true,
|
|
41
|
-
"__SKU_SRC_PATHS_6__": true,
|
|
42
|
-
"__SKU_SRC_PATHS_7__": true,
|
|
43
|
-
"__SKU_SRC_PATHS_8__": true,
|
|
44
|
-
"__SKU_SRC_PATHS_9__": true,
|
|
45
|
-
"__SKU_CLIENT_PATH__": true,
|
|
46
|
-
"__SKU_PUBLIC_PATH__": true,
|
|
47
|
-
"__SKU_CSP__": true,
|
|
48
|
-
"__SKU_DEV_HTTPS__": true,
|
|
49
|
-
"__SKU_DEV_MIDDLEWARE_ENABLED__": true,
|
|
50
|
-
"__SKU_DEV_MIDDLEWARE_PATH__": true,
|
|
51
|
-
"SKU_LIBRARY_NAME": true
|
|
52
|
-
}
|
|
53
|
-
}
|
package/.github/CODEOWNERS
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
name: Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
release:
|
|
10
|
-
name: Publish & Deploy docs
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
env:
|
|
13
|
-
CI: true
|
|
14
|
-
timeout-minutes: 15
|
|
15
|
-
steps:
|
|
16
|
-
- name: Checkout Repo
|
|
17
|
-
uses: actions/checkout@v3
|
|
18
|
-
with:
|
|
19
|
-
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
|
|
20
|
-
fetch-depth: 0
|
|
21
|
-
token: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }}
|
|
22
|
-
|
|
23
|
-
- name: Set up Node.js
|
|
24
|
-
uses: actions/setup-node@v3
|
|
25
|
-
with:
|
|
26
|
-
node-version-file: 'package.json'
|
|
27
|
-
|
|
28
|
-
- name: Install Dependencies
|
|
29
|
-
run: yarn --frozen-lockfile
|
|
30
|
-
|
|
31
|
-
- name: Create Release Pull Request or Publish to npm
|
|
32
|
-
uses: changesets/action@v1
|
|
33
|
-
with:
|
|
34
|
-
publish: yarn release
|
|
35
|
-
env:
|
|
36
|
-
GITHUB_TOKEN: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }}
|
|
37
|
-
NPM_TOKEN: ${{ secrets.SEEK_OSS_CI_NPM_TOKEN }}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
name: Snapshot
|
|
2
|
-
|
|
3
|
-
on: workflow_dispatch
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
release:
|
|
7
|
-
name: Publish snapshot version
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
env:
|
|
10
|
-
CI: true
|
|
11
|
-
steps:
|
|
12
|
-
- name: Check out repo
|
|
13
|
-
uses: actions/checkout@v3
|
|
14
|
-
with:
|
|
15
|
-
fetch-depth: 0
|
|
16
|
-
|
|
17
|
-
- name: Set up Node.js
|
|
18
|
-
uses: actions/setup-node@v3
|
|
19
|
-
with:
|
|
20
|
-
node-version-file: 'package.json'
|
|
21
|
-
|
|
22
|
-
- name: Install dependencies
|
|
23
|
-
run: yarn install --frozen-lockfile
|
|
24
|
-
|
|
25
|
-
- name: Publish
|
|
26
|
-
uses: seek-oss/changesets-snapshot@v0
|
|
27
|
-
env:
|
|
28
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
29
|
-
NPM_TOKEN: ${{ secrets.SEEK_OSS_CI_NPM_TOKEN }}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
name: Validate
|
|
2
|
-
|
|
3
|
-
on: [push, pull_request]
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
test:
|
|
7
|
-
name: Lint & Test
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
env:
|
|
10
|
-
CI: true
|
|
11
|
-
timeout-minutes: 30
|
|
12
|
-
steps:
|
|
13
|
-
- name: Checkout Repo
|
|
14
|
-
uses: actions/checkout@v3
|
|
15
|
-
|
|
16
|
-
- name: Set up Node.js
|
|
17
|
-
uses: actions/setup-node@v3
|
|
18
|
-
with:
|
|
19
|
-
node-version-file: 'package.json'
|
|
20
|
-
|
|
21
|
-
- name: Install Dependencies
|
|
22
|
-
run: yarn --frozen-lockfile
|
|
23
|
-
|
|
24
|
-
- name: Set up hosts
|
|
25
|
-
run: sudo yarn setup-test-hosts
|
|
26
|
-
|
|
27
|
-
- name: Lint
|
|
28
|
-
run: yarn lint
|
|
29
|
-
|
|
30
|
-
- name: Test
|
|
31
|
-
run: yarn test
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
14.17.4
|
package/.prettierignore
DELETED
package/.vscode/extensions.json
DELETED
package/.vscode/settings.json
DELETED