Initial commit
This commit is contained in:
commit
a813c1057a
41
.github/workflows/code-style.yml
vendored
Normal file
41
.github/workflows/code-style.yml
vendored
Normal 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
14
.gitignore
vendored
Normal 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
3
.prettierignore
Normal file
@ -0,0 +1,3 @@
|
||||
node_modules/
|
||||
.vscode/
|
||||
.github/
|
6
.prettierrc.json
Normal file
6
.prettierrc.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"trailingComma": "es5",
|
||||
"tabWidth": 2,
|
||||
"semi": true,
|
||||
"singleQuote": false
|
||||
}
|
9
package.json
Normal file
9
package.json
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user