sku 11.7.2 → 11.8.0

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.
Files changed (66) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +3 -3
  3. package/config/webpack/webpack.config.js +4 -2
  4. package/context/configSchema.js +4 -0
  5. package/context/defaultSkuConfig.js +1 -0
  6. package/context/index.js +1 -0
  7. package/entry/libraryRender/index.js +7 -4
  8. package/entry/render/index.js +3 -2
  9. package/lib/configure.js +0 -0
  10. package/package.json +7 -60
  11. package/scripts/build-ssr.js +4 -0
  12. package/scripts/configure.js +0 -0
  13. package/scripts/postinstall.js +0 -0
  14. package/scripts/pre-commit.js +0 -0
  15. package/sku-types.d.ts +13 -0
  16. package/.changeset/changelog.js +0 -58
  17. package/.changeset/config.json +0 -8
  18. package/.editorconfig +0 -13
  19. package/.eslintignore +0 -12
  20. package/.eslintrc +0 -53
  21. package/.github/CODEOWNERS +0 -5
  22. package/.github/workflows/release.yml +0 -37
  23. package/.github/workflows/snapshot.yml +0 -29
  24. package/.github/workflows/validate.yml +0 -31
  25. package/.nvmrc +0 -1
  26. package/.prettierignore +0 -13
  27. package/.vscode/extensions.json +0 -5
  28. package/.vscode/settings.json +0 -3
  29. package/CONTRIBUTING.md +0 -72
  30. package/deploy-docs.js +0 -36
  31. package/docs/.nojekyll +0 -0
  32. package/docs/_coverpage.md +0 -6
  33. package/docs/_navbar.md +0 -8
  34. package/docs/docs/_sidebar.md +0 -22
  35. package/docs/docs/building-the-app.md +0 -70
  36. package/docs/docs/code-splitting.md +0 -106
  37. package/docs/docs/compilation.md +0 -27
  38. package/docs/docs/configuration.md +0 -447
  39. package/docs/docs/csp.md +0 -56
  40. package/docs/docs/custom-builds.md +0 -32
  41. package/docs/docs/extra-features.md +0 -111
  42. package/docs/docs/faq.md +0 -13
  43. package/docs/docs/getting-started.md +0 -15
  44. package/docs/docs/libraries.md +0 -23
  45. package/docs/docs/linting.md +0 -19
  46. package/docs/docs/multi-language.md +0 -192
  47. package/docs/docs/multi-site.md +0 -138
  48. package/docs/docs/server-rendering.md +0 -125
  49. package/docs/docs/static-rendering.md +0 -287
  50. package/docs/docs/storybook.md +0 -63
  51. package/docs/docs/styling.md +0 -77
  52. package/docs/docs/testing.md +0 -29
  53. package/docs/index.html +0 -116
  54. package/docs/logo/logo.png +0 -0
  55. package/docs/migration-guides/_sidebar.md +0 -4
  56. package/docs/migration-guides/v10.0.0.md +0 -3
  57. package/docs/migration-guides/v11.0.0.md +0 -3
  58. package/docs/migration-guides/v7.0.0.md +0 -322
  59. package/docs/migration-guides/v8.0.0.md +0 -137
  60. package/docs/migration-guides/v9.0.0.md +0 -25
  61. package/docs/package.json +0 -13
  62. package/docs/yarn.lock +0 -1310
  63. package/jest-puppeteer.config.js +0 -5
  64. package/jest.config.js +0 -14
  65. package/prettier.config.js +0 -1
  66. package/renovate.json +0 -84
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # sku
2
2
 
3
+ ## 11.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add `libraryFile` configuration option ([#755](https://github.com/seek-oss/sku/pull/755))
8
+
9
+ This option allows the file name of the library to be specified in the sku configuration.
10
+ 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).
11
+
12
+ **EXAMPLE USAGE**:
13
+
14
+ ```typescript
15
+ // sku.config.ts
16
+ import type { SkuConfig } from 'sku';
17
+
18
+ const skuConfig: SkuConfig = {
19
+ libraryEntry: 'src/library.js',
20
+ renderEntry: 'src/render.js',
21
+ libraryName: 'MyAwesomeLibrary',
22
+ libraryFile: 'my-awesome-library',
23
+ };
24
+
25
+ export default skuConfig;
26
+ ```
27
+
3
28
  ## 11.7.2
4
29
 
