Skip to content

Commit 6325f41

Browse files
author
Keks
committed
🐣
0 parents  commit 6325f41

37 files changed

+15565
-0
lines changed

.editorconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Файл с настройками для редактора.
2+
#
3+
# Если вы разрабатываете в редакторе WebStorm, BBEdit, Coda или SourceLair
4+
# этот файл уже поддерживается и не нужно производить никаких дополнительных
5+
# действий.
6+
#
7+
# Если вы ведёте разработку в другом редакторе, зайдите
8+
# на https://editorconfig.org и в разделе «Download a Plugin»
9+
# скачайте дополнение для вашего редактора.
10+
11+
root = true
12+
13+
[*]
14+
charset = utf-8
15+
indent_style = space
16+
indent_size = 2
17+
end_of_line = lf
18+
trim_trailing_whitespace = true
19+
insert_final_newline = true
20+
21+
[*.svg]
22+
insert_final_newline = false

.eslintrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"root": true,
3+
"parserOptions": {
4+
"ecmaVersion": 2022,
5+
"sourceType": "module"
6+
},
7+
"env": {
8+
"es2022": true,
9+
"browser": true
10+
},
11+
"globals": {
12+
"noUiSlider": "readonly",
13+
"Pristine": "readonly"
14+
},
15+
"extends": "htmlacademy/vanilla"
16+
}

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
* text eol=lf
2+
3+
*.ico binary
4+
*.png binary
5+
*.jpg binary
6+
*.jpeg binary
7+
*.webp binary
8+
*.avif binary
9+
*.woff binary
10+
*.woff2 binary

.github/workflows/check.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Project check
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
check:
13+
name: Check
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version-file: 'package.json'
26+
27+
- name: Restore cache
28+
uses: actions/cache@v3
29+
with:
30+
path: ~/.npm
31+
key: cache-npm-${{ hashFiles('./package-lock.json') }}
32+
restore-keys: cache-npm-
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
37+
- name: Run checks
38+
run: npm run lint
39+
env:
40+
FORCE_COLOR: true
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Deploy on pull request
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- '*'
7+
8+
jobs:
9+
deploy-on-pull-request:
10+
name: Deploy on Pull Request
11+
12+
permissions:
13+
contents: write
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
ref: 'refs/pull/${{ github.event.pull_request.number }}/merge'
23+
24+
- name: Setup Node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version-file: 'package.json'
28+
29+
- name: Restore cache
30+
uses: actions/cache@v3
31+
with:
32+
path: ~/.npm
33+
key: cache-npm-${{ hashFiles('./package-lock.json') }}
34+
restore-keys: cache-npm-
35+
36+
- name: Install dependencies
37+
run: npm ci
38+
39+
- name: Build project
40+
run: npm run build
41+
42+
- name: Deploy
43+
uses: JamesIves/github-pages-deploy-action@v4
44+
with:
45+
folder: ./build
46+
branch: gh-pages
47+
target-folder: ${{ github.event.pull_request.number }}

.github/workflows/gh-pages.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy to GitHub-Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
name: Deploy
11+
12+
permissions:
13+
contents: write
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version-file: 'package.json'
26+
27+
- name: Restore cache
28+
uses: actions/cache@v3
29+
with:
30+
path: ~/.npm
31+
key: cache-npm-${{ hashFiles('./package-lock.json') }}
32+
restore-keys: cache-npm-
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
37+
- name: Build project
38+
run: npm run build
39+
40+
- name: Deploy
41+
uses: JamesIves/github-pages-deploy-action@v4
42+
with:
43+
folder: ./build
44+
branch: gh-pages

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
build
3+
.idea
4+
.DS_Store
5+
raw/**/*.jpg
6+
raw/**/*.jpeg
7+
raw/**/*.png
8+
raw/**/*.svg
9+
!raw/**/README.md

.linthtmlrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "linthtml-config-htmlacademy"
3+
}

.stylelintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "stylelint-config-htmlacademy"
3+
}

Readme.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Личный проект «Кэт энерджи»
2+
3+
* Студент: [Батор Батуев](https://up.htmlacademy.ru/adaptive-individual/2/user/2558253).
4+
* Наставник: `Неизвестно`.
5+
6+
---
7+
8+
**Обратите внимание, что папка с вашими исходными файлами для работы над проектом — `source/`.**
9+
10+
_Не удаляйте и не обращайте внимание на файлы и папки:_<br>
11+
_`.github`, `.editorconfig`, `.eslintrc`, `.gitattributes`, `.gitignore`, `.linthtmlrc`, `.stylelintrc`, `.gulpfile.js`, `svgo.config.js` `package.json`, `package-lock.json`._
12+
13+
---
14+
15+
### Памятка
16+
17+
#### 1. Зарегистрируйтесь на Гитхабе
18+
19+
Если у вас ещё нет аккаунта на [github.com](https://github.com/join), скорее зарегистрируйтесь.
20+
21+
#### 2. Создайте форк
22+
23+
[Откройте мастер-репозиторий](https://github.com/htmlacademy-adaptive/2558253-cat-energy-2) и нажмите кнопку «Fork» в правом верхнем углу. Репозиторий из Академии будет скопирован в ваш аккаунт.
24+
25+
<img width="800" alt="" src="https://user-images.githubusercontent.com/10909/60808133-3a7ace00-a190-11e9-9d29-401b02036a9c.jpg">
26+
27+
Получится вот так:
28+
29+
<img width="800" alt="" src="https://user-images.githubusercontent.com/10909/60808135-3a7ace00-a190-11e9-9a8d-7390b3784c65.jpg">
30+
31+
#### 3. Клонируйте репозиторий на свой компьютер
32+
33+
Будьте внимательны: нужно клонировать свой репозиторий (форк), а не репозиторий Академии.
34+
35+
#### 4. Начинайте обучение!
36+
37+
---
38+
39+
<a href="https://htmlacademy.ru/intensive/adaptive"><img align="left" width="50" height="50" alt="HTML Academy" src="https://up.htmlacademy.ru/static/img/intensive/adaptive/logo-for-github-2.png"></a>
40+
41+
Репозиторий создан для обучения на профессиональном онлайн‑курсе «[HTML и CSS. Адаптивная вёрстка и автоматизация](https://htmlacademy.ru/intensive/adaptive)» от [HTML Academy](https://htmlacademy.ru).
42+
43+
[check-image]: https://github.com/htmlacademy-adaptive/2558253-cat-energy-2/workflows/Project%20check/badge.svg?branch=master
44+
[check-url]: https://github.com/htmlacademy-adaptive/2558253-cat-energy-2/actions

0 commit comments

Comments
 (0)