Update next to 9

pull/298/head
Amio 2019-07-12 12:26:10 +08:00
rodzic adcee2203e
commit 26c3130e70
8 zmienionych plików z 1421 dodań i 2042 usunięć

2
next-env.d.ts vendored 100644
Wyświetl plik

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

Wyświetl plik

@ -1,5 +1,5 @@
module.exports = {
target: 'serverless',
target: 'server',
exportPathMap: async function (defaultPathMap) {
return {
'/': { page: '/index' },

Wyświetl plik

@ -7,7 +7,7 @@
],
"execMap": {
"js": "node --harmony",
"ts": "ts-node"
"ts": "ts-node --transpile-only --compiler-options=\"{\\\"module\\\": \\\"commonjs\\\"}\""
},
"watch": [
"index.ts",

Wyświetl plik

@ -6,9 +6,11 @@
"flat.badgen.net"
],
"files": [
"package.json",
"package-lock.json",
"next.config.js",
"server.tsconfig.json",
"tsconfig.json",
"next.config.js",
"index.ts",
"tools",
"libs",

3408
package-lock.json wygenerowano

Plik diff jest za duży Load Diff

Wyświetl plik

@ -6,11 +6,13 @@
"private": true,
"scripts": {
"lint": "standard && standard *.ts",
"build": "npm run tools && next build && next export -o dist && tsc",
"build-api": "tsc -p server.tsconfig.json",
"build-web": "next build && next export -o dist",
"build": "npm run tools && npm run build-web && npm run build-api",
"dev": "npm run build && npm run dev:api",
"dev:api": "nodemon --config nodemon.json index.ts",
"dev:web": "next",
"tools": "ts-node tools/gen-examples.ts",
"tools": "ts-node -TP server.tsconfig.json tools/gen-examples.ts",
"now-build": "npm run build",
"pretest": "npm run lint",
"test": "tap test/*.js --reporter spec -j12",
@ -43,11 +45,12 @@
},
"devDependencies": {
"@types/got": "^9.6.0",
"@types/react": "^16.8.23",
"@typescript-eslint/eslint-plugin": "^1.11.0",
"@typescript-eslint/parser": "^1.11.0",
"@zeit/next-typescript": "^1.1.1",
"fs-extra": "^8.1.0",
"next": "^7.0.3",
"next": "^9.0.1",
"nodemon": "^1.19.1",
"react": "^16.8.6",
"react-dom": "^16.8.6",

Wyświetl plik

@ -0,0 +1,22 @@
{
"compilerOptions": {
"strict": true,
"noImplicitAny": false,
"allowJs": true,
"skipLibCheck": true,
"jsx": "preserve",
"target": "esnext",
"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true,
"sourceMap": true,
"outDir": "dist",
"baseUrl": ".",
"lib": ["dom", "esnext"]
},
"include": [
"index.ts",
"endpoints",
"types"
]
}

Wyświetl plik

@ -6,17 +6,27 @@
"skipLibCheck": true,
"jsx": "preserve",
"target": "esnext",
"module": "commonjs",
"module": "esnext",
"moduleResolution": "node",
"esModuleInterop": true,
"sourceMap": true,
"outDir": "dist",
"baseUrl": ".",
"lib": ["dom", "esnext"]
"lib": [
"dom",
"esnext"
],
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": false
},
"include": [
"index.ts",
"endpoints",
"types"
],
"exclude": [
"node_modules"
]
}