Skip to content

Commit

Permalink
Merge pull request #1 from AdguardTeam/dev
Browse files Browse the repository at this point in the history
First version
  • Loading branch information
scripthunter7 authored Nov 18, 2022
2 parents 1773684 + e8f2b8d commit cb1efce
Show file tree
Hide file tree
Showing 67 changed files with 15,105 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
38 changes: 38 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.eslint.json"
},
"plugins": ["import", "@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"airbnb-typescript/base",
"plugin:jsdoc/recommended",
"prettier"
],
"rules": {
"prettier/prettier": 2,

"max-len": [
"error",
{
"code": 120,
"comments": 120,
"tabWidth": 4,
"ignoreUrls": false,
"ignoreTrailingComments": false,
"ignoreComments": false
}
],
"indent": [
"error",
4,
{
"SwitchCase": 1
}
]
}
}
77 changes: 77 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Release
on:
# Run manually
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out to repository
uses: actions/checkout@v3
with:
ref: main

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run ESLint
run: yarn lint

test:
needs: lint
runs-on: ubuntu-latest
steps:
- name: Check out to repository
uses: actions/checkout@v3
with:
ref: main

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run tests
run: yarn test

build:
needs: test
runs-on: ubuntu-latest
steps:
- name: Check out to repository
uses: actions/checkout@v3
with:
ref: main

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run build script
run: yarn build

# TODO: Artifact / Create release:

# - name: Create release artifact
# uses: actions/upload-artifact@v3
# with:
# name: release_artifact
# path: |
# .
# !./node_modules
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
dist
*.log
coverage
.vscode
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"tabWidth": 4,
"endOfLine": "lf",
"printWidth": 120,
"singleQuote": false
}
Loading

0 comments on commit cb1efce

Please sign in to comment.