Initialize next

pull/152/head
Alex Kern 5 years ago
parent f5b8f27732
commit a21f20486b
No known key found for this signature in database
GPG Key ID: F3141D5EDF48F89F

@ -1,4 +1,5 @@
.DS_Store .DS_Store
.next
node_modules node_modules
dist dist
resources resources

1
.gitignore vendored

@ -1,3 +1,4 @@
.DS_Store .DS_Store
.next
node_modules node_modules
dist dist

2
next-env.d.ts vendored

@ -0,0 +1,2 @@
/// <reference types="next" />
/// <reference types="next/types/global" />

@ -7,10 +7,9 @@
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"homepage": "https://github.com/kern/filepizza", "homepage": "https://github.com/kern/filepizza",
"scripts": { "scripts": {
"start": "babel-node ./src/index.js", "dev": "next dev",
"start:prod": "node ./dist/index.js", "build": "next build",
"prepublishOnly": "npm run build", "start": "next start"
"build": "babel src --ignore __tests__,__mocks__ --out-dir dist && webpack -p ./src/client && rm -rf dist/static && cp -R src/static dist/static"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -19,20 +18,6 @@
"bugs": { "bugs": {
"url": "https://github.com/kern/filepizza/issues" "url": "https://github.com/kern/filepizza/issues"
}, },
"engines": {
"node": ">= 5.0.0",
"npm": ">= 3.3.0"
},
"babel": {
"presets": [
"es2015",
"stage-0"
],
"plugins": [
"add-module-exports",
"transform-react-jsx"
]
},
"dependencies": { "dependencies": {
"alt": "^0.14.4", "alt": "^0.14.4",
"classnames": "^1.2.0", "classnames": "^1.2.0",
@ -60,22 +45,8 @@
"xkcd-password": "^1.2.0" "xkcd-password": "^1.2.0"
}, },
"devDependencies": { "devDependencies": {
"babel-cli": "^6.16.0", "@types/node": "^14.11.1",
"babel-core": "^6.17.0", "@types/react": "^16.9.49",
"babel-loader": "^6.2.5", "typescript": "^4.0.3"
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-transform-react-jsx": "^6.7.4",
"babel-polyfill": "^6.16.0",
"babel-preset-es2015": "^6.14.0",
"babel-preset-stage-0": "^6.16.0",
"css-loader": "^0.28.4",
"json-loader": "^0.5.4",
"noop-loader": "^1.0.0",
"null-loader": "^0.1.1",
"style-loader": "^0.18.2",
"stylus-loader": "^3.0.1",
"typescript": "^4.0.3",
"webpack": "^1.12.14",
"webpack-dev-middleware": "^1.6.1"
} }
} }

@ -0,0 +1,5 @@
const IndexPage = () => {
return <div>Welcome to Next.js!</div>
}
export default IndexPage

@ -0,0 +1,29 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save