config files

This commit is contained in:
cupcakearmy 2020-01-12 18:33:55 +01:00
parent 71d1a9c716
commit a85d11d1e2
7 changed files with 6146 additions and 0 deletions

3
.env.sample Normal file
View File

@ -0,0 +1,3 @@
RECAPTCHA_CLIENT=client_key
RECAPTCHA_SERVER=server_key
NEXTCLOUD_TOKEN=next_cloud_share_id

14
.gitignore vendored Normal file
View File

@ -0,0 +1,14 @@
# Editors
.vscode
.idea
# Node
node_modules
# Build
.next
.cache
dist
# Config
.env

2
next-env.d.ts vendored Normal file
View File

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

14
next.config.js Normal file
View File

@ -0,0 +1,14 @@
/* jshint esversion:8, asi:true */
const withStylus = require('@zeit/next-stylus')
const withCss = require('@zeit/next-css')
const config = require('dotenv').config().parsed || {}
const { RECAPTCHA_CLIENT, RECAPTCHA_SERVER } = config
module.exports = withCss(withStylus({
publicRuntimeConfig: {
RECAPTCHA_CLIENT,
},
serverRuntimeConfig: config,
}))

30
package.json Normal file
View File

@ -0,0 +1,30 @@
{
"scripts": {
"dev": "next -p 80",
"build": "next build",
"start": "next start -p 80"
},
"dependencies": {
"axios": "^0.19.1",
"dotenv": "^8.2.0",
"formhero": "^0.0.7",
"formidable": "^1.2.1",
"next": "^9.1.7",
"nodemailer": "^6.4.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"tachyons": "^4.11.1",
"three": "^0.112.1"
},
"devDependencies": {
"@zeit/next-css": "^1.0.1",
"@zeit/next-stylus": "^1.0.1",
"@types/formidable": "^1.0.31",
"@types/node": "^13.1.6",
"@types/nodemailer": "^6.4.0",
"@types/react": "^16.9.17",
"@types/react-dom": "^16.9.4",
"stylus": "^0.54.7",
"typescript": "^3.7.4"
}
}

29
tsconfig.json Normal file
View File

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

6054
yarn.lock Normal file

File diff suppressed because it is too large Load Diff