Skip to content

Commit 96c6516

Browse files
committed
switch to royalfig/ghost-theme-starter
1 parent 660e5c0 commit 96c6516

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+20539
-8793
lines changed

.babelrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"modules": false
7+
}
8+
]
9+
]
10+
}

.browserslistrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
defaults

.eslintrc.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
},
6+
extends: ['airbnb-base'],
7+
globals: {
8+
Atomics: 'readonly',
9+
SharedArrayBuffer: 'readonly',
10+
},
11+
parserOptions: {
12+
ecmaVersion: 2018,
13+
sourceType: 'module',
14+
},
15+
rules: {
16+
'comma-dangle': ['error', 'always-multiline'],
17+
'operator-linebreak': 0,
18+
'implicit-arrow-linebreak': 0,
19+
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
20+
indent: 'off',
21+
},
22+
};

.github/workflows/deploy-theme.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
11-
- run: yarn install
12-
- run: yarn test:ci
13-
- run: yarn ship
11+
- run: npm install
12+
- run: npm run check
13+
- run: npm run zip
1414
- name: Deploy Ghost Theme
15-
uses: TryGhost/action-deploy-theme@v1.6.2
15+
uses: TryGhost/action-deploy-theme@v1
1616
with:
1717
api-url: ${{ secrets.GHOST_ADMIN_API_URL }}
1818
api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}
19+
file: dist/theme.zip

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ jobs:
1111
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
1212
steps:
1313
- uses: actions/checkout@v3
14-
- run: yarn
15-
- run: yarn test:ci
14+
- run: npm install
15+
- run: npm run check

