mirror of
https://github.com/cupcakearmy/fantus.git
synced 2024-10-31 20:44:15 +01:00
config files
This commit is contained in:
parent
71d1a9c716
commit
a85d11d1e2
3
.env.sample
Normal file
3
.env.sample
Normal file
@ -0,0 +1,3 @@
|
||||
RECAPTCHA_CLIENT=client_key
|
||||
RECAPTCHA_SERVER=server_key
|
||||
NEXTCLOUD_TOKEN=next_cloud_share_id
|
14
.gitignore
vendored
Normal file
14
.gitignore
vendored
Normal 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
2
next-env.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/// <reference types="next" />
|
||||
/// <reference types="next/types/global" />
|
14
next.config.js
Normal file
14
next.config.js
Normal 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
30
package.json
Normal 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
29
tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user