Skip to content

Commit 62cde16

Browse files
committed
Add tailwind
1 parent a1bf298 commit 62cde16

Some content is hidden

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

46 files changed

+3333
-4173
lines changed

.editorconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ root = true
44

55
[*]
66
charset = utf-8
7-
indent_style = space
8-
indent_size = 4
97
end_of_line = lf
108
insert_final_newline = true
119
trim_trailing_whitespace = true

.eslintrc.js

Lines changed: 56 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,60 @@
11
module.exports = {
2-
'parser': 'babel-eslint',
3-
'parserOptions': {
4-
'ecmaVersion': 6,
5-
'ecmaFeatures': {
6-
'jsx': true,
7-
'experimentalObjectRestSpread': true
8-
}
2+
parser: "babel-eslint",
3+
parserOptions: {
4+
ecmaVersion: 6,
5+
ecmaFeatures: {
6+
jsx: true,
7+
experimentalObjectRestSpread: true,
98
},
10-
plugins: ['ghost', 'react'],
11-
extends: [
12-
'plugin:ghost/node',
13-
'plugin:ghost/ember',
14-
'plugin:react/recommended'
15-
],
16-
"settings": {
17-
"react": {
18-
"createClass": "createReactClass",
19-
"pragma": "React",
20-
"version": "16.0",
21-
"flowVersion": "0.53"
22-
},
23-
"propWrapperFunctions": ["forbidExtraProps"]
9+
},
10+
plugins: ["ghost", "react"],
11+
extends: [
12+
"plugin:ghost/node",
13+
"plugin:ghost/ember",
14+
"plugin:react/recommended",
15+
"prettier",
16+
],
17+
settings: {
18+
react: {
19+
createClass: "createReactClass",
20+
pragma: "React",
21+
version: "16.0",
22+
flowVersion: "0.53",
2423
},
25-
"rules": {
26-
"ghost/sort-imports-es6-autofix/sort-imports-es6": "off",
27-
"ghost/ember/use-ember-get-and-set": "off",
28-
"no-console": "off",
29-
"no-inner-declarations": "off",
30-
"valid-jsdoc": "off",
31-
"require-jsdoc": "off",
32-
"quotes": ["error", "backtick"],
33-
"consistent-return": ["error"],
34-
"arrow-body-style": [
35-
"error",
36-
"as-needed",
37-
{ "requireReturnForObjectLiteral": true }
38-
],
39-
"jsx-quotes": ["error", "prefer-double"],
40-
"semi": ["error", "never"],
41-
"object-curly-spacing": ["error", "always"],
42-
"comma-dangle": [
43-
"error",
44-
{
45-
"arrays": "always-multiline",
46-
"objects": "always-multiline",
47-
"imports": "always-multiline",
48-
"exports": "always-multiline",
49-
"functions": "ignore"
50-
}
51-
],
52-
"react/prop-types": [
53-
"error",
54-
{
55-
"ignore": ["children"]
56-
}
57-
]
58-
}
24+
propWrapperFunctions: ["forbidExtraProps"],
25+
},
26+
rules: {
27+
"ghost/sort-imports-es6-autofix/sort-imports-es6": "off",
28+
"ghost/ember/use-ember-get-and-set": "off",
29+
"no-console": "off",
30+
"no-inner-declarations": "off",
31+
"valid-jsdoc": "off",
32+
"require-jsdoc": "off",
33+
quotes: ["error", "backtick"],
34+
"consistent-return": ["error"],
35+
"arrow-body-style": [
36+
"error",
37+
"as-needed",
38+
{ requireReturnForObjectLiteral: true },
39+
],
40+
"jsx-quotes": ["error", "prefer-double"],
41+
semi: ["error", "never"],
42+
"object-curly-spacing": ["error", "always"],
43+
"comma-dangle": [
44+
"error",
45+
{
46+
arrays: "always-multiline",
47+
objects: "always-multiline",
48+
imports: "always-multiline",
49+
exports: "always-multiline",
50+
functions: "ignore",
51+
},
52+
],
53+
"react/prop-types": [
54+
"error",
55+
{
56+
ignore: ["children"],
57+
},
58+
],
59+
},
5960
};

.github/ISSUE_TEMPLATE/---bug-report.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: "\U0001F41B Bug report"
33
about: Report reproducible software issues so we can improve
4-
54
---
65

76
Welcome to the Gatsby Starter Ghost GitHub repo! 👋🎉
@@ -30,7 +29,7 @@ Any other info e.g. Why do you consider this to be a bug? What did you expect to
3029

3130
### Technical details:
3231

33-
* Ghost Version:
34-
* Gatsby Version:
35-
* Node Version:
36-
* OS:
32+
- Ghost Version:
33+
- Gatsby Version:
34+
- Node Version:
35+
- OS:

.github/ISSUE_TEMPLATE/--anything-else.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: "\U0001F4A1Anything else"
33
about: "For help, support, features & ideas - please use https://forum.ghost.org \U0001F46B "
4-
54
---
65

76
--------------^ Click "Preview" for a nicer view!

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore artifacts:
2+
build
3+
.cache

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ A starter template to build lightning fast websites with [Ghost](https://ghost.o
1010

1111
 
1212

13-
1413
# Installing
1514

1615
```bash
@@ -53,19 +52,21 @@ To use this starter without issues, your Ghost installation needs to be at least
5352
The default Ghost version that is used for this starter is `5.x`. If your Ghost installation is on a lower version, you will need to pass in a `version` property in your `.ghost.json` settings:
5453

5554
**Ghost >=2.10.0 <5.0.0**
55+
5656
```json
5757
{
58-
"apiUrl": "https://gatsby.ghost.io",
59-
"contentApiKey": "9cc5c67c358edfdd81455149d0",
60-
"version": "v4.0"
58+
"apiUrl": "https://gatsby.ghost.io",
59+
"contentApiKey": "9cc5c67c358edfdd81455149d0",
60+
"version": "v4.0"
6161
}
6262
```
6363

6464
**Ghost >=5.0.0**
65+
6566
```json
6667
{
67-
"apiUrl": "https://gatsby.ghost.io",
68-
"contentApiKey": "9cc5c67c358edfdd81455149d0"
68+
"apiUrl": "https://gatsby.ghost.io",
69+
"contentApiKey": "9cc5c67c358edfdd81455149d0"
6970
}
7071
```
7172

gatsby-browser.js

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/* eslint-disable */
2+
import "./src/styles/global.css";
3+
24
/**
35
* Trust All Scripts
46
*
@@ -9,24 +11,20 @@
911
* via ids/classnames etc.
1012
*
1113
*/
12-
var trustAllScripts = function () {
13-
var scriptNodes = document.querySelectorAll('.load-external-scripts script');
14-
15-
for (var i = 0; i < scriptNodes.length; i += 1) {
16-
var node = scriptNodes[i];
17-
var s = document.createElement('script');
18-
s.type = node.type || 'text/javascript';
14+
export const trustAllScripts = function () {
15+
let scriptNodes = document.querySelectorAll(".load-external-scripts script");
1916

20-
if (node.attributes.src) {
21-
s.src = node.attributes.src.value;
22-
} else {
23-
s.innerHTML = node.innerHTML;
24-
}
17+
for (let i = 0; i < scriptNodes.length; i += 1) {
18+
let node = scriptNodes[i];
19+
let s = document.createElement("script");
20+
s.type = node.type || "text/javascript";
2521

26-
document.getElementsByTagName('head')[0].appendChild(s);
22+
if (node.attributes.src) {
23+
s.src = node.attributes.src.value;
24+
} else {
25+
s.innerHTML = node.innerHTML;
2726
}
28-
};
2927

30-
exports.onRouteUpdate = function () {
31-
trustAllScripts();
28+
document.getElementsByTagName("head")[0].appendChild(s);
29+
}
3230
};

0 commit comments

Comments
 (0)