Skip to content

Commit 819844a

Browse files
committed
chore: initiliaze repository
0 parents  commit 819844a

File tree

151 files changed

+16291
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+16291
-0
lines changed

.commitlintrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const { COMMIT_TYPES: TYPES, COMMIT_SCOPES: SCOPES } = require('./rules.js');
2+
3+
module.exports = {
4+
extends: ['@commitlint/config-conventional'],
5+
rules: {
6+
'type-enum': [2, 'always', Object.keys(TYPES)],
7+
'scope-enum': async () => [2, 'always', Object.keys(SCOPES)],
8+
},
9+
};

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.github/ISSUE_TEMPLATE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!-- trunk-ignore-all(markdownlint/MD041) -->
2+
3+
Please help us process issues more efficiently by filing an
4+
issue using one of the following templates:
5+
6+
<https://github.com/ebizbaze/chrome-extension-angular/issues/new/choose>
7+
8+
Thank you!
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
---
8+
9+
## Describe the bug
10+
11+
A clear and concise description of what the bug is.
12+
13+
## To Reproduce
14+
15+
Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error
16+
17+
## Expected behavior
18+
19+
A clear and concise description of what you expected to happen.
20+
21+
## Screenshots
22+
23+
If applicable, add screenshots to help explain your problem.
24+
25+
## Desktop (please complete the following information)
26+
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
## Smartphone (please complete the following information)
32+
33+
- Device: [e.g. iPhone6]
34+
- OS: [e.g. iOS8.1]
35+
- Browser [e.g. stock browser, safari]
36+
- Version [e.g. 22]
37+
38+
## Additional context
39+
40+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: 'feature'
6+
assignees: ''
7+
---
8+
9+
## Is your feature request related to a problem? Please describe
10+
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
## Describe the solution you'd like
14+
15+
A clear and concise description of what you want to happen.
16+
17+
## Describe alternatives you've considered
18+
19+
A clear and concise description of any alternative solutions or features you've considered.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!-- trunk-ignore-all(markdownlint/MD041) -->
2+
3+
## Feature PR Checklist
4+
5+
Please check if your PR fulfills the following requirements:
6+
7+
- [] The commit message follows our guidelines: <https://github.com/ebizbaze/chrome-extension-angular/blob/main/CONTRIBUTING.md#commit-message-guidelines>
8+
- [] Tests for the changes have been added
9+
- [] Docs have been added / updated
10+
11+
## PR Type
12+
13+
- [] Feature
14+
- [] BugFix
15+
- [] Other
16+
17+
## Does this PR introduce a breaking change?
18+
19+
- [ ] Yes
20+
- [ ] No
21+
22+
## What is the current behavior?
23+
24+
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
25+
26+
## What is the new behavior?
27+
28+
<!-- Please describe the new behavior or changes that you are adding. -->
29+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
30+
31+
## Other information
32+
33+
<!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Install Playwright
2+
description: Install Playwright and dependencies with cache
3+
4+
inputs:
5+
working-directory:
6+
description: Where to install Playwright
7+
default: ./
8+
browsers:
9+
description: Browsers to install
10+
default: chromium webkit firefox
11+
12+
outputs:
13+
version:
14+
description: Installed version of Playwright
15+
value: ${{ steps.version.outputs.version }}
16+
cache-hit:
17+
description: Whether cache for Playwright was found
18+
value: ${{ steps.cache.outputs.cache-hit }}
19+
20+
runs:
21+
using: composite
22+
steps:
23+
- name: Get Playwright version
24+
uses: actions/github-script@v7
25+
id: version
26+
with:
27+
script: |
28+
// https://github.com/actions/toolkit/issues/1624
29+
// const workingDirectory = core.getInput("working-directory");
30+
const workingDirectory = "${{ inputs.working-directory }}";
31+
console.debug("Specified working directory:", workingDirectory);
32+
if (workingDirectory) process.chdir(workingDirectory);
33+
console.debug("Actual working directory:", process.cwd());
34+
let version = "";
35+
try {
36+
version = require("@playwright/test/package.json").version;
37+
} catch (error) {
38+
console.log(error.message);
39+
}
40+
console.debug("Version:", version);
41+
if (version) {
42+
core.exportVariable("PLAYWRIGHT_VERSION", version);
43+
core.setOutput("version", version);
44+
} else core.setFailed("Couldn't get Playwright version");
45+
46+
- name: Cache Playwright
47+
id: cache
48+
uses: actions/cache@v4
49+
with:
50+
path: ~/.cache/ms-playwright
51+
key: playwright-${{ env.PLAYWRIGHT_VERSION }}
52+
53+
- name: Install Playwright and its dependencies
54+
shell: bash
55+
if: steps.cache.outputs.cache-hit != 'true'
56+
working-directory: ${{ inputs.working-directory }}
57+
run: npx playwright install ${{ inputs.browsers }} --with-deps
58+
59+
- name: Install just Playwright's dependencies
60+
shell: bash
61+
if: steps.cache.outputs.cache-hit == 'true'
62+
working-directory: ${{ inputs.working-directory }}
63+
run: npx playwright install-deps
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Setup project
2+
description: Setup project with node docker-buildx
3+
inputs:
4+
node-version:
5+
description: Node.js version
6+
default: lts/*
7+
required: false
8+
node-registry-url:
9+
description: Node.js registry URL
10+
default: https://registry.npmjs.org
11+
required: false
12+
package-manager:
13+
description: Package manager to use
14+
required: false
15+
default: yarn
16+
package-manager-install-command:
17+
description: Package manager install command
18+
required: false
19+
default: install
20+
package-manager-install-args:
21+
description: Package manager install arguments
22+
required: false
23+
default: --frozen-lockfile
24+
dependencies:
25+
description: Install dependencies
26+
required: false
27+
install-buildx:
28+
description: Install docker buildx
29+
required: false
30+
install-playwright:
31+
description: Install playwright
32+
required: false
33+
playwright-browsers:
34+
description: Playwright browsers
35+
required: false
36+
default: chromium webkit firefox
37+
runs:
38+
using: composite
39+
steps:
40+
- name: Setup Node.js
41+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
42+
with:
43+
registry-url: ${{ inputs.node-registry-url }}
44+
node-version: ${{ inputs.node-version }}
45+
cache: ${{ inputs.package-manager }}
46+
47+
- name: Install npm dependencies
48+
if: ${{ inputs.dependencies == 'true' }}
49+
shell: bash
50+
run: ${{ inputs.package-manager }} ${{ inputs.package-manager-install-command }} ${{ inputs.package-manager-install-args }}
51+
52+
- name: Install docker buildx
53+
if: ${{ inputs.install-buildx == 'true' }}
54+
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3
55+
56+
- name: Install playwright
57+
if: ${{ inputs.install-playwright == 'true' }}
58+
uses: ./.github/actions/setup-playwright
59+
with:
60+
browsers: ${{ inputs.playwright-browsers }}

.github/renovate.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:recommended"],
4+
"baseBranches": ["main"],
5+
"rangeStrategy": "replace",
6+
"pinDigests": true,
7+
"prConcurrentLimit": 5,
8+
"semanticCommits": "enabled",
9+
"semanticCommitScope": "deps",
10+
"semanticCommitType": "chore",
11+
"dependencyDashboard": true,
12+
"branchPrefix": "renovate/",
13+
"dependencyDashboardAutoclose": true,
14+
"commitBodyTable": true,
15+
"schedule": ["before 1am"],
16+
"automerge": false,
17+
"lockFileMaintenance": {
18+
"enabled": true
19+
},
20+
"packageRules": [
21+
{
22+
"extends": ["monorepo:angular"],
23+
"groupName": "angular monorepo",
24+
"matchUpdateTypes": ["digest", "patch", "minor", "major"]
25+
},
26+
{
27+
"groupName": "All patch dependencies",
28+
"matchPackageNames": ["*"],
29+
"matchUpdateTypes": ["patch"],
30+
"automerge": true
31+
},
32+
{
33+
"groupName": "Linting packages",
34+
"matchPackageNames": [
35+
"@types/eslint",
36+
"babel-eslint",
37+
"@babel/eslint-parser",
38+
"@eslint/**",
39+
"@eslint-community/**",
40+
"@stylistic/eslint-plugin**",
41+
"@types/eslint__**",
42+
"@typescript-eslint/**",
43+
"typescript-eslint",
44+
"eslint**",
45+
"@commitlint/**"
46+
]
47+
},
48+
{
49+
"groupName": "Testing libraries",
50+
"matchPackageNames": ["/jest/", "/ts-jest/", "/@playwright/test/"]
51+
},
52+
{
53+
"groupName": "Nx packages",
54+
"matchPackageNames": ["/^@nx//", "/nx/", "@nx/jest"]
55+
}
56+
]
57+
}

0 commit comments

Comments
 (0)