-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
74 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
/** | ||
* Implement Gatsby's Node APIs in this file. | ||
* | ||
* See: https://www.gatsbyjs.org/docs/node-apis/ | ||
*/ | ||
const path = require('path'); | ||
|
||
// You can delete this file if you're not using it | ||
exports.onCreateWebpackConfig = ({ actions }) => { | ||
actions.setWebpackConfig({ | ||
resolve: { | ||
alias: { | ||
'~': path.resolve(__dirname, 'src'), | ||
}, | ||
}, | ||
}); | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
import tw, { styled } from 'twin.macro'; | ||
|
||
const HeadlineContainer = styled.div` | ||
${tw`flex justify-between`} | ||
`; | ||
export default function Headline() { | ||
return ( | ||
<HeadlineContainer> | ||
<span>Here</span> | ||
<div>Another one</div> | ||
</HeadlineContainer> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import 'twin.macro'; | ||
import styledComponent from '@emotion/styled'; | ||
import { css as cssProperty } from '@emotion/core'; | ||
|
||
declare module 'twin.macro' { | ||
export const css: typeof cssProperty; | ||
export const styled: typeof styledComponent; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"module": "commonjs", | ||
"jsx": "preserve", | ||
"declaration": true, | ||
"strict": true, | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"noEmit": true, | ||
"isolatedModules": true | ||
}, | ||
"exclude": ["node_modules", "public", ".cache"] | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"module": "commonjs", | ||
"jsx": "preserve", | ||
"declaration": true, | ||
"strict": true, | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"noEmit": true, | ||
"skipLibCheck": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"isolatedModules": false, | ||
"plugins": [{ "name": "typescript-plugin-tw-template" }], | ||
"baseUrl": ".", | ||
"paths": { | ||
"~/*": ["./src/*"] | ||
} | ||
}, | ||
"exclude": ["node_modules", "public", ".cache"] | ||
} |