Skip to content

Commit

Permalink
🐣
Browse files Browse the repository at this point in the history
  • Loading branch information
Keks committed Oct 8, 2024
0 parents commit 636d6c5
Show file tree
Hide file tree
Showing 37 changed files with 15,565 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Файл с настройками для редактора.
#
# Если вы разрабатываете в редакторе WebStorm, BBEdit, Coda или SourceLair
# этот файл уже поддерживается и не нужно производить никаких дополнительных
# действий.
#
# Если вы ведёте разработку в другом редакторе, зайдите
# на https://editorconfig.org и в разделе «Download a Plugin»
# скачайте дополнение для вашего редактора.

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"
}
44 changes: 44 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Личный проект «Кэт энерджи»

* Студент: [Елена Лисавина](https://up.htmlacademy.ru/adaptive-individual/2/user/2513057).
* Наставник: `Неизвестно`.

---

**Обратите внимание, что папка с вашими исходными файлами для работы над проектом — `source/`.**

_Не удаляйте и не обращайте внимание на файлы и папки:_<br>
_`.github`, `.editorconfig`, `.eslintrc`, `.gitattributes`, `.gitignore`, `.linthtmlrc`, `.stylelintrc`, `.gulpfile.js`, `svgo.config.js` `package.json`, `package-lock.json`._

---

### Памятка

#### 1. Зарегистрируйтесь на Гитхабе

Если у вас ещё нет аккаунта на [github.com](https://github.com/join), скорее зарегистрируйтесь.

#### 2. Создайте форк

[Откройте мастер-репозиторий](https://github.com/htmlacademy-adaptive/2513057-cat-energy-2) и нажмите кнопку «Fork» в правом верхнем углу. Репозиторий из Академии будет скопирован в ваш аккаунт.

<img width="800" alt="" src="https://user-images.githubusercontent.com/10909/60808133-3a7ace00-a190-11e9-9d29-401b02036a9c.jpg">

Получится вот так:

<img width="800" alt="" src="https://user-images.githubusercontent.com/10909/60808135-3a7ace00-a190-11e9-9a8d-7390b3784c65.jpg">

#### 3. Клонируйте репозиторий на свой компьютер

Будьте внимательны: нужно клонировать свой репозиторий (форк), а не репозиторий Академии.

#### 4. Начинайте обучение!

---

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

Репозиторий создан для обучения на профессиональном онлайн‑курсе «[HTML и CSS. Адаптивная вёрстка и автоматизация](https://htmlacademy.ru/intensive/adaptive)» от [HTML Academy](https://htmlacademy.ru).

[check-image]: https://github.com/htmlacademy-adaptive/2513057-cat-energy-2/workflows/Project%20check/badge.svg?branch=master
[check-url]: https://github.com/htmlacademy-adaptive/2513057-cat-energy-2/actions
Loading

0 comments on commit 636d6c5

Please sign in to comment.