Skip to content

Commit

Permalink
Merge pull request #198 from what1s1ove/development
Browse files Browse the repository at this point in the history
development to production
  • Loading branch information
what1s1ove authored Nov 17, 2023
2 parents 8e0b9f6 + 9614d07 commit 5697fa6
Show file tree
Hide file tree
Showing 269 changed files with 10,955 additions and 26,800 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8

[makefile]
[Makefile]
indent_style = tab
70 changes: 63 additions & 7 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,42 @@ env:
extends:
- eslint:recommended
- plugin:import/recommended
- plugin:sonarjs/recommended
- plugin:unicorn/recommended
- plugin:perfectionist/recommended-natural
- plugin:jsdoc/recommended-typescript-flavor-error

plugins:
- import
- simple-import-sort

parserOptions:
ecmaVersion: 2022
sourceType: module

settings:
jsdoc:
mode: typescript
import/resolver:
alias:
extensions:
- .js
map:
- ['~', './source/js']
- ['~', './source/scripts']

ignorePatterns:
- build

rules:
no-restricted-syntax:
- error
- selector: VariableDeclaration[kind!=let]
message: Only let can be used for the variable declaration.
- selector: SwitchCase > *.consequent[type!="BlockStatement"]
message: Switch cases without blocks are forbidden.
- selector: ExportAllDeclaration,ImportAllDeclaration
message: Export/Import all (*) is forbidden.
- selector: ExportNamedDeclaration[declaration!=null]
message: Exports should be at the end of the file.
semi:
- error
- never
Expand Down Expand Up @@ -61,9 +80,9 @@ rules:
no-console:
- error
- allow:
- warn
- error
- info
- warn
- error
- info
arrow-parens:
- error
- always
Expand All @@ -73,21 +92,58 @@ rules:
no-multiple-empty-lines:
- error
- max: 1
simple-import-sort/imports:
- error
simple-import-sort/exports:
- error
perfectionist/sort-named-imports:
- error
- type: alphabetical
import/exports-last:
- error
import/group-exports:
- error
import/no-default-export:
- error
import/no-anonymous-default-export:
import/first:
- error
import/newline-after-import:
- error
import/no-duplicates:
- error
import/extensions:
- error
- ignorePackages
jsdoc/require-jsdoc:
- error
- checkConstructors: false
checkGetters: true
checkSetters: true
contexts:
- ArrowFunctionExpression
- ClassProperty
- FunctionDeclaration
- FunctionExpression
- MethodDefinition
jsdoc/valid-types:
- off
jsdoc/require-returns-description:
- off
jsdoc/require-param-description:
- off
jsdoc/require-property-description:
- off

overrides:
- files:
- gulpfile.js
- commitlint.config.js
rules:
import/no-default-export:
- off
- files:
- eleventy.config.cjs
env:
node: true
rules:
sonarjs/cognitive-complexity:
- off
51 changes: 51 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Continuous Delivery

on:
push:
branches:
- production

concurrency:
group: cd-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Code Checkout
uses: actions/checkout@v4

- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Install Dependencies
run: |
npm ci
- name: Code Building
run: |
npm run build
- name: Upload Artifact
uses: actions/upload-pages-artifact@v2
with:
path: build

deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
45 changes: 45 additions & 0 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Continuous Integration Pull Request

on:
pull_request:
types:
- assigned
- unassigned
- opened
- edited
- synchronize
- reopened
- labeled
- unlabeled
- ready_for_review

concurrency:
group: ci-pr-${{ github.ref }}
cancel-in-progress: true

jobs:
ci-pr:
permissions:
contents: read
pull-requests: write

runs-on: ubuntu-latest

steps:
- name: Checkout Source Code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Install Dependencies
run: |
npm install
- name: Lint Commits
run: |
npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Continuous Integration

env:
JAVA_VERSION: 8
Expand All @@ -9,16 +9,20 @@ on:
- development
- production

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
ci:
name: CI
runs-on: ubuntu-latest

steps:
- name: Code Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install NodeJS
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/deploy.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/notify.yml

This file was deleted.

14 changes: 8 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.DS_Store
.idea
.vscode
build
# dependencies
node_modules
npm-debug.*
Thumbs.db

# production
build

# misc
.DS_Store
.env
4 changes: 2 additions & 2 deletions .lintstagedrc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'*.{html,json,md}': prettier --write
'*.{json,yml,css,js,cjs,d.ts}': prettier --write
'*': make lint_editorconfig lint_fs
'*.css': make lint_css
'*.js': make lint_js
'*.js': make lint_js lint_type
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
engine-strict=true
save-exact=true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18
6 changes: 4 additions & 2 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
plugins:
- 'prettier-plugin-jsdoc'
printWidth: 80
tabWidth: 2
useTabs: false
Expand All @@ -8,6 +10,6 @@ trailingComma: all
bracketSpacing: true
arrowParens: always
overrides:
- files: '*.html'
- files: '*.css'
options:
printWidth: 9999
singleQuote: false
10 changes: 5 additions & 5 deletions .stylelintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ plugins:
extends:
- stylelint-config-standard
rules:
selector-class-pattern: null
custom-property-pattern: null
color-hex-length: long
order/order:
selector-class-pattern: null
custom-property-pattern: null
color-hex-length: long
order/order:
- custom-properties
- declarations
order/properties-order:
order/properties-order:
- all
- position
- top
Expand Down
Loading

0 comments on commit 5697fa6

Please sign in to comment.