.gitignore

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
b-cov
2-
*.seed
3-
*.log
4-
*.csv
5-
*.dat
6-
*.out
7-
*.pid
8-
*.gz
9-
10-
pids
11-
logs
12-
results
13-
14-
npm-debug.log
15-
node_modules
16-
package-lock.json
17-
18-
.idea/*
19-
*.iml
20-
projectFilesBackup
21-
22-
.DS_Store
23-
24-
dist/
25-
built/
1+
/assets/built/
2+
/dist/
3+
/node_modules/

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all",
4+
"endOfLine": "lf",
5+
"proseWrap": "preserve"
6+
}

.stylelintrc.json

Lines changed: 280 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,280 @@
1+
{
2+
"plugins": ["stylelint-order"],
3+
"rules": {
4+
"at-rule-empty-line-before": null,
5+
"at-rule-name-space-after": "always",
6+
"at-rule-no-unknown": null,
7+
"at-rule-no-vendor-prefix": true,
8+
"at-rule-semicolon-space-before": "never",
9+
"block-closing-brace-empty-line-before": null,
10+
"block-closing-brace-newline-after": null,
11+
"block-opening-brace-space-before": null,
12+
"color-named": "never",
13+
"declaration-block-semicolon-newline-after": "always-multi-line",
14+
"declaration-block-semicolon-newline-before": "never-multi-line",
15+
"declaration-block-semicolon-space-after": "always-single-line",
16+
"declaration-empty-line-before": null,
17+
"declaration-no-important": true,
18+
"font-family-name-quotes": "always-where-recommended",
19+
"font-weight-notation": [
20+
"numeric",
21+
{
22+
"ignore": ["relative"]
23+
}
24+
],
25+
"function-url-no-scheme-relative": true,
26+
"function-url-quotes": "always",
27+
"length-zero-no-unit": true,
28+
"max-empty-lines": 4,
29+
"max-line-length": null,
30+
"media-feature-name-no-unknown": [
31+
true,
32+
{
33+
"ignoreMediaFeatureNames": ["prefers-reduced-motion"]
34+
}
35+
],
36+
"media-feature-name-no-vendor-prefix": true,
37+
"media-feature-parentheses-space-inside": "never",
38+
"media-feature-range-operator-space-after": "always",
39+
"media-feature-range-operator-space-before": "never",
40+
"no-descending-specificity": null,
41+
"no-duplicate-selectors": true,
42+
"number-leading-zero": "always",
43+
"order/properties-order": [
44+
"position",
45+
"top",
46+
"right",
47+
"bottom",
48+
"left",
49+
"z-index",
50+
"box-sizing",
51+
"display",
52+
"flex",
53+
"flex-align",
54+
"flex-basis",
55+
"flex-direction",
56+
"flex-wrap",
57+
"flex-flow",
58+
"flex-shrink",
59+
"flex-grow",
60+
"flex-order",
61+
"flex-pack",
62+
"align-content",
63+
"align-items",
64+
"align-self",
65+
"justify-content",
66+
"order",
67+
"float",
68+
"width",
69+
"min-width",
70+
"max-width",
71+
"height",
72+
"min-height",
73+
"max-height",
74+
"padding",
75+
"padding-top",
76+
"padding-right",
77+
"padding-bottom",
78+
"padding-left",
79+
"margin",
80+
"margin-top",
81+
"margin-right",
82+
"margin-bottom",
83+
"margin-left",
84+
"overflow",
85+
"overflow-x",
86+
"overflow-y",
87+
"-webkit-overflow-scrolling",
88+
"-ms-overflow-x",
89+
"-ms-overflow-y",
90+
"-ms-overflow-style",
91+
"columns",
92+
"column-count",
93+
"column-fill",
94+
"column-gap",
95+
"column-rule",
96+
"column-rule-width",
97+
"column-rule-style",
98+
"column-rule-color",
99+
"column-span",
100+
"column-width",
101+
"orphans",
102+
"widows",
103+
"clip",
104+
"clear",
105+
"font",
106+
"font-family",
107+
"font-size",
108+
"font-style",
109+
"font-weight",
110+
"font-variant",
111+
"font-size-adjust",
112+
"font-stretch",
113+
"font-effect",
114+
"font-emphasize",
115+
"font-emphasize-position",
116+
"font-emphasize-style",
117+
"font-smooth",
118+
"src",
119+
"hyphens",
120+
"line-height",
121+
"color",
122+
"text-align",
123+
"text-align-last",
124+
"text-emphasis",
125+
"text-emphasis-color",
126+
"text-emphasis-style",
127+
"text-emphasis-position",
128+
"text-decoration",
129+
"text-indent",
130+
"text-justify",
131+
"text-outline",
132+
"-ms-text-overflow",
133+
"text-overflow",
134+
"text-overflow-ellipsis",
135+
"text-overflow-mode",
136+
"text-shadow",
137+
"text-transform",
138+
"text-wrap",
139+
"-webkit-text-size-adjust",
140+
"-ms-text-size-adjust",
141+
"letter-spacing",
142+
"-ms-word-break",
143+
"word-break",
144+
"word-spacing",
145+
"-ms-word-wrap",
146+
"word-wrap",
147+
"overflow-wrap",
148+
"tab-size",
149+
"white-space",
150+
"vertical-align",
151+
"direction",
152+
"unicode-bidi",
153+
"list-style",
154+
"list-style-position",
155+
"list-style-type",
156+
"list-style-image",
157+
"pointer-events",
158+
"-ms-touch-action",
159+
"touch-action",
160+
"cursor",
161+
"visibility",
162+
"zoom",
163+
"table-layout",
164+
"empty-cells",
165+
"caption-side",
166+
"border-spacing",
167+
"border-collapse",
168+
"content",
169+
"quotes",
170+
"counter-reset",
171+
"counter-increment",
172+
"resize",
173+
"user-select",
174+
"nav-index",
175+
"nav-up",
176+
"nav-right",
177+
"nav-down",
178+
"nav-left",
179+
"background",
180+
"background-color",
181+
"background-image",
182+
"filter",
183+
"background-repeat",
184+
"background-attachment",
185+
"background-position",
186+
"background-position-x",
187+
"background-position-y",
188+
"background-clip",
189+
"background-origin",
190+
"background-size",
191+
"border",
192+
"border-color",
193+
"border-style",
194+
"border-width",
195+
"border-top",
196+
"border-top-color",
197+
"border-top-style",
198+
"border-top-width",
199+
"border-right",
200+
"border-right-color",
201+
"border-right-style",
202+
"border-right-width",
203+
"border-bottom",
204+
"border-bottom-color",
205+
"border-bottom-style",
206+
"border-bottom-width",
207+
"border-left",
208+
"border-left-color",
209+
"border-left-style",
210+
"border-left-width",
211+
"border-radius",
212+
"border-top-left-radius",
213+
"border-top-right-radius",
214+
"border-bottom-right-radius",
215+
"border-bottom-left-radius",
216+
"border-image",
217+
"border-image-source",
218+
"border-image-slice",
219+
"border-image-width",
220+
"border-image-outset",
221+
"border-image-repeat",
222+
"outline",
223+
"outline-width",
224+
"outline-style",
225+
"outline-color",
226+
"outline-offset",
227+
"box-shadow",
228+
"opacity",
229+
"-ms-interpolation-mode",
230+
"page-break-after",
231+
"page-break-before",
232+
"page-break-inside",
233+
"transition",
234+
"transition-delay",
235+
"transition-timing-function",
236+
"transition-duration",
237+
"transition-property",
238+
"transform",
239+
"transform-origin",
240+
"perspective",
241+
"appearance",
242+
"animation",
243+
"animation-name",
244+
"animation-duration",
245+
"animation-play-state",
246+
"animation-timing-function",
247+
"animation-delay",
248+
"animation-iteration-count",
249+
"animation-direction",
250+
"animation-fill-mode",
251+
"fill",
252+
"stroke"
253+
],
254+
"property-no-vendor-prefix": true,
255+
"rule-empty-line-before": null,
256+
"selector-attribute-quotes": "always",
257+
"selector-list-comma-newline-after": "always",
258+
"selector-list-comma-newline-before": "never-multi-line",
259+
"selector-list-comma-space-after": "always-single-line",
260+
"selector-list-comma-space-before": "never-single-line",
261+
"selector-max-attribute": 2,
262+
"selector-max-class": 4,
263+
"selector-max-combinators": 4,
264+
"selector-max-compound-selectors": 4,
265+
"selector-max-empty-lines": 1,
266+
"selector-max-id": 0,
267+
"selector-max-specificity": null,
268+
"selector-max-type": 2,
269+
"selector-max-universal": 1,
270+
"selector-no-qualifying-type": true,
271+
"selector-no-vendor-prefix": true,
272+
"shorthand-property-no-redundant-values": true,
273+
"string-quotes": "single",
274+
"value-keyword-case": "lower",
275+
"value-list-comma-newline-after": null,
276+
"value-list-comma-newline-before": null,
277+
"value-list-comma-space-after": null,
278+
"value-no-vendor-prefix": true
279+
}
280+
}

0 commit comments

Comments
 (0)