gscan 4.49.7 → 5.0.0
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/README.md +6 -6
- package/app/tpl/index.hbs +2 -2
- package/lib/utils/versions.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
GScan is a tool for validating Ghost themes. It produces detailed reports of issues where themes need to be modified in order to be compatible with a specific version.
|
|
8
8
|
|
|
9
|
-
It is actively capable of dealing with the current and last major versions of Ghost (
|
|
9
|
+
It is actively capable of dealing with the current and last major versions of Ghost (v1-v6).
|
|
10
10
|
|
|
11
11
|
GScan works on a system of rules. Each rule has a way to check whether it passes or fails and has help content which describes how to fix it. Each rule is also marked with an error level:
|
|
12
12
|
|
|
@@ -49,14 +49,14 @@ By default, GScan scans themes for the latest Ghost version compatibility. You c
|
|
|
49
49
|
`--v2` or `-2`
|
|
50
50
|
`--v3` or `-3`
|
|
51
51
|
`--v4` or `-4`
|
|
52
|
-
`--v5` or `-5`
|
|
53
|
-
`--v6` or `-6` or `--canary`
|
|
52
|
+
`--v5` or `-5`
|
|
53
|
+
`--v6` or `-6` (default) or `--canary`
|
|
54
54
|
|
|
55
55
|
Examples:
|
|
56
56
|
|
|
57
57
|
`gscan /path/to/theme.zip -z -1` - scan a theme in a zip file for Ghost 1.0 compatibility
|
|
58
58
|
`gscan /path/to/theme/directory --v2` - can a theme in a directory for Ghost 2.0 compatibility
|
|
59
|
-
`gscan /path/to/theme/directory` - scan a theme for Ghost
|
|
59
|
+
`gscan /path/to/theme/directory` - scan a theme for Ghost 6.0 compatibility
|
|
60
60
|
|
|
61
61
|
### 4. Lib usage
|
|
62
62
|
|
|
@@ -71,8 +71,8 @@ gscan.checkZip({
|
|
|
71
71
|
// if you need to check the theme for a different
|
|
72
72
|
// major Ghost version, you can pass it. Currently
|
|
73
73
|
// v1, v2, v3, v4, v5 and v6 are supported. Default is
|
|
74
|
-
// the latest Ghost version
|
|
75
|
-
// checkVersion: '
|
|
74
|
+
// the latest Ghost version 6.0:
|
|
75
|
+
// checkVersion: 'v6',
|
|
76
76
|
name: 'my-theme'
|
|
77
77
|
}).then(function (result) {
|
|
78
78
|
console.log(result);
|
package/app/tpl/index.hbs
CHANGED
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
<span class="gh-input-icon select-arrow">{{> icon-arrow-up}}</span>
|
|
23
23
|
<span class="gh-input-icon select-arrow active">{{> icon-arrow-down}}</span>
|
|
24
24
|
<select class="gh-input gh-select" name="version" id="version">
|
|
25
|
-
<option value="v6">{{ghostVersions.v6.major}}</option>
|
|
26
|
-
<option value="v5"
|
|
25
|
+
<option value="v6" selected>{{ghostVersions.v6.major}}</option>
|
|
26
|
+
<option value="v5">{{ghostVersions.v5.major}}</option>
|
|
27
27
|
<option value="v4">{{ghostVersions.v4.major}}</option>
|
|
28
28
|
<option value="v3">{{ghostVersions.v3.major}}</option>
|
|
29
29
|
<option value="v2">{{ghostVersions.v2.major}}</option>
|
package/lib/utils/versions.json
CHANGED