Skip to content

Commit

Permalink
Create repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Teihden committed Jul 28, 2023
0 parents commit 7204e8e
Show file tree
Hide file tree
Showing 19 changed files with 25,842 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Файл с настройками для редактора.
#
# Если вы разрабатываете в редакторе WebStorm, BBEdit, Coda или SourceLair
# этот файл уже поддерживается и не нужно производить никаких дополнительных
# действий.
#
# Если вы ведёте разработку в другом редакторе, зайдите
# на https://editorconfig.org и в разделе «Download a Plugin»
# скачайте дополнение для вашего редактора.

root = true

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

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
16 changes: 16 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": "airbnb-base",
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"import/extensions": ["error", "ignorePackages"],
}
}
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* text eol=lf

*.png binary
*.jpg binary
*.jpeg binary
*.webp binary
*.woff binary
*.woff2 binary
42 changes: 42 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Name of workflow
name: CI

# Trigger the workflow on push or pull request
on:
- push
- pull_request

jobs:
build:

# The type of machine to run the job on
runs-on: macos-latest

strategy:
# Node versions list
matrix:
node-version: [19.x]

steps:
# Check-out repository under GitHub workspace
# https://github.com/actions/checkout
- uses: actions/checkout@v2
# Step's name
- name: Use Node.js ${{ matrix.node-version }}
# Configures the node version used on GitHub-hosted runners
# https://github.com/actions/setup-node
uses: actions/setup-node@v3
# The Node.js version to configure
with:
node-version: ${{ matrix.node-version }}
- name: npm ci, build
# Install and build project
run: |
make ci
# Add environment variables
env:
CI: true
- name: Run linter
# Run Linter
run: |
make lint
66 changes: 66 additions & 0 deletions .github/workflows/github-pages-with-gulp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Github Pages with Gulp

on:
push:
branches: ["*"]

workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"

- name: Build
run: |
npm ci
npm run build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: build
path: build/

deploy:
needs: build

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: build

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "."

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.DS_Store
.idea
*.ai
*.log
*.pdf
*.psd
*.sublime*
node_modules
npm-debug.*
src/css/*.css
src/css/*.map
Thumbs.db
*.code-workspace
**/CNAME
coverage
build
6 changes: 6 additions & 0 deletions .pug-lintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "clock",
"disallowIdLiterals": null,
"validateAttributeQuoteMarks": "\"",
"validateAttributeSeparator": " "
}
Loading

0 comments on commit 7204e8e

Please sign in to comment.