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

Commit

Permalink
feat(function): improve build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamontat Chantrachirathumrong committed Dec 18, 2018
1 parent fb8fb95 commit 734918f
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 5 deletions.
20 changes: 20 additions & 0 deletions .functions/collection.js

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions .functions/language.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,4 @@ typings/
# Ignore all local history of files
.history

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

.functions
# End of https://www.gitignore.io/api/node,macos,visualstudiocode,linux
4 changes: 3 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[build]
functions = ".functions"
publish = "docs"
command = "yarn deploy"
[build.environment]
YARN_VERSION = "1.3.2"
YARN_VERSION = "1.12.3"
YARN_FLAGS = "--no-ignore-optional"
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
},
"scripts": {
"start": "netlify-lambda serve apis",
"docs": "yarn apidoc -i apis -o docs --verbose"
"build": "netlify-lambda build apis",
"docs": "apidoc -i apis -o docs --verbose",
"deploy": "yarn docs && yarn build"
}
}

0 comments on commit 734918f

Please sign in to comment.