pagean 4.4.2 → 6.0.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 +1 -1
- package/README.md +9 -9
- package/docs/upgrade-guide.md +16 -0
- package/index.js +7 -4
- package/lib/config.js +2 -2
- package/lib/default-config.json +41 -39
- package/lib/externalFileUtils.js +1 -1
- package/lib/linkUtils.js +162 -25
- package/lib/logger.js +1 -1
- package/lib/report-template.handlebars +224 -209
- package/lib/schemaErrors.js +5 -4
- package/lib/testUtils.js +1 -1
- package/lib/tests.js +14 -14
- package/package.json +28 -30
- package/schemas/pageanrc.schema.json +199 -191
- package/.codeclimate.json +0 -8
- package/.depcheckrc.json +0 -3
- package/.dockerignore +0 -12
- package/.eslintrc.json +0 -19
- package/.gitattributes +0 -4
- package/.gitlab/gitlab-releaser.json +0 -16
- package/.htmlhintrc +0 -25
- package/.markdownlint.json +0 -13
- package/.pa11yci.json +0 -5
- package/.pageanrc.json +0 -55
- package/.stylelintrc.json +0 -7
- package/CHANGELOG.md +0 -204
- package/gitlab.pageanrc.json +0 -16
- package/jest.config.json +0 -22
- package/static-server.pageanrc.json +0 -50
- package/tests/__snapshots__/config.test.js.snap +0 -591
- package/tests/__snapshots__/externalFileUtils.test.js.snap +0 -7
- package/tests/__snapshots__/index.test.js.snap +0 -30
- package/tests/__snapshots__/pagean.test.js.snap +0 -82
- package/tests/__snapshots__/pageanrc.test.js.snap +0 -759
- package/tests/__snapshots__/reporter.test.js.snap +0 -509
- package/tests/config.test.js +0 -264
- package/tests/externalFileUtils.test.js +0 -184
- package/tests/index.test.js +0 -181
- package/tests/linkUtils.test.js +0 -290
- package/tests/logger.test.js +0 -324
- package/tests/pagean.test.js +0 -85
- package/tests/pageanrc.test.js +0 -96
- package/tests/reporter.test.js +0 -82
- package/tests/schemaErrors.test.js +0 -88
- package/tests/test-cases/.htmlhintrc +0 -25
- package/tests/test-cases/brokenLinks.html +0 -22
- package/tests/test-cases/consoleLog.html +0 -11
- package/tests/test-cases/duplicateLinks.html +0 -22
- package/tests/test-cases/dynamicContent.html +0 -13
- package/tests/test-cases/externalScripts.html +0 -21
- package/tests/test-cases/horizontalScrollbar.html +0 -13
- package/tests/test-cases/htmlError.html +0 -11
- package/tests/test-cases/noExternalScripts.html +0 -12
- package/tests/test-cases/notDocumentLinks.html +0 -18
- package/tests/test-cases/pagean-results.json +0 -1
- package/tests/test-cases/scriptError404.html +0 -9
- package/tests/test-cases/slowLoad.html +0 -9
- package/tests/test-configs/cli-tests/.pageanrc.json +0 -28
- package/tests/test-configs/cli-tests/all-empty.pageanrc.json +0 -10
- package/tests/test-configs/cli-tests/all-errors.pageanrc.json +0 -69
- package/tests/test-configs/cli-tests/all-fail-cli.pageanrc.json +0 -9
- package/tests/test-configs/cli-tests/no-urls.pageanrc.json +0 -7
- package/tests/test-configs/cli-tests/pass-fail-cli.pageanrc.json +0 -14
- package/tests/test-configs/integration-tests/all-passing-tests.pageanrc.json +0 -63
- package/tests/test-configs/integration-tests/broken-links-error.pageanrc.json +0 -22
- package/tests/test-configs/integration-tests/console-error-reporter-cli-json.pageanrc.json +0 -20
- package/tests/test-configs/integration-tests/console-error-reporter-html.pageanrc.json +0 -19
- package/tests/test-configs/integration-tests/console-error.pageanrc.json +0 -16
- package/tests/test-configs/integration-tests/console-output.pageanrc.json +0 -16
- package/tests/test-configs/integration-tests/external-scripts-error.pageanrc.json +0 -19
- package/tests/test-configs/integration-tests/horizontal-scrollbar.pageanrc.json +0 -16
- package/tests/test-configs/integration-tests/html-error.pageanrc.json +0 -16
- package/tests/test-configs/integration-tests/page-load-time.pageanrc.json +0 -16
- package/tests/test-configs/unit-tests/empty-url-values.pageanrc.json +0 -9
- package/tests/test-configs/unit-tests/empty-urls.pageanrc.json +0 -3
- package/tests/test-configs/unit-tests/empty.pageanrc.json +0 -2
- package/tests/test-configs/unit-tests/global-and-test-specific-settings-shorthand.pageanrc.json +0 -30
- package/tests/test-configs/unit-tests/global-and-test-specific-settings-test-props.pageanrc.json +0 -42
- package/tests/test-configs/unit-tests/global-and-test-specific-settings.pageanrc.json +0 -34
- package/tests/test-configs/unit-tests/global-test-settings.pageanrc.json +0 -15
- package/tests/test-configs/unit-tests/htmlhintrc-invalid.pageanrc.json +0 -7
- package/tests/test-configs/unit-tests/htmlhintrc-valid.pageanrc.json +0 -7
- package/tests/test-configs/unit-tests/ignored-links-denormalized.pageanrc.json +0 -18
- package/tests/test-configs/unit-tests/invalid.pageanrc.json +0 -0
- package/tests/test-configs/unit-tests/no-test-settings.pageanrc.json +0 -6
- package/tests/test-configs/unit-tests/project-no-test-settings.pageanrc.json +0 -7
- package/tests/test-configs/unit-tests/puppeteer-no-test-settings.pageanrc.json +0 -9
- package/tests/test-configs/unit-tests/reporters-empty.pageanrc.json +0 -7
- package/tests/test-configs/unit-tests/reporters-invalid-type.pageanrc.json +0 -9
- package/tests/test-configs/unit-tests/reporters-not-array.pageanrc.json +0 -6
- package/tests/test-configs/unit-tests/reporters-valid.pageanrc.json +0 -9
- package/tests/test-configs/unit-tests/test-specific-settings.pageanrc.json +0 -26
- package/tests/test-configs/unit-tests/url-types.pageanrc.json +0 -10
- package/tests/testUtils.test.js +0 -244
- package/tests/tests.test.js +0 -533
|
@@ -1,214 +1,222 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://gitlab.com/gitlab-ci-utils/pagean/-/raw/master/schemas/pageanrc.schema.json",
|
|
4
|
+
"title": "Pagean Configuration File Schema",
|
|
5
|
+
"description": "The JSON schema definition for pageanrc configuration files.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"htmlhintrc": {
|
|
9
|
+
"description": "The path to the htmlhintrc file to use for the rendered HTML test (default ./.htmlhintrc)",
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"project": {
|
|
13
|
+
"description": "The name of the project being analyzed (for reports)",
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"puppeteerLaunchOptions": {
|
|
17
|
+
"description": "Options passed to puppeteer when launching the browser, see https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#puppeteerlaunchoptions for the complete list.",
|
|
18
|
+
"type": "object",
|
|
19
|
+
"minProperties": 1
|
|
20
|
+
},
|
|
21
|
+
"reporters": {
|
|
22
|
+
"description": "Reporters to use when returning the results of the Pagean tests.",
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"enum": [
|
|
26
|
+
"cli",
|
|
27
|
+
"html",
|
|
28
|
+
"json"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"minItems": 1
|
|
32
|
+
},
|
|
33
|
+
"settings": {
|
|
34
|
+
"description": "The global test settings to apply to all tests, unless overridden for a specific URL.",
|
|
35
|
+
"$ref": "#/definitions/allTestSettings"
|
|
36
|
+
},
|
|
37
|
+
"urls": {
|
|
38
|
+
"description": "The collection of URLs to test, with any URL-specific test settings.",
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"oneOf": [
|
|
42
|
+
{
|
|
43
|
+
"description": "The URL to be tested (without any URL-specific test settings).",
|
|
14
44
|
"type": "string"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"description": "
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"description": "An object specifying the URL and any URL-specific test settings.",
|
|
18
48
|
"type": "object",
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"json"
|
|
29
|
-
]
|
|
49
|
+
"properties": {
|
|
50
|
+
"url": {
|
|
51
|
+
"description": "The URL to be tested.",
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"settings": {
|
|
55
|
+
"description": "URL-specific test settings.",
|
|
56
|
+
"$ref": "#/definitions/allTestSettings"
|
|
57
|
+
}
|
|
30
58
|
},
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"description": "The global test settings to apply to all tests, unless overridden for a specific URL.",
|
|
35
|
-
"$ref": "#/definitions/allTestSettings"
|
|
36
|
-
},
|
|
37
|
-
"urls": {
|
|
38
|
-
"description": "The collection of URLs to test, with any URL-specific test settings.",
|
|
39
|
-
"type": "array",
|
|
40
|
-
"items": {
|
|
41
|
-
"oneOf": [
|
|
42
|
-
{
|
|
43
|
-
"description": "The URL to be tested (without any URL-specific test settings).",
|
|
44
|
-
"type": "string"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"description": "An object specifying the URL and any URL-specific test settings.",
|
|
48
|
-
"type": "object",
|
|
49
|
-
"properties": {
|
|
50
|
-
"url": {
|
|
51
|
-
"description": "The URL to be tested.",
|
|
52
|
-
"type": "string"
|
|
53
|
-
},
|
|
54
|
-
"settings": {
|
|
55
|
-
"description": "URL-specific test settings.",
|
|
56
|
-
"$ref": "#/definitions/allTestSettings"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"additionalProperties": {
|
|
60
|
-
"not": true,
|
|
61
|
-
"errorMessage": "should NOT contain additional properties: ${0#}"
|
|
62
|
-
},
|
|
63
|
-
"required": [
|
|
64
|
-
"url"
|
|
65
|
-
],
|
|
66
|
-
"errorMessage": {
|
|
67
|
-
"required": "should have required property url"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"errorMessage": "should be either URL string or object with the appropriate properties"
|
|
59
|
+
"additionalProperties": {
|
|
60
|
+
"not": true,
|
|
61
|
+
"errorMessage": "must NOT contain additional properties: ${0#}"
|
|
72
62
|
},
|
|
73
|
-
"
|
|
63
|
+
"required": [
|
|
64
|
+
"url"
|
|
65
|
+
],
|
|
66
|
+
"errorMessage": {
|
|
67
|
+
"required": "must have required property 'url'"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"errorMessage": "must be either URL string or object with the appropriate properties"
|
|
72
|
+
},
|
|
73
|
+
"minItems": 1
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"additionalProperties": {
|
|
77
|
+
"not": true,
|
|
78
|
+
"errorMessage": "must NOT contain additional properties: ${0#}"
|
|
79
|
+
},
|
|
80
|
+
"required": [
|
|
81
|
+
"urls"
|
|
82
|
+
],
|
|
83
|
+
"definitions": {
|
|
84
|
+
"detailedSetting": {
|
|
85
|
+
"description": "The complete set of test-specific settings for most tests.",
|
|
86
|
+
"type": "object",
|
|
87
|
+
"properties": {
|
|
88
|
+
"enabled": {
|
|
89
|
+
"description": "Value indicating whether the test is enabled.",
|
|
90
|
+
"type": "boolean"
|
|
91
|
+
},
|
|
92
|
+
"failWarn": {
|
|
93
|
+
"description": "Value indicating whether the test should report failure as a warning.",
|
|
94
|
+
"type": "boolean"
|
|
74
95
|
}
|
|
75
|
-
|
|
76
|
-
|
|
96
|
+
},
|
|
97
|
+
"additionalProperties": {
|
|
77
98
|
"not": true,
|
|
78
|
-
"errorMessage": "
|
|
99
|
+
"errorMessage": "must NOT contain additional properties: ${0#}"
|
|
100
|
+
},
|
|
101
|
+
"minProperties": 1
|
|
79
102
|
},
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
103
|
+
"simpleOrDetailedSetting": {
|
|
104
|
+
"oneOf": [
|
|
105
|
+
{
|
|
106
|
+
"description": "Value indicating whether the test is enabled (with other default settings).",
|
|
107
|
+
"type": "boolean"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"description": "The complete set of test-specific settings for a test.",
|
|
111
|
+
"$ref": "#/definitions/detailedSetting"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"errorMessage": "must be either boolean or object with the appropriate properties"
|
|
115
|
+
},
|
|
116
|
+
"allTestSettings": {
|
|
117
|
+
"description": "The complete set of test-specific settings for all test.",
|
|
118
|
+
"type": "object",
|
|
119
|
+
"properties": {
|
|
120
|
+
"horizontalScrollbarTest": {
|
|
121
|
+
"$ref": "#/definitions/simpleOrDetailedSetting"
|
|
122
|
+
},
|
|
123
|
+
"consoleOutputTest": {
|
|
124
|
+
"$ref": "#/definitions/simpleOrDetailedSetting"
|
|
125
|
+
},
|
|
126
|
+
"consoleErrorTest": {
|
|
127
|
+
"$ref": "#/definitions/simpleOrDetailedSetting"
|
|
128
|
+
},
|
|
129
|
+
"renderedHtmlTest": {
|
|
130
|
+
"$ref": "#/definitions/simpleOrDetailedSetting"
|
|
131
|
+
},
|
|
132
|
+
"pageLoadTimeTest": {
|
|
133
|
+
"oneOf": [
|
|
134
|
+
{
|
|
135
|
+
"description": "Value indicating whether the test is enabled (with other default settings).",
|
|
136
|
+
"type": "boolean"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"description": "The complete set of test-specific settings for the pageLoadTimeTest test.",
|
|
140
|
+
"type": "object",
|
|
141
|
+
"properties": {
|
|
88
142
|
"enabled": {
|
|
89
|
-
|
|
90
|
-
|
|
143
|
+
"description": "Value indicating whether the test is enabled.",
|
|
144
|
+
"type": "boolean"
|
|
91
145
|
},
|
|
92
146
|
"failWarn": {
|
|
93
|
-
|
|
94
|
-
|
|
147
|
+
"description": "Value indicating whether the test should report failure as a warning.",
|
|
148
|
+
"type": "boolean"
|
|
149
|
+
},
|
|
150
|
+
"pageLoadTimeThreshold": {
|
|
151
|
+
"description": "Maximum allowed time for page load before reporting an error.",
|
|
152
|
+
"type": "integer",
|
|
153
|
+
"minimum": 1
|
|
95
154
|
}
|
|
96
|
-
|
|
97
|
-
|
|
155
|
+
},
|
|
156
|
+
"additionalProperties": {
|
|
98
157
|
"not": true,
|
|
99
|
-
"errorMessage": "
|
|
100
|
-
|
|
101
|
-
|
|
158
|
+
"errorMessage": "must NOT contain additional properties: ${0#}"
|
|
159
|
+
},
|
|
160
|
+
"minProperties": 1
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"errorMessage": "must be either boolean or object with the appropriate properties"
|
|
102
164
|
},
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
{
|
|
106
|
-
"description": "Value indicating whether the test is enabled (with other default settings).",
|
|
107
|
-
"type": "boolean"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"description": "The complete set of test-specific settings for a test.",
|
|
111
|
-
"$ref": "#/definitions/detailedSetting"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"errorMessage": "should be either boolean or object with the appropriate properties"
|
|
165
|
+
"externalScriptTest": {
|
|
166
|
+
"$ref": "#/definitions/simpleOrDetailedSetting"
|
|
115
167
|
},
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"
|
|
127
|
-
|
|
168
|
+
"brokenLinkTest": {
|
|
169
|
+
"oneOf": [
|
|
170
|
+
{
|
|
171
|
+
"description": "Value indicating whether the test is enabled (with other default settings).",
|
|
172
|
+
"type": "boolean"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"description": "The complete set of test-specific settings for the brokenLinkTest test.",
|
|
176
|
+
"type": "object",
|
|
177
|
+
"properties": {
|
|
178
|
+
"enabled": {
|
|
179
|
+
"description": "Value indicating whether the test is enabled.",
|
|
180
|
+
"type": "boolean"
|
|
128
181
|
},
|
|
129
|
-
"
|
|
130
|
-
|
|
182
|
+
"failWarn": {
|
|
183
|
+
"description": "Value indicating whether the test should report failure as a warning.",
|
|
184
|
+
"type": "boolean"
|
|
131
185
|
},
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"properties": {
|
|
142
|
-
"enabled": {
|
|
143
|
-
"description": "Value indicating whether the test is enabled.",
|
|
144
|
-
"type": "boolean"
|
|
145
|
-
},
|
|
146
|
-
"failWarn": {
|
|
147
|
-
"description": "Value indicating whether the test should report failure as a warning.",
|
|
148
|
-
"type": "boolean"
|
|
149
|
-
},
|
|
150
|
-
"pageLoadTimeThreshold": {
|
|
151
|
-
"description": "Maximum allowed time for page load before reporting an error.",
|
|
152
|
-
"type": "integer",
|
|
153
|
-
"minimum": 1
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
"additionalProperties": {
|
|
157
|
-
"not": true,
|
|
158
|
-
"errorMessage": "should NOT contain additional properties: ${0#}"
|
|
159
|
-
},
|
|
160
|
-
"minProperties": 1
|
|
161
|
-
}
|
|
162
|
-
],
|
|
163
|
-
"errorMessage": "should be either boolean or object with the appropriate properties"
|
|
186
|
+
"ignoredLinks": {
|
|
187
|
+
"description": "Array of links that will be ignored (i.e. not checked).",
|
|
188
|
+
"type": "array",
|
|
189
|
+
"items": {
|
|
190
|
+
"type": "string"
|
|
191
|
+
},
|
|
192
|
+
"uniqueItems": true,
|
|
193
|
+
"minItems": 0,
|
|
194
|
+
"maxItems": 100
|
|
164
195
|
},
|
|
165
|
-
"
|
|
166
|
-
|
|
196
|
+
"checkWithBrowser": {
|
|
197
|
+
"description": "Value indicating that links should be checked by loading in browser",
|
|
198
|
+
"type": "boolean"
|
|
167
199
|
},
|
|
168
|
-
"
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
"description": "Value indicating whether the test is enabled (with other default settings).",
|
|
172
|
-
"type": "boolean"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"description": "The complete set of test-specific settings for the brokenLinkTest test.",
|
|
176
|
-
"type": "object",
|
|
177
|
-
"properties": {
|
|
178
|
-
"enabled": {
|
|
179
|
-
"description": "Value indicating whether the test is enabled.",
|
|
180
|
-
"type": "boolean"
|
|
181
|
-
},
|
|
182
|
-
"failWarn": {
|
|
183
|
-
"description": "Value indicating whether the test should report failure as a warning.",
|
|
184
|
-
"type": "boolean"
|
|
185
|
-
},
|
|
186
|
-
"ignoredLinks": {
|
|
187
|
-
"description": "Array of links that will be ignored (i.e. not checked).",
|
|
188
|
-
"type": "array",
|
|
189
|
-
"items": {
|
|
190
|
-
"type": "string"
|
|
191
|
-
},
|
|
192
|
-
"uniqueItems": true,
|
|
193
|
-
"minItems": 0,
|
|
194
|
-
"maxItems": 100
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
"additionalProperties": {
|
|
198
|
-
"not": true,
|
|
199
|
-
"errorMessage": "should NOT contain additional properties: ${0#}"
|
|
200
|
-
},
|
|
201
|
-
"minProperties": 1
|
|
202
|
-
}
|
|
203
|
-
],
|
|
204
|
-
"errorMessage": "should be either boolean or object with the appropriate properties"
|
|
200
|
+
"ignoreDuplicates": {
|
|
201
|
+
"description": "Value indicating that links should only be checked once",
|
|
202
|
+
"type": "boolean"
|
|
205
203
|
}
|
|
206
|
-
|
|
207
|
-
|
|
204
|
+
},
|
|
205
|
+
"additionalProperties": {
|
|
208
206
|
"not": true,
|
|
209
|
-
"errorMessage": "
|
|
210
|
-
|
|
211
|
-
|
|
207
|
+
"errorMessage": "must NOT contain additional properties: ${0#}"
|
|
208
|
+
},
|
|
209
|
+
"minProperties": 1
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"errorMessage": "must be either boolean or object with the appropriate properties"
|
|
212
213
|
}
|
|
214
|
+
},
|
|
215
|
+
"additionalProperties": {
|
|
216
|
+
"not": true,
|
|
217
|
+
"errorMessage": "must NOT contain additional properties: ${0#}"
|
|
218
|
+
},
|
|
219
|
+
"minProperties": 1
|
|
213
220
|
}
|
|
214
|
-
}
|
|
221
|
+
}
|
|
222
|
+
}
|
package/.codeclimate.json
DELETED
package/.depcheckrc.json
DELETED
package/.dockerignore
DELETED
package/.eslintrc.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true
|
|
4
|
-
},
|
|
5
|
-
"extends": [
|
|
6
|
-
"@aarongoldenthal/eslint-config-standard",
|
|
7
|
-
"@aarongoldenthal/eslint-config-standard/jest-config",
|
|
8
|
-
"@aarongoldenthal/eslint-config-standard/node-config",
|
|
9
|
-
"@aarongoldenthal/eslint-config-standard/sonarjs-config"
|
|
10
|
-
],
|
|
11
|
-
"ignorePatterns": [
|
|
12
|
-
".vscode/",
|
|
13
|
-
"Archive/",
|
|
14
|
-
"node_modules/",
|
|
15
|
-
"coverage/",
|
|
16
|
-
"pagean-external-scripts/"
|
|
17
|
-
],
|
|
18
|
-
"root": true
|
|
19
|
-
}
|
package/.gitattributes
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"defaults": {
|
|
3
|
-
"name": "$$CHANGELOG",
|
|
4
|
-
"description": "$$CHANGELOG",
|
|
5
|
-
"assets": {
|
|
6
|
-
"links": [
|
|
7
|
-
{
|
|
8
|
-
"name": "npm",
|
|
9
|
-
"url": "https://www.npmjs.com/package/pagean",
|
|
10
|
-
"type": "package"
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
},
|
|
14
|
-
"milestones": [ "${CI_COMMIT_TAG}" ]
|
|
15
|
-
}
|
|
16
|
-
}
|
package/.htmlhintrc
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tagname-lowercase": true,
|
|
3
|
-
"attr-lowercase": true,
|
|
4
|
-
"attr-value-double-quotes": true,
|
|
5
|
-
"attr-value-not-empty": false,
|
|
6
|
-
"attr-no-duplication": true,
|
|
7
|
-
"doctype-first": true,
|
|
8
|
-
"tag-pair": true,
|
|
9
|
-
"empty-tag-not-self-closed": true,
|
|
10
|
-
"spec-char-escape": true,
|
|
11
|
-
"id-unique": true,
|
|
12
|
-
"src-not-empty": true,
|
|
13
|
-
"title-require": true,
|
|
14
|
-
"alt-require": true,
|
|
15
|
-
"doctype-html5": true,
|
|
16
|
-
"id-class-value": "false",
|
|
17
|
-
"style-disabled": false,
|
|
18
|
-
"inline-style-disabled": false,
|
|
19
|
-
"inline-script-disabled": false,
|
|
20
|
-
"space-tab-mixed-disabled": "space",
|
|
21
|
-
"id-class-ad-disabled": false,
|
|
22
|
-
"href-abs-or-rel": false,
|
|
23
|
-
"attr-unsafe-chars": true,
|
|
24
|
-
"head-script-disabled": true
|
|
25
|
-
}
|
package/.markdownlint.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"default": true,
|
|
3
|
-
"header-style": { "style": "atx" },
|
|
4
|
-
"ul-style": { "style": "dash" },
|
|
5
|
-
"ul-indent": { "indent": 2 },
|
|
6
|
-
"line-length": false,
|
|
7
|
-
"no-duplicate-header": { "siblings_only": true } ,
|
|
8
|
-
"ol-prefix": { "style": "ordered" },
|
|
9
|
-
"no-inline-html": false,
|
|
10
|
-
"no-bare-urls": false,
|
|
11
|
-
"hr-style": { "style": "---" },
|
|
12
|
-
"fenced-code-language": false
|
|
13
|
-
}
|
package/.pa11yci.json
DELETED
package/.pageanrc.json
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"project": "Pagean",
|
|
3
|
-
"puppeteerLaunchOptions": {
|
|
4
|
-
"args": [
|
|
5
|
-
"--no-sandbox"
|
|
6
|
-
]
|
|
7
|
-
},
|
|
8
|
-
"settings": {
|
|
9
|
-
"pageLoadTimeTest": {
|
|
10
|
-
"pageLoadTimeThreshold": 3
|
|
11
|
-
},
|
|
12
|
-
"brokenLinkTest": {
|
|
13
|
-
"failWarn": false
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"urls": [
|
|
17
|
-
"tests/test-cases/consoleLog.html",
|
|
18
|
-
"tests/test-cases/dynamicContent.html",
|
|
19
|
-
"tests/test-cases/horizontalScrollbar.html",
|
|
20
|
-
"tests/test-cases/htmlError.html",
|
|
21
|
-
{
|
|
22
|
-
"url": "tests/test-cases/scriptError404.html",
|
|
23
|
-
"settings": {
|
|
24
|
-
"consoleOutputTest": false,
|
|
25
|
-
"externalScriptTest": false
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"url": "tests/test-cases/slowLoad.html",
|
|
30
|
-
"settings": {
|
|
31
|
-
"pageLoadTimeTest": {
|
|
32
|
-
"pageLoadTimeThreshold": 2
|
|
33
|
-
},
|
|
34
|
-
"externalScriptTest": false
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"url": "tests/test-cases/externalScripts.html",
|
|
39
|
-
"settings": {
|
|
40
|
-
"consoleOutputTest": false,
|
|
41
|
-
"consoleErrorTest": false
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"url": "tests/test-cases/brokenLinks.html",
|
|
46
|
-
"settings": {
|
|
47
|
-
"brokenLinkTest": {
|
|
48
|
-
"ignoredLinks": [
|
|
49
|
-
"https://this.url.is.ignored"
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
}
|