1
Fork 0

Just make it a static site, no lambda

This commit is contained in:
Jake Howard 2019-02-04 13:29:59 +00:00
parent d004a6fdbd
commit 6469d5d69e
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 3 additions and 113 deletions

View file

@ -1,12 +0,0 @@
{
"presets": [
"@babel/preset-typescript",
"@babel/preset-env",
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-object-assign",
"@babel/plugin-proposal-object-rest-spread",
"static-fs",
]
}

88
.gitignore vendored
View file

@ -1,6 +1,6 @@
# Created by https://www.gitignore.io/api/node,hugo # Created by https://www.gitignore.io/api/hugo
# Edit at https://www.gitignore.io/?templates=node,hugo # Edit at https://www.gitignore.io/?templates=hugo
### Hugo ### ### Hugo ###
### Hugo ### ### Hugo ###
@ -16,86 +16,4 @@ hugo.exe
hugo.darwin hugo.darwin
hugo.linux hugo.linux
### Node ### # End of https://www.gitignore.io/api/hugo
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# End of https://www.gitignore.io/api/node,hugo

View file

@ -1,8 +0,0 @@
const fs = require('fs');
export function handler(event, context, callback) {
callback(null, {
statusCode: 200,
body: JSON.stringify(fs.readdirSync(__dirname))
});
}

View file

@ -1,3 +1,2 @@
[build] [build]
publish = "public" publish = "public"
functions = "public/lambda"

View file

@ -3,7 +3,6 @@
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"build": "netlify-lambda build lambda"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -15,13 +14,7 @@
}, },
"homepage": "https://github.com/RealOrangeOne/givemoneyto.me#readme", "homepage": "https://github.com/RealOrangeOne/givemoneyto.me#readme",
"dependencies": { "dependencies": {
"@babel/preset-typescript": "^7.1.0",
"babel-plugin-static-fs": "^1.2.0",
"netlify-lambda": "^1.3.0",
"typescript": "^3.2.4"
}, },
"devDependencies": { "devDependencies": {
"@types/aws-lambda": "^8.10.18",
"@types/node": "^10.12.19"
} }
} }