Skip to content

Commit

Permalink
Merge pull request #56 from mcauto/develop
Browse files Browse the repository at this point in the history
v21.0.0
  • Loading branch information
mcauto authored Nov 22, 2021
2 parents ad7107d + a23367e commit d2c7480
Show file tree
Hide file tree
Showing 142 changed files with 48,573 additions and 19,611 deletions.
23 changes: 23 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.DS_Store
node_modules
/dist
.nuxt

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
yarn-error.log
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
9 changes: 9 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
PROJECT_ID=
PRIVATE_KEY_ID=
PRIVATE_KEY=
CLIENT_EMAIL=
CLIENT_ID=
AUTH_URI=
TOKEN_URI=
AUTH_PROVIDER_X509_CERT_URL=
CLIENT_X509_CERT_URL=
23 changes: 23 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
root: true,
env: {
node: true,
browser: true,
},
extends: [
"plugin:vue/recommended",
"eslint:recommended",
"plugin:prettier/recommended",
],
rules: {
"vue/component-name-in-template-casing": ["error", "PascalCase"],
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
},
globals: {
$nuxt: true,
},
parserOptions: {
parser: "babel-eslint",
},
};
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @mcauto @KimHunJin
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Summary

# Issue

# Changelog

---

<details open> <summary>스크린샷</summary>

</details>
20 changes: 20 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Changelog

on: [push]

jobs:
changelog:
name: Make changelog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: 15
- name: Show current changelog
run: |
npm ci
make current_changelog
54 changes: 54 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
name: Release

on:
pull_request:
types: [closed]
branches:
- main

jobs:
release:
if: github.event.pull_request.merged == true
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: 16
- name: Install dependencies
run: |
npm ci
- name: Commit files
env:
HUSKY_SKIP_HOOKS: 1
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
VERSION=$(npx next-standard-version)
DESCRIPTION=$(npx standard-version --dry-run --silent | grep -v yarn | grep -v Done | grep -v "\-\-\-" | grep -v standard-version)
echo "DESCRIPTION<<EOF" >> $GITHUB_ENV
echo "$DESCRIPTION" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
echo "VERSION=$VERSION" >> $GITHUB_ENV
npx standard-version
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tags: true
- name: Create Github Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: v${{ env.VERSION }}
release_name: Release v${{ env.VERSION }}
body: |
${{ env.DESCRIPTION }}
draft: false
prerelease: false
11 changes: 8 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DS_Store
node_modules
/dist

.nuxt

# local env files
.env.local
Expand All @@ -12,7 +12,7 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

yarn-error.log
# Editor directories and files
.idea
.vscode
Expand All @@ -21,4 +21,9 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?
node_modules
*.bak*

config.json
content
.env
*.pyc
13 changes: 13 additions & 0 deletions .script/content.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Requirements...
require("dotenv").config();
const { PythonShell } = require("python-shell");

console.log("run content_generator");
PythonShell.run(
"./content_generator",
{ pythonOptions: ["-u", "-m"], env: process.env },
function (err) {
if (err) throw err;
console.log("content_generator complete");
}
);
14 changes: 14 additions & 0 deletions .script/generate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const execSync = require("child_process").execSync;
const path = require("path");

/**
* Creates a path to an executable in the node_modules/.bin directory. Each
* path segment is joined with the appropriate platform-specific separator as
* a delimiter.
* @param {String} cmd The name of the executable.
* @returns {String} The path to the executable.
*/
function getBinFile(cmd) {
return path.join("node_modules", ".bin", cmd);
}
execSync(`${getBinFile("nuxt")} generate`, { stdio: [0, 1, 2] });
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:16.9.0

RUN mkdir -p /var/www/app
WORKDIR /var/www/app

COPY . .

RUN npm install

ENV HOST 0.0.0.0

ENTRYPOINT [ "sh", "entrypoint.sh" ]
13 changes: 13 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
gspread = "*"
tqdm = "*"

[dev-packages]

[requires]
python_version = "3.6"
Loading

0 comments on commit d2c7480

Please sign in to comment.