Skip to content

Commit 6f6af80

Browse files
authored
Merge pull request #14 from Spring3/refactor/use-emotion
Refactor/use emotion
2 parents 2393f4c + 66bad91 commit 6f6af80

Some content is hidden

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

44 files changed

+29046
-1595
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ node_modules
22
static
33
public
44
.cache
5+
gatsby-config.js
6+
gatsby-node.js

.husky/_/husky.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
if [ -z "$husky_skip_init" ]; then
3+
debug () {
4+
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
5+
}
6+
7+
readonly hook_name="$(basename "$0")"
8+
debug "starting $hook_name..."
9+
10+
if [ "$HUSKY" = "0" ]; then
11+
debug "HUSKY env variable is set to 0, skipping hook"
12+
exit 0
13+
fi
14+
15+
if [ -f ~/.huskyrc ]; then
16+
debug "sourcing ~/.huskyrc"
17+
. ~/.huskyrc
18+
fi
19+
20+
export readonly husky_skip_init=1
21+
sh -e "$0" "$@"
22+
exitCode="$?"
23+
24+
if [ $exitCode != 0 ]; then
25+
echo "husky - $hook_name hook exited with code $exitCode (error)"
26+
exit $exitCode
27+
fi
28+
29+
exit 0
30+
fi

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Production:
2222
- [Gatsby](https://github.com/gatsbyjs/gatsby)
2323
- [React](https://github.com/facebook/react)
2424
- [React-spring](https://github.com/pmndrs/react-spring) for animations
25-
- [Styled Components](https://www.styled-components.com/)
25+
- [Emotion](https://emotion.sh/)
2626

2727
### Data
2828

gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = {
1010
description: "Danv's personal website",
1111
},
1212
plugins: [
13+
'gatsby-plugin-emotion',
1314
'gatsby-plugin-react-helmet',
1415
{
1516
resolve: 'gatsby-plugin-manifest',
@@ -79,7 +80,6 @@ module.exports = {
7980
'gatsby-plugin-sharp',
8081
'gatsby-plugin-catch-links',
8182
'gatsby-plugin-offline',
82-
'gatsby-plugin-styled-components',
8383
'gatsby-plugin-gatsby-cloud',
8484
],
8585
};

0 commit comments

Comments
 (0)