@mountainpass/problem-document 0.0.2 → 0.0.5

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.
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": [
3
+ "@commitlint/config-conventional"
4
+ ],
5
+ "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
6
+ }
package/.gitattributes CHANGED
@@ -1,16 +1,21 @@
1
1
  # ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
2
2
 
3
3
  *.snap linguist-generated
4
+ /.commitlintrc.json linguist-generated
4
5
  /.eslintrc.json linguist-generated
5
6
  /.gitattributes linguist-generated
7
+ /.github/dependabot.yml linguist-generated
6
8
  /.github/pull_request_template.md linguist-generated
7
9
  /.github/workflows/build.yml linguist-generated
8
10
  /.github/workflows/pull-request-lint.yml linguist-generated
9
11
  /.github/workflows/release.yml linguist-generated
10
- /.github/workflows/upgrade-main.yml linguist-generated
11
12
  /.gitignore linguist-generated
13
+ /.husky/commit-msg linguist-generated
14
+ /.husky/pre-commit linguist-generated
12
15
  /.mergify.yml linguist-generated
13
16
  /.npmignore linguist-generated
17
+ /.prettierignore linguist-generated
18
+ /.prettierrc.json linguist-generated
14
19
  /.projen/** linguist-generated
15
20
  /.projen/deps.json linguist-generated
16
21
  /.projen/files.json linguist-generated
package/.husky/commit-msg CHANGED
@@ -1,4 +1,3 @@
1
1
  #!/bin/sh
2
2
  . "$(dirname "$0")/_/husky.sh"
3
-
4
- npx --no -- commitlint --edit ""
3
+ npx --no -- commitlint --edit "${1}"
package/.husky/pre-commit CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/bin/sh
2
2
  . "$(dirname "$0")/_/husky.sh"
3
-
4
- npm test
5
- npm run eslint
3
+ npm run test:update
4
+ npm run eslint
@@ -0,0 +1 @@
1
+ # ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
@@ -0,0 +1,3 @@
1
+ {
2
+ "overrides": []
3
+ }
package/.projenrc.ts ADDED
@@ -0,0 +1,35 @@
1
+ import { MountainPassTypeScriptProject } from "@mountainpass/projen-typescript-library";
2
+ // import { typescript, JsonFile, TextFile } = require("projen");
3
+
4
+ const project = new MountainPassTypeScriptProject({
5
+ name: "problem-document",
6
+ deps: [] /* Runtime dependencies of this module. */,
7
+ description:
8
+ "A basic RFC7807 Problem Details document with basic type checking and autocomplete" /* The description is just a string that helps people understand the purpose of the package. */,
9
+ devDeps: [
10
+ "http-status-codes",
11
+ "@types/http-status-codes",
12
+ "@mountainpass/projen-typescript-library",
13
+ // "typedoc@^0.22.15"
14
+ // "eslint-config-standard": "^16.0.2",
15
+ // "eslint-plugin-chai-friendly": "^0.7.1",
16
+ // "eslint-plugin-eslint-comments": "^3.2.0",
17
+ // "eslint-plugin-import": "^2.22.1",
18
+ // "eslint-plugin-istanbul": "^0.1.2",
19
+ // "eslint-plugin-json": "^3.0.0",
20
+ // "eslint-plugin-markdown": "^2.1.0",
21
+ // "eslint-plugin-md": "^1.0.19",
22
+ // "eslint-plugin-node": "^11.1.0",
23
+ // "eslint-plugin-promise": "^5.1.0",
24
+ // "eslint-plugin-security": "^1.4.0",
25
+ ] /* Build dependencies for this module. */,
26
+ keywords: ["problem-details", "rfc7807"],
27
+ repositoryUrl: `https://github.com/mountain-pass/problem-document.git`,
28
+ author: "Mountain Pass",
29
+ authorAddress: "info@mountain-pass.com.au",
30
+ defaultReleaseBranch: "main",
31
+ });
32
+
33
+ project.addContributors("Tom Howard <tom@mountainpass.com.au>");
34
+
35
+ project.synth();
package/README.md CHANGED
@@ -1,3 +1,13 @@
1
1
  # problem-document
2
2
 
3
- A basic RFC7807 Problem Document with basic type checking and autocomplete
3
+ A basic RFC7807 Problem Details document with basic type checking and autocomplete A basic RFC7807 Problem Details document with basic type checking and autocomplete
4
+
5
+
6
+
7
+
8
+ ```js
9
+ let foo = bar
10
+ foo.forEach(efddd => {
11
+ efddd = 24
12
+ })
13
+ ```
package/cspell.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "language": "en-GB",
3
+ "words": [
4
+ "commitlint",
5
+ "docgen",
6
+ "projen",
7
+ "projenrc",
8
+ "unbump",
9
+ "mountainpass",
10
+ "dbaeumer",
11
+ "outdir"
12
+ ]
13
+ }
package/docs/.nojekyll ADDED
@@ -0,0 +1 @@
1
+ TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
@@ -0,0 +1,57 @@
1
+ :root {
2
+ --light-hl-0: #0000FF;
3
+ --dark-hl-0: #569CD6;
4
+ --light-hl-1: #000000;
5
+ --dark-hl-1: #D4D4D4;
6
+ --light-hl-2: #001080;
7
+ --dark-hl-2: #9CDCFE;
8
+ --light-hl-3: #795E26;
9
+ --dark-hl-3: #DCDCAA;
10
+ --light-hl-4: #098658;
11
+ --dark-hl-4: #B5CEA8;
12
+ --light-code-background: #F5F5F5;
13
+ --dark-code-background: #1E1E1E;
14
+ }
15
+
16
+ @media (prefers-color-scheme: light) { :root {
17
+ --hl-0: var(--light-hl-0);
18
+ --hl-1: var(--light-hl-1);
19
+ --hl-2: var(--light-hl-2);
20
+ --hl-3: var(--light-hl-3);
21
+ --hl-4: var(--light-hl-4);
22
+ --code-background: var(--light-code-background);
23
+ } }
24
+
25
+ @media (prefers-color-scheme: dark) { :root {
26
+ --hl-0: var(--dark-hl-0);
27
+ --hl-1: var(--dark-hl-1);
28
+ --hl-2: var(--dark-hl-2);
29
+ --hl-3: var(--dark-hl-3);
30
+ --hl-4: var(--dark-hl-4);
31
+ --code-background: var(--dark-code-background);
32
+ } }
33
+
34
+ body.light {
35
+ --hl-0: var(--light-hl-0);
36
+ --hl-1: var(--light-hl-1);
37
+ --hl-2: var(--light-hl-2);
38
+ --hl-3: var(--light-hl-3);
39
+ --hl-4: var(--light-hl-4);
40
+ --code-background: var(--light-code-background);
41
+ }
42
+
43
+ body.dark {
44
+ --hl-0: var(--dark-hl-0);
45
+ --hl-1: var(--dark-hl-1);
46
+ --hl-2: var(--dark-hl-2);
47
+ --hl-3: var(--dark-hl-3);
48
+ --hl-4: var(--dark-hl-4);
49
+ --code-background: var(--dark-code-background);
50
+ }
51
+
52
+ .hl-0 { color: var(--hl-0); }
53
+ .hl-1 { color: var(--hl-1); }
54
+ .hl-2 { color: var(--hl-2); }
55
+ .hl-3 { color: var(--hl-3); }
56
+ .hl-4 { color: var(--hl-4); }
57
+ pre, code { background: var(--code-background); }