From 6469d5d69e739aef6b55d66fc2a3b25c2540b86f Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 4 Feb 2019 13:29:59 +0000 Subject: [PATCH] Just make it a static site, no lambda --- .babelrc | 12 ------- .gitignore | 88 ++----------------------------------------------- lambda/index.ts | 8 ----- netlify.toml | 1 - package.json | 7 ---- 5 files changed, 3 insertions(+), 113 deletions(-) delete mode 100644 .babelrc delete mode 100644 lambda/index.ts diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 8468c99..0000000 --- a/.babelrc +++ /dev/null @@ -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", - ] -} diff --git a/.gitignore b/.gitignore index 72e9ae4..986edfa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ -# Created by https://www.gitignore.io/api/node,hugo -# Edit at https://www.gitignore.io/?templates=node,hugo +# Created by https://www.gitignore.io/api/hugo +# Edit at https://www.gitignore.io/?templates=hugo ### Hugo ### ### Hugo ### @@ -16,86 +16,4 @@ hugo.exe hugo.darwin hugo.linux -### Node ### -# 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 +# End of https://www.gitignore.io/api/hugo diff --git a/lambda/index.ts b/lambda/index.ts deleted file mode 100644 index a936568..0000000 --- a/lambda/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -const fs = require('fs'); - -export function handler(event, context, callback) { - callback(null, { - statusCode: 200, - body: JSON.stringify(fs.readdirSync(__dirname)) - }); -} diff --git a/netlify.toml b/netlify.toml index 67ab046..c7bd82b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,2 @@ [build] publish = "public" - functions = "public/lambda" diff --git a/package.json b/package.json index 1213058..e0011f7 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,6 @@ "version": "1.0.0", "main": "index.js", "scripts": { - "build": "netlify-lambda build lambda" }, "repository": { "type": "git", @@ -15,13 +14,7 @@ }, "homepage": "https://github.com/RealOrangeOne/givemoneyto.me#readme", "dependencies": { - "@babel/preset-typescript": "^7.1.0", - "babel-plugin-static-fs": "^1.2.0", - "netlify-lambda": "^1.3.0", - "typescript": "^3.2.4" }, "devDependencies": { - "@types/aws-lambda": "^8.10.18", - "@types/node": "^10.12.19" } }