kopia lustrzana https://github.com/badgen/badgen.net
Update next to 9
rodzic
adcee2203e
commit
26c3130e70
|
@ -0,0 +1,2 @@
|
|||
/// <reference types="next" />
|
||||
/// <reference types="next/types/global" />
|
|
@ -1,5 +1,5 @@
|
|||
module.exports = {
|
||||
target: 'serverless',
|
||||
target: 'server',
|
||||
exportPathMap: async function (defaultPathMap) {
|
||||
return {
|
||||
'/': { page: '/index' },
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
],
|
||||
"execMap": {
|
||||
"js": "node --harmony",
|
||||
"ts": "ts-node"
|
||||
"ts": "ts-node --transpile-only --compiler-options=\"{\\\"module\\\": \\\"commonjs\\\"}\""
|
||||
},
|
||||
"watch": [
|
||||
"index.ts",
|
||||
|
|
4
now.json
4
now.json
|
@ -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",
|
||||
|
|
Plik diff jest za duży
Load Diff
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
]
|
||||
}
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue