@defra/flood-webchat 0.0.1-beta.51 → 0.0.1-beta.53

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra/flood-webchat",
3
- "version": "0.0.1-beta.51",
3
+ "version": "0.0.1-beta.53",
4
4
  "description": "",
5
5
  "main": "dist/server.js",
6
6
  "browser": "dist/client.js",
@@ -106,6 +106,7 @@
106
106
  background-color: govuk-colour('blue');
107
107
  border-radius: 10px 0 10px 10px;
108
108
 
109
+ .govuk-link:link,
109
110
  .govuk-link:visited {
110
111
  color: govuk-colour('white');
111
112
  }
Binary file
Binary file
@@ -1,5 +0,0 @@
1
- # Development Guide
2
-
3
- 1) Clone the repo
4
- 2) Run `npm install` to install the dependencies.
5
- 3) Run `npm run dev` to run a demo server with hot module reloading on http://localhost:9000.
@@ -1,41 +0,0 @@
1
- # How to Publish
2
-
3
- This repo implements automated publishing via GitHub actions triggered by creating a release in GitHub.
4
- Releases should respect [the semantic versioning specification v2.0.0](https://semver.org/spec/v2.0.0.html).
5
-
6
- ## A Pre-Release
7
- 1) Go to the [GitHub repo homepage](https://github.com/DEFRA/flood-webchat) for this project.
8
- 2) Click "Create a new release"
9
-
10
- ![](./assets/create-a-new-release.png)
11
-
12
- 3) Select your Target branch, by default it will be the "main" branch.
13
- 4) Click "Choose a Tag", enter a version tag with the appropriate semantic version bump and suffixed with a pre-release identifier and click "Create new tag". _(for example if the latest published version was `v1.2.3` and you wish to publish a pre-release from your "cool-update"
14
- branch, name the release: `v1.2.4-cool-update.1`)_
15
-
16
- ![](./assets/example-pre-release.png)
17
-
18
- 5) Use your version name as a title, and add appropriate release notes in the description field.
19
- 6) Tick the "Set as a pre-release" checkbox.
20
- 7) Click "Publish release"
21
- 8) A GitHub Action should then be triggered automatically, publishing your pre-release to npm.
22
- 9) You can install your pre-release into a consuming project by running `npm i @defra/flood-webchat@<version-number>`, e.g. `npm i @defra/flood-webchat@1.2.4-cool-update.1`.
23
-
24
- _NOTE: pre-release identifiers must match the pattern `^-[0-9A-Za-z-].*$`_
25
-
26
- ## A Release
27
- 1) Go to the [GitHub repo homepage](https://github.com/DEFRA/flood-webchat) for this project.
28
- 2) Click "Create a new release"
29
-
30
- ![](./assets/create-a-new-release.png)
31
-
32
- 3) Ensure that your Target branch is the "main" branch (this is the default).
33
- 4) Click "Choose a Tag", enter a version tag with the appropriate semantic version bump.
34
-
35
- ![](./assets/example-release.png)
36
-
37
- 5) Use your version name as a title, and add appropriate release notes in the description field.
38
- 6) Ensure that the "Set as a pre-release" checkbox is **NOT** checked.
39
- 7) Click "Publish release"
40
- 8) A GitHub Action should then be triggered automatically, publishing your release to npm.
41
- 9) You can install your release into a consuming project by running `npm i @defra/flood-webchat@<version-number>`, e.g. `npm i @defra/flood-webchat@1.2.4`.
package/jest.config.mjs DELETED
@@ -1,29 +0,0 @@
1
- /**
2
- * For a detailed explanation regarding each configuration property, visit:
3
- * https://jestjs.io/docs/configuration
4
- */
5
-
6
- /** @type {import('jest').Config} */
7
- const config = {
8
- collectCoverage: true,
9
- coverageDirectory: 'coverage',
10
- transform: {
11
- '\\.jsx?$': 'babel-jest',
12
- '\\.mjs$': 'babel-jest'
13
- },
14
- projects: [
15
- {
16
- displayName: 'client-side',
17
- testEnvironment: 'jsdom',
18
- testMatch: ['**/__tests__/client/**/*.?(m)js?(x)'],
19
- transformIgnorePatterns: []
20
- },
21
- {
22
- displayName: 'server-side',
23
- testEnvironment: 'node',
24
- testMatch: ['**/__tests__/server/**/*.?(m)js?(x)']
25
- }
26
- ]
27
- }
28
-
29
- export default config
@@ -1,30 +0,0 @@
1
- import path from 'path'
2
-
3
- import nodeExternals from 'webpack-node-externals'
4
-
5
- const __dirname = path.dirname(new URL(import.meta.url).pathname)
6
-
7
- export default {
8
- entry: {
9
- client: path.join(__dirname, 'src/client/index.jsx'),
10
- server: path.join(__dirname, 'src/server/index.js')
11
- },
12
- output: {
13
- path: path.resolve(__dirname, 'dist'),
14
- library: {
15
- type: 'commonjs2'
16
- }
17
- },
18
- target: 'node',
19
- externals: [nodeExternals()],
20
- module: {
21
- rules: [
22
- {
23
- test: /\.jsx?$/i,
24
- use: [
25
- 'babel-loader'
26
- ]
27
- }
28
- ]
29
- }
30
- }
package/webpack.prod.mjs DELETED
@@ -1,7 +0,0 @@
1
- import { merge } from 'webpack-merge'
2
-
3
- import common from './webpack.config.mjs'
4
-
5
- export default merge(common, {
6
- mode: 'production'
7
- })