Skip to content

Commit

Permalink
💩🔧 Until next.js suports ts-loaders natively, we comile typescript wi…
Browse files Browse the repository at this point in the history
…th concurrently.

vercel/next.js#2391
  • Loading branch information
D1no committed Jul 29, 2017
1 parent 25d71aa commit 6bb0037
Show file tree
Hide file tree
Showing 4 changed files with 3,621 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Gitmoji specific .vscode settings.
// Hiding generated .js from .ts(x) files until next.js has a propper typescript
// load workflow.
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/*.js": {
"when": "$(basename).ts"
},
"**/**.js": {
"when": "$(basename).tsx"
}
}
}
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "gitmoji.com",
"version": "1.0.1",
"description": "Gitmoji Triangle — More than a Github Emoji Cheat Sheet!",
"repository": "shoplinksys/gitmoji",
"bugs": "https://github.com/shoplinksys/gitmoji/issues",
"homepage": "http://gitmoji.com",
"scripts": {
"dev": "concurrently \"tsc --watch\" next",
"build": "next build && next export -o docs && echo 'gitmoji.com' > ./docs/CNAME",
"start": "next start"
},
"dependencies": {
"next": "beta",
"react": "^15.6.1",
"react-dom": "^15.6.1"
},
"devDependencies": {
"@types/node": "^8.0.17",
"@types/react": "^15.6.0",
"concurrently": "^3.5.0",
"typescript": "^2.4.2"
}
}
13 changes: 13 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"module": "es2015",
"target": "es2017",
"jsx": "react-native",
"moduleResolution": "node",
"removeComments": false,
"lib": [
"dom",
"es2017"
]
}
}
Loading

0 comments on commit 6bb0037

Please sign in to comment.