Skip to content

Commit

Permalink
add next.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gimdongwoo committed Aug 8, 2018
1 parent ce0dfe3 commit fc41909
Show file tree
Hide file tree
Showing 11 changed files with 6,581 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [
"next/babel",
"@zeit/next-typescript/babel"
]
}
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
build/
lib/
bin/
dist/
node_modules/
*.xcodeproj
*.swp
*.pyc
*.VC.db
*.VC.VC.opendb
.vs/
*.vcxproj
*.vcxproj.user
*.vcxproj.filters
*.sln
*.code-workspace
debug.log
*debug.log
Bundled*.js
.next/
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist/*
build/*
node_modules/*
public/*
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"typescript.tsdk": "./node_modules/typescript/lib",
"editor.formatOnSave": true,
"tslint.autoFixOnSave": true,
"eslint.autoFixOnSave": true
}
11 changes: 11 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const withTypescript = require("@zeit/next-typescript")
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');

module.exports = withTypescript({
webpack(config, options) {
// Do not run type checking twice:
if (options.isServer) config.plugins.push(new ForkTsCheckerWebpackPlugin())

return config
}
})
6,402 changes: 6,402 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "gitcodeshare.com",
"version": "0.1.0",
"description": "https://contributhon.kr/project#gitshare",
"main": "index.js",
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jsdevkr/gitCodeShare.com.git"
},
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/jsdevkr/gitCodeShare.com/issues"
},
"homepage": "https://github.com/jsdevkr/gitCodeShare.com#readme",
"dependencies": {
"@types/node": "^10.5.7",
"@types/react": "^16.4.8",
"@types/react-dom": "^16.0.7",
"@zeit/next-typescript": "^1.1.0",
"fork-ts-checker-webpack-plugin": "^0.4.4",
"mobx": "^5.0.3",
"mobx-react": "^5.2.3",
"mobx-state-tree": "^3.0.2",
"next": "^6.1.1",
"prettier": "^1.14.0",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"styled-components": "^3.4.2",
"styled-normalize": "^8.0.0",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.14.0",
"typescript": "^3.0.1",
"typescript-styled-plugin": "^0.10.0"
}
}
9 changes: 9 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as React from 'react';

class App extends React.Component<{}> {
render() {
return <div>Welcome to next.js!</div>;
}
}

export default App;
24 changes: 24 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"compileOnSave": false,
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"jsx": "react",
"allowJs": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"removeComments": false,
"preserveConstEnums": true,
"sourceMap": true,
"skipLibCheck": true,
"baseUrl": ".",
"lib": [
"dom", "es2016", "es2017", "es2018", "esnext"
],
"plugins": [{
"name": "typescript-styled-plugin"
}]
}
}
54 changes: 54 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"defaultSeverity": "warn",
"extends": ["tslint-react", "tslint-config-prettier"],
"rules": {
"ban": false,
"class-name": true,
"comment-format": [true, "check-space"],
"curly": true,
"eofline": false,
"forin": true,
"interface-name": [true, "always-prefix"],
"jsdoc-format": true,
"jsx-no-lambda": false,
"jsx-no-multiline-js": false,
"label-position": true,
"max-line-length": false,
"member-ordering": [
true,
"public-before-private",
"static-before-instance",
"variables-before-functions"
],
"no-any": false,
"no-arg": true,
"no-bitwise": true,
"no-console": [true, "error", "debug", "info", "time", "timeEnd", "trace"],
"no-construct": true,
"no-debugger": false,
"no-duplicate-variable": true,
"no-empty": false,
"no-eval": true,
"no-shadowed-variable": true,
"no-string-literal": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": false,
"no-unused-expression": false,
"no-unused-variable": false,
"no-use-before-declare": true,
"radix": true,
"semicolon": false,
"switch-default": true,
"trailing-comma": [false],
"triple-equals": [true, "allow-null-check"],
"typedef": [true, "parameter", "property-declaration"],
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-pascal-case"
],
"jsx-boolean-value": false
}
}

0 comments on commit fc41909

Please sign in to comment.