From a813c1057a6fd2e6cc5aacf7a9ea344875b1f40f Mon Sep 17 00:00:00 2001 From: Dm1tr1y147 Date: Fri, 11 Dec 2020 17:41:26 +0500 Subject: [PATCH] Initial commit --- .github/workflows/code-style.yml | 41 ++++++++++++++++++++++++++++++++ .gitignore | 14 +++++++++++ .prettierignore | 3 +++ .prettierrc.json | 6 +++++ README.md | 1 + package.json | 9 +++++++ 6 files changed, 74 insertions(+) create mode 100644 .github/workflows/code-style.yml create mode 100644 .gitignore create mode 100644 .prettierignore create mode 100644 .prettierrc.json create mode 100644 README.md create mode 100644 package.json diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml new file mode 100644 index 0000000..a8e69b5 --- /dev/null +++ b/.github/workflows/code-style.yml @@ -0,0 +1,41 @@ +name: Code style + +on: [push] + +jobs: + prettier: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn config get cacheFolder)" + + - uses: actions/cache@v2 + id: yarn-cache + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + + - name: Install packages + uses: borales/actions-yarn@v2.0.0 + with: + cmd: --frozen-lockfile + + - name: Run prettier + uses: borales/actions-yarn@v2.0.0 + with: + cmd: format + + - name: Commit actions + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Apply Prettier styles + branch: ${{ github.head_ref }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..53be504 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +/node_modules + +/build + +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +.env.local +.env.development.local +.env.test.local +.env.production.local + +.vscode/ \ No newline at end of file diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..51bff3a --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +node_modules/ +.vscode/ +.github/ \ No newline at end of file diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..f0eb61e --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,6 @@ +{ + "trailingComma": "es5", + "tabWidth": 2, + "semi": true, + "singleQuote": false +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..cf31c63 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Application for sheduling classes in UPML diff --git a/package.json b/package.json new file mode 100644 index 0000000..9aa98ac --- /dev/null +++ b/package.json @@ -0,0 +1,9 @@ +{ + "name": "timetable-generator", + "version": "1.0.0", + "description": "Application for sheduling classes in UPML", + "main": "index.js", + "author": "dm1sh ", + "license": "MIT", + "private": true +}