gscan 4.28.0 → 4.29.2
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/app/tpl/error.hbs +1 -1
- package/app/tpl/layouts/default.hbs +8 -8
- package/bin/cli.js +9 -4
- package/lib/checks/050-koenig-css-classes.js +1 -1
- package/lib/specs/canary.js +204 -166
- package/lib/specs/v1.js +60 -60
- package/lib/specs/v2.js +102 -91
- package/lib/specs/v3.js +8 -6
- package/lib/specs/v4.js +24 -21
- package/lib/utils/package-json.js +2 -11
- package/package.json +4 -4
package/app/tpl/error.hbs
CHANGED
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
|
|
58
58
|
</div>
|
|
59
59
|
<div class="gh-navbar-right">
|
|
60
|
-
<a class="gh-navbar-item" href="https://ghost.org/docs/
|
|
61
|
-
<a class="gh-navbar-btn gh-btn" href="https://ghost.org"><span>Ghost.org</span></a>
|
|
60
|
+
<a class="gh-navbar-item" href="https://ghost.org/docs/themes/" target="blank" rel="noopener">Theme Docs</a>
|
|
61
|
+
<a class="gh-navbar-btn gh-btn" href="https://ghost.org/"><span>Ghost.org</span></a>
|
|
62
62
|
</div>
|
|
63
63
|
</nav>
|
|
64
64
|
</header>
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
</nav>
|
|
100
100
|
<div class="gh-mobilemenu">
|
|
101
101
|
<a class="gh-navbar-item" href="https://gscan.ghost.org">GScan</a>
|
|
102
|
-
<a class="gh-navbar-item" href="https://ghost.org/docs/
|
|
103
|
-
<a class="gh-navbar-item" href="https://ghost.org">Ghost.org</a>
|
|
102
|
+
<a class="gh-navbar-item" href="https://ghost.org/docs/themes/">Theme Docs</a>
|
|
103
|
+
<a class="gh-navbar-item" href="https://ghost.org/">Ghost.org</a>
|
|
104
104
|
</div>
|
|
105
105
|
</header>
|
|
106
106
|
|
|
@@ -112,9 +112,9 @@
|
|
|
112
112
|
|
|
113
113
|
<footer class="gh-foot">
|
|
114
114
|
<div class="gh-foot-support inner">
|
|
115
|
-
<div class="gh-support-email" href="https://ghost.org/pricing">
|
|
115
|
+
<div class="gh-support-email" href="https://ghost.org/pricing/">
|
|
116
116
|
<h4>Ready to upgrade to the best?</h4>
|
|
117
|
-
<p>Spend less time running your servers and more time running your site. <strong><a href="https://ghost.org/pricing">Ghost(Pro)</a></strong>
|
|
117
|
+
<p>Spend less time running your servers and more time running your site. <strong><a href="https://ghost.org/pricing/">Ghost(Pro)</a></strong>
|
|
118
118
|
has got you covered</p>
|
|
119
119
|
</div>
|
|
120
120
|
<div class="gh-support-slack">
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
</div>
|
|
126
126
|
<div class="gh-foot-content inner">
|
|
127
127
|
<nav class="gh-foot-min-nav">
|
|
128
|
-
<a class="gh-foot-min-item gh-foot-min-logo" href="https://ghost.org">
|
|
128
|
+
<a class="gh-foot-min-item gh-foot-min-logo" href="https://ghost.org/">
|
|
129
129
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 294" preserveAspectRatio="xMidYMid meet" class="ghost-orb-logo-wh">
|
|
130
130
|
<title>Ghost Logo</title>
|
|
131
131
|
<style>
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
<a class="gh-foot-min-item" href="https://twitter.com/ghost">@Ghost</a>
|
|
155
155
|
</nav>
|
|
156
156
|
<div class="gh-foot-min-back">
|
|
157
|
-
<a class="gh-foot-min-item" href="https://ghost.org">Back to Ghost</a>
|
|
157
|
+
<a class="gh-foot-min-item" href="https://ghost.org/">Back to Ghost</a>
|
|
158
158
|
</div>
|
|
159
159
|
</div>
|
|
160
160
|
</footer>
|
package/bin/cli.js
CHANGED
|
@@ -131,12 +131,17 @@ function outputResult(result, options) {
|
|
|
131
131
|
if (result.failures && result.failures.length) {
|
|
132
132
|
if (options.verbose) {
|
|
133
133
|
ui.log(''); // extra line-break
|
|
134
|
-
ui.log(`${chalk.bold('Files:')}`);
|
|
134
|
+
ui.log(`${chalk.bold('Affected Files:')}`);
|
|
135
135
|
result.failures.forEach((failure) => {
|
|
136
|
-
|
|
136
|
+
let message = failure.ref;
|
|
137
|
+
|
|
138
|
+
if (failure.message) {
|
|
139
|
+
message += ` - ${failure.message}`;
|
|
140
|
+
}
|
|
141
|
+
ui.log(message);
|
|
137
142
|
});
|
|
138
143
|
} else {
|
|
139
|
-
ui.log(`${chalk.bold('Files:')} ${_.map(result.failures, 'ref')}`);
|
|
144
|
+
ui.log(`${chalk.bold('Affected Files:')} ${_.map(result.failures, 'ref')}`);
|
|
140
145
|
}
|
|
141
146
|
}
|
|
142
147
|
|
|
@@ -216,7 +221,7 @@ function outputResults(theme, options) {
|
|
|
216
221
|
_.each(theme.results.recommendation, rule => outputResult(rule, options));
|
|
217
222
|
}
|
|
218
223
|
|
|
219
|
-
ui.log(`\nGet more help at ${chalk.cyan.underline('https://ghost.org/docs/
|
|
224
|
+
ui.log(`\nGet more help at ${chalk.cyan.underline('https://ghost.org/docs/themes/')}`);
|
|
220
225
|
ui.log(`You can also check theme compatibility at ${chalk.cyan.underline('https://gscan.ghost.org/')}`);
|
|
221
226
|
|
|
222
227
|
// The CLI feature is mainly used to run gscan programatically in tests within themes.
|
|
@@ -12,7 +12,7 @@ const checkKoenigCssClasses = function checkKoenigCssClasses(theme, options) {
|
|
|
12
12
|
|
|
13
13
|
// Following the introduction of card assets, we disable certain rules
|
|
14
14
|
// when it's enabled by the theme.
|
|
15
|
-
const packageJson = getPackageJSON(theme);
|
|
15
|
+
const packageJson = getPackageJSON(theme, ruleSet.defaultPackageJSON);
|
|
16
16
|
const cardAssetsEnabled = packageJson
|
|
17
17
|
&& packageJson.config
|
|
18
18
|
&& packageJson.config.card_assets === true;
|