@defra/flood-webchat 0.0.1-alpha.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/LICENSE +8 -0
- package/README.md +25 -0
- package/main.scss +0 -0
- package/package.json +48 -0
- package/src/browser.mjs +3 -0
- package/src/main.mjs +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
The Open Government Licence (OGL) Version 3
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 DEFRA
|
|
4
|
+
|
|
5
|
+
This source code is licensed under the Open Government Licence v3.0. To view this
|
|
6
|
+
licence, visit www.nationalarchives.gov.uk/doc/open-government-licence/version/3
|
|
7
|
+
or write to the Information Policy Team, The National Archives, Kew, Richmond,
|
|
8
|
+
Surrey, TW9 4DU.
|
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# flood-webchat
|
|
2
|
+
|
|
3
|
+
## Development
|
|
4
|
+
A demo server with hot module reloading can be started at http://localhost:9000 by running:
|
|
5
|
+
|
|
6
|
+
```shell
|
|
7
|
+
npm run dev
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## How to Publish
|
|
11
|
+
|
|
12
|
+
### A Pre-Release
|
|
13
|
+
|
|
14
|
+
Via the GitHub GUI, create a release off your branch with a name matching a semver version pattern for the appropriate
|
|
15
|
+
version with an added pre-release identifier, and check the pre-release identifier.
|
|
16
|
+
For example if the latest published version was `v1.2.3` and you wish to publish a pre-release from your "cool-update"
|
|
17
|
+
branch, name the release: `v1.2.4-cool-update.1`
|
|
18
|
+
|
|
19
|
+
### A Release
|
|
20
|
+
|
|
21
|
+
Via the GitHub GUI, create a release off the main branch with a name matching a semver version pattern with the
|
|
22
|
+
appropriate version bump. For example if the latest published version was `v1.2.3` and you wish to release:
|
|
23
|
+
- a patch update, the new release should be called `v1.2.4`
|
|
24
|
+
- a minor update, the new release should be called `v1.3.0`
|
|
25
|
+
- a major update, the new release should be called `v2.0.0`
|
package/main.scss
ADDED
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@defra/flood-webchat",
|
|
3
|
+
"version": "0.0.1-alpha.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "src/main.mjs",
|
|
6
|
+
"browser": "src/browser.mjs",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "npm run lint && npm run unit-test",
|
|
9
|
+
"dev": "(cd demo && webpack server)",
|
|
10
|
+
"unit-test": "jest",
|
|
11
|
+
"lint": "standard",
|
|
12
|
+
"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') { throw e } }\""
|
|
13
|
+
},
|
|
14
|
+
"standard": {
|
|
15
|
+
"ignore": [
|
|
16
|
+
"demo/dist"
|
|
17
|
+
],
|
|
18
|
+
"env": [
|
|
19
|
+
"jest"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"keywords": [],
|
|
23
|
+
"author": "DEFRA",
|
|
24
|
+
"license": "OGL-UK-3.0",
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@babel/core": "^7.22.10",
|
|
27
|
+
"@babel/preset-env": "^7.22.10",
|
|
28
|
+
"@types/jest": "^29.5.4",
|
|
29
|
+
"babel-jest": "^29.6.4",
|
|
30
|
+
"babel-loader": "^9.1.3",
|
|
31
|
+
"core-js": "^2.6.11",
|
|
32
|
+
"css-loader": "^6.8.1",
|
|
33
|
+
"husky": "^8.0.3",
|
|
34
|
+
"jest": "^29.6.3",
|
|
35
|
+
"jest-environment-jsdom": "^29.6.3",
|
|
36
|
+
"mini-css-extract-plugin": "^2.7.6",
|
|
37
|
+
"node-sass": "^9.0.0",
|
|
38
|
+
"sass": "^1.66.1",
|
|
39
|
+
"sass-loader": "^13.3.2",
|
|
40
|
+
"standard": "^17.1.0",
|
|
41
|
+
"webpack": "^5.88.2",
|
|
42
|
+
"webpack-cli": "^5.1.4",
|
|
43
|
+
"webpack-dev-server": "^4.15.1"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"govuk-frontend": "^3.14.0"
|
|
47
|
+
}
|
|
48
|
+
}
|
package/src/browser.mjs
ADDED
package/src/main.mjs
ADDED
|
File without changes
|