Initial commit

This commit is contained in:
Dmitriy Shishkov 2020-12-11 17:41:26 +05:00
commit a813c1057a
No known key found for this signature in database
GPG Key ID: D76D70029F55183E
6 changed files with 74 additions and 0 deletions

41
.github/workflows/code-style.yml vendored Normal file
View File

@ -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 }}

14
.gitignore vendored Normal file
View File

@ -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/

3
.prettierignore Normal file
View File

@ -0,0 +1,3 @@
node_modules/
.vscode/
.github/

6
.prettierrc.json Normal file
View File

@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": false
}

1
README.md Normal file
View File

@ -0,0 +1 @@
# Application for sheduling classes in UPML

9
package.json Normal file
View File

@ -0,0 +1,9 @@
{
"name": "timetable-generator",
"version": "1.0.0",
"description": "Application for sheduling classes in UPML",
"main": "index.js",
"author": "dm1sh <me@dmitriy.icu>",
"license": "MIT",
"private": true
}