5
30
  ### Patch Changes
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  [![npm](https://img.shields.io/npm/v/sku.svg?style=flat-square)](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](./CONTRIBUTING.md). If you're planning to change the public API, please [open a new issue](https://github.com/seek-oss/sku/issues/new) and follow the provided RFC template in the [GitHub issue template](.github/ISSUE_TEMPLATE.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
- SKU_LIBRARY_NAME: JSON.stringify(libraryName),
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,
@@ -149,6 +149,10 @@ module.exports = validator.compile({
149
149
  type: 'string',
150
150
  optional: true,
151
151
  },
152
+ libraryFile: {
153
+ type: 'string',
154
+ optional: true,
155
+ },
152
156
  dangerouslySetWebpackConfig: {
153
157
  type: 'function',
154
158
  },
@@ -30,6 +30,7 @@ module.exports = {
30
30
  publicPath: '/',
31
31
  polyfills: [],
32
32
  libraryName: null,
33
+ libraryFile: null,
33
34
  sourceMapsProd: false,
34
35
  displayNamesProd: false,
35
36
  dangerouslySetWebpackConfig: defaultDecorator,
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 = SKU_LIBRARY_NAME;
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="${publicPath}${libraryName}.css">`,
12
- bodyTags: `<script src="${publicPath}${libraryName}.js"></script>`,
14
+ headTags: `<link rel="stylesheet" type="text/css" href="${libraryPath}.css">`,
15
+ bodyTags: `<script src="${libraryPath}.js"></script>`,
13
16
  });
14
17
  };
@@ -7,7 +7,8 @@ import createCSPHandler from '../csp';
7
7
 
8
8
  import render from '__sku_alias__renderEntry';
9
9
 
10
- const libraryName = SKU_LIBRARY_NAME;
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.7.2",
3
+ "version": "11.8.0",
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": {
@@ -72,7 +41,6 @@
72
41
  "@storybook/builder-webpack5": "^6.5.12",
73
42
  "@storybook/manager-webpack5": "^6.5.12",
74
43
  "@storybook/react": "^6.5.12",
75
- "@types/jest": "^29.0.0",
76
44
  "@types/loadable__component": "^5.13.1",
77
45
  "@vanilla-extract/jest-transform": "^1.1.0",
78
46
  "@vanilla-extract/webpack-plugin": "^2.2.0",
@@ -123,7 +91,6 @@
123
91
  "html-render-webpack-plugin": "^3.0.1",
124
92
  "identity-obj-proxy": "^3.0.0",
125
93
  "indent-string": "^4.0.0",
126
- "inquirer": "^8.2.3",
127
94
  "jest": "^29.0.0",
128
95
  "jest-environment-jsdom": "^29.0.0",
129
96
  "jest-watch-typeahead": "^2.2.0",
@@ -165,10 +132,6 @@
165
132
  "x-default-browser": "^0.5.0"
166
133
  },
167
134
  "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
135
  "@types/dedent": "^0.7.0",
173
136
  "@types/express": "^4.17.11",
174
137
  "@types/react": "^17.0.0",
@@ -176,32 +139,16 @@
176
139
  "@vanilla-extract/css": "^1.0.0",
177
140
  "@vocab/react": "^1.0.1",
178
141
  "assert": "^2.0.0",
179
- "async-disk-cache": "^2.1.0",
180
142
  "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
143
  "node-fetch": "^2.6.1",
192
- "puppeteer": "^19.0.0",
193
144
  "react": "^17.0.1",
194
145
  "react-dom": "^17.0.1",
195
146
  "react-helmet": "^6.1.0",
196
147
  "react-router-dom": "^5.2.0",
197
- "renovate-config-seek": "^0.4.0",
198
148
  "seek-style-guide": "^42.0.0",
199
- "wait-on": "^5.2.1",
200
- "webpack-cli": "^5.0.0",
201
- "webpack-stats-plugin": "^1.0.3"
149
+ "webpack-cli": "^5.0.0"
202
150
  },
203
- "volta": {
204
- "node": "16.19.0",
205
- "yarn": "1.22.19"
151
+ "scripts": {
152
+ "postinstall": "node ./scripts/postinstall.js"
206
153
  }
207
- }
154
+ }
@@ -53,5 +53,9 @@ const { runVocabCompile } = require('../lib/runVocab');
53
53
  process.exitCode = 1;
54
54
  } finally {
55
55
  await track.close();
56
+
57
+ if (process.env.SKU_FORCE_EXIT) {
58
+ process.exit();
59
+ }
56
60
  }
57
61
  })();
File without changes
File without changes
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
  *
@@ -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;
@@ -1,8 +0,0 @@
1
- {
2
- "$schema": "https://unpkg.com/@changesets/config@1.5.0/schema.json",
3
- "changelog": "./changelog",
4
- "commit": false,
5
- "linked": [],
6
- "access": "public",
7
- "baseBranch": "master"
8
- }
package/.editorconfig DELETED
@@ -1,13 +0,0 @@
1
- # editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.snap]
13
- trim_trailing_whitespace = false
package/.eslintignore DELETED
@@ -1,12 +0,0 @@
1
- *.less.d.ts
2
- node_modules
3
- coverage/
4
- dist/
5
- dist-build/
6
- dist-playroom/
7
- dist-start/
8
- dist-storybook/
9
- report/
10
- template/
11
- test/test-cases/*/*
12
- !test/test-cases/*/*.test.js
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
- }
@@ -1,5 +0,0 @@
1
- # See https://help.github.com/articles/about-codeowners/ for more info
2
- # Each line is a file pattern followed by one or more owners.
3
-
4
- # These owners will be the default owners for everything in the repo.
5
- * @seek-oss/sku-maintainers
@@ -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
@@ -1,13 +0,0 @@
1
- *.less.d.ts
2
- node_modules
3
- coverage/
4
- dist/
5
- dist-ssr/
6
- dist-build/
7
- dist-playroom/
8
- dist-start/
9
- dist-storybook/
10
- report/
11
- template/
12
- .changeset/*.md
13
- CHANGELOG.md
@@ -1,5 +0,0 @@
1
- {
2
- "recommendations": [
3
- "bierner.comment-tagged-templates"
4
- ]
5
- }
@@ -1,3 +0,0 @@
1
- {
2
- "typescript.tsdk": "node_modules/typescript/lib"
3
- }