Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Commit

Permalink
perf(function): update performance of function and code structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamontat Chantrachirathumrong committed Dec 20, 2018
1 parent edf918d commit 4d5249a
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 37 deletions.
Empty file removed .functions/.gitkeep
Empty file.
20 changes: 0 additions & 20 deletions .functions/collection.js

This file was deleted.

1 change: 0 additions & 1 deletion .functions/personal.doc.js

This file was deleted.

8 changes: 0 additions & 8 deletions .functions/personal.js

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,7 @@ typings/

# End of https://www.gitignore.io/api/node,macos,visualstudiocode,linux

docs
.functions

docs
!src/**/*
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"netlify-lambda": "1.1.1"
},
"scripts": {
"start": "netlify-lambda serve apis",
"build": "netlify-lambda build apis",
"docs": "apidoc -i apis -o docs --verbose",
"start": "netlify-lambda serve src/apis",
"build": "netlify-lambda build src/apis",
"docs": "apidoc -i src/docs -o docs --verbose",
"deploy": "yarn docs && yarn build"
},
"apidoc": {
Expand Down
4 changes: 2 additions & 2 deletions apis/collection.js → src/apis/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
const Octokit = require("@octokit/rest");

// const { PersonalInformationLink, PersonalSocialLink } = require("../lib/link");
const { AnalysicEvent, defaultUser, defaultUsers } = require("../lib/analysic");
const { QueryContent, TransformResult, MultipleQueryResult } = require("../lib/content");
const { AnalysicEvent, defaultUser, defaultUsers } = require("../../lib/analysic");
const { QueryContent, TransformResult, MultipleQueryResult } = require("../../lib/content");

const query = async (octokit, key, user) => {
const raw = await QueryContent(octokit, user, key);
Expand Down
4 changes: 2 additions & 2 deletions apis/personal.js → src/apis/personal.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const axios = require("axios");

const { PersonalInformationLink, PersonalSocialLink } = require("../lib/link");
const { AnalysicEvent, defaultUser, defaultUsers } = require("../lib/analysic");
const { PersonalInformationLink, PersonalSocialLink } = require("../../lib/link");
const { AnalysicEvent, defaultUser, defaultUsers } = require("../../lib/analysic");

exports.handler = function(event, _, callback) {
const result = AnalysicEvent(event, defaultUser, defaultUsers, "information", ["information", "social"]);
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 4d5249a

Please sign in to comment.