-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
3,738 additions
and
971 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules | ||
|
||
.env | ||
|
||
docs/_book/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
version: 2.1 | ||
|
||
commands: | ||
install_and_cache_yarn_linux: | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
name: restore cache ➡ root | ||
keys: | ||
- dependencies-linux-root-{{ checksum "yarn.lock" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- dependencies-linux-root- | ||
- run: | ||
name: yarn ➡ install | ||
command: yarn | ||
- save_cache: | ||
name: save cache | ||
paths: | ||
- ~/repo/node_modules | ||
key: dependencies-linux-root-{{ checksum "yarn.lock" }} | ||
run_all_tests: | ||
steps: | ||
- run: | ||
name: yarn test | ||
command: yarn test | ||
install_and_test: | ||
steps: | ||
- install_and_cache_yarn_linux | ||
- run_all_tests | ||
|
||
# based on https://github.com/nodejs/Release schedule | ||
jobs: | ||
node_10: | ||
docker: | ||
- image: circleci/node:10 | ||
steps: | ||
- install_and_test | ||
node_12: | ||
docker: | ||
- image: circleci/node:12 | ||
steps: | ||
- install_and_test | ||
node_13: | ||
docker: | ||
- image: circleci/node:13 | ||
steps: | ||
- install_and_test | ||
node_14: | ||
docker: | ||
- image: circleci/node:14 | ||
steps: | ||
- install_and_test | ||
node_15: | ||
docker: | ||
- image: circleci/node:15 | ||
steps: | ||
- install_and_test | ||
workflows: | ||
main: | ||
jobs: | ||
- node_10 | ||
- node_12 | ||
- node_13 | ||
- node_14 | ||
- node_15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
node_modules/ | ||
docs/ | ||
test/ | ||
schema.png | ||
CHANGES.md | ||
LICENSE | ||
README.md | ||
Procfile | ||
.eslintrc | ||
.git/ | ||
.gitignore | ||
.npmignore | ||
.travis.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
indent_style = space | ||
|
||
# 4 space indentation | ||
[*.{js,ts,tsx,jsx,json}] | ||
indent_size = 2 | ||
|
||
# Tab indentation (no size specified) | ||
[*.yml] | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"rules": { | ||
"indent": [ 2, 4 ], | ||
"quotes": [ 2, "single" ], | ||
"linebreak-style": [ 2, "unix" ], | ||
"semi": [ 2, "always" ], | ||
"no-unused-vars": [ 2, { | ||
"vars": "all", | ||
"args": "none" | ||
} ], | ||
"spaced-comment": [ 2, "always" ] | ||
}, | ||
"env": { | ||
"node": true, | ||
"mocha": true | ||
}, | ||
"extends": "eslint:recommended" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM mhart/alpine-node:5.8.0 | ||
|
||
# Switch to /app | ||
WORKDIR /app | ||
# Install deps | ||
COPY package.json ./ | ||
RUN npm install --production | ||
# Copy source | ||
COPY . ./ | ||
|
||
# Ports | ||
ENV PORT 80 | ||
EXPOSE 80 | ||
|
||
ENTRYPOINT ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.