feat: added api-docs as submodule

This commit is contained in:
wonderlandpark 2021-03-06 23:06:20 +09:00
parent 423b087e0f
commit 2062740869
4 changed files with 11 additions and 2 deletions

6
.gitignore vendored
View File

@ -41,4 +41,8 @@ yarn-error.log*
# Prevent commiting lock file.
package-lock.json
secret.json
secret.json
# sub module
api-docs/

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "api-docs"]
path = api-docs
url = https://github.com/koreanbots/api-docs

1
api-docs Submodule

@ -0,0 +1 @@
Subproject commit 2ef14c2afc5d539a011a6c48401962c5ffec1073

View File

@ -4,7 +4,8 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"pre-build": "git submodule init && git submodule update",
"build": "npm run pre-build && next build",
"start": "next start | (sleep 1; wget http://localhost:3000/api/v2 -O /dev/null)",
"lint": "eslint --ext ts,tsx .",
"prettier": "prettier --write **/*",