Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
balesniy authored Jun 5, 2024
0 parents commit d852041
Show file tree
Hide file tree
Showing 34 changed files with 15,511 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*.svg]
insert_final_newline = false
16 changes: 16 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"root": true,
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"env": {
"es2022": true,
"browser": true
},
"globals": {
"noUiSlider": "readonly",
"Pristine": "readonly"
},
"extends": "htmlacademy/vanilla"
}
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
* text eol=lf

*.ico binary
*.png binary
*.jpg binary
*.jpeg binary
*.webp binary
*.avif binary
*.woff binary
*.woff2 binary
40 changes: 40 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Project check

on:
push:
branches:
- master
pull_request:
branches:
- '*'

jobs:
check:
name: Check

runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'

- name: Restore cache
uses: actions/cache@v3
with:
path: ~/.npm
key: cache-npm-${{ hashFiles('./package-lock.json') }}
restore-keys: cache-npm-

- name: Install dependencies
run: npm ci

- name: Run checks
run: npm run lint
env:
FORCE_COLOR: true
47 changes: 47 additions & 0 deletions .github/workflows/gh-pages-on-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Deploy on pull request

on:
pull_request_target:
branches:
- '*'

jobs:
deploy-on-pull-request:
name: Deploy on Pull Request

permissions:
contents: write

runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v4
with:
ref: 'refs/pull/${{ github.event.pull_request.number }}/merge'

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'

- name: Restore cache
uses: actions/cache@v3
with:
path: ~/.npm
key: cache-npm-${{ hashFiles('./package-lock.json') }}
restore-keys: cache-npm-

- name: Install dependencies
run: npm ci

- name: Build project
run: npm run build

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./build
branch: gh-pages
target-folder: ${{ github.event.pull_request.number }}
44 changes: 44 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy to GitHub-Pages

on:
push:
branches:
- master

jobs:
deploy:
name: Deploy

permissions:
contents: write

runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'

- name: Restore cache
uses: actions/cache@v3
with:
path: ~/.npm
key: cache-npm-${{ hashFiles('./package-lock.json') }}
restore-keys: cache-npm-

- name: Install dependencies
run: npm ci

- name: Build project
run: npm run build

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./build
branch: gh-pages
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules
build
.idea
.DS_Store
raw/**/*.jpg
raw/**/*.jpeg
raw/**/*.png
raw/**/*.svg
!raw/**/README.md
3 changes: 3 additions & 0 deletions .linthtmlrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "linthtml-config-htmlacademy"
}
3 changes: 3 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-htmlacademy"
}
Loading

0 comments on commit d852041

Please sign in to comment.