Skip to content

Commit 10133a3

Browse files
committed
chore: updating to manifest v3
Signed-off-by: Pawel Psztyc <jarrodek@gmail.com>
1 parent 8b205e5 commit 10133a3

Some content is hidden

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

43 files changed

+12438
-1125
lines changed

.editorconfig

Lines changed: 0 additions & 21 deletions
This file was deleted.

.eslintrc

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"env": {
3+
"es2021": true,
4+
"browser": true,
5+
"node": false
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"prettier"
10+
],
11+
"parserOptions": {
12+
"ecmaVersion": "latest",
13+
"sourceType": "module"
14+
},
15+
"rules": {
16+
17+
},
18+
"globals": {
19+
"chrome": true
20+
},
21+
"overrides": [
22+
{
23+
"files": [
24+
"web-dev-server.config.mjs",
25+
"playwright.config.js"
26+
],
27+
"env": {
28+
"browser": false,
29+
"node": true
30+
}
31+
},
32+
{
33+
"files": ["test/**/*.test.js"],
34+
"env": {
35+
"browser": true,
36+
"node": true
37+
}
38+
}
39+
]
40+
}

.firebaserc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/CONTRIBUTING.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Contributing to API Client
2+
3+
First of all, we are happy you want to contribute to API Client open source project. API Client is a community driven project and we are open to your input. Before you start lets clear some things first so your contribution is accepted without unnecessary delays.
4+
5+
## Start with an issue report
6+
7+
Before you start working on any code or architecture, please, report an issue in the corresponding repository. This is crucial for open projects so the community can take a part in the discussion. Also, the project is being developed so we can predict upcoming changes. This way we will also be able to direct you in the right direction, like telling you where you can find relevant code. See below for more information.
8+
9+
## Code the change
10+
11+
### Code and PR
12+
13+
After you have created an issue report and picked the right repository you now are enabled to code the change. After you finish **introduce relevant tests**. We can't accept PRs that contains an untested code. After that create a PR to the relevant repository. We will get back to you as soon as possible. Heel free to mention us directly in the PR so we will get a notification from GitHub.
14+
15+
### Things to consider
16+
17+
- Introduce changes that other users will benefit from
18+
- Significant architecture changes make take longer to be accepted giving the complexity of the dependencies. API Client has a shared code with MuleSoft's API Console. We need to ensure the stability of both projects.
19+
- Understand the reasons for the distributed architecture and honor the structure of the project. Most likely you want to introduce changes to the `core` repository. Less likely others.
20+
- We are here to help. Ask us questions about the architecture or how stuff work.
21+
22+
------
23+
24+
That's it. We are thrilled seeing you contributing to the project. Drop us a message in case you have any questions.

.github/stale.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 45
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- bug
8+
- fixme/bug
9+
- fixme/security
10+
- blocked
11+
- needs-review
12+
- roadmap
13+
# Label to use when marking an issue as stale
14+
staleLabel: stale
15+
# Comment to post when marking an issue as stale. Set to `false` to disable
16+
markComment: >
17+
This issue has been automatically marked as stale because it has not had
18+
recent activity and is not currently prioritized. It will be closed
19+
in a week if no further activity occurs :)
20+
# Comment to post when closing a stale issue. Set to `false` to disable
21+
closeComment: >
22+
If you still think this issue is relevant, please ping a maintainer or
23+
leave a comment!
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ master ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ master ]
20+
schedule:
21+
- cron: '21 7 * * 5'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
language: [ 'javascript' ]
32+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33+
# Learn more:
34+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v2
39+
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@v1
43+
with:
44+
languages: ${{ matrix.language }}
45+
# If you wish to specify custom queries, you can do so here or in a config file.
46+
# By default, queries listed here will override any specified in a config file.
47+
# Prefix the list here with "+" to use these queries and those in the config file.
48+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
49+
50+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51+
# If this step fails, then you should remove it and run the build manually (see below)
52+
- name: Autobuild
53+
uses: github/codeql-action/autobuild@v1
54+
55+
# ℹ️ Command-line programs to run using the OS shell.
56+
# 📚 https://git.io/JvXDl
57+
58+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59+
# and modify them (or add more) to build your code if your project
60+
# uses a compiled language
61+
62+
#- run: |
63+
# make bootstrap
64+
# make release
65+
66+
- name: Perform CodeQL Analysis
67+
uses: github/codeql-action/analyze@v1

.github/workflows/deployment.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Tests and publishing
2+
env:
3+
FORCE_COLOR: 1
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- develop
9+
pull_request:
10+
branches:
11+
- main
12+
jobs:
13+
test_linux:
14+
name: Ubuntu
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/setup-node@v1
19+
with:
20+
node-version: 16
21+
- uses: microsoft/playwright-github-action@v1
22+
- uses: actions/cache@v1
23+
with:
24+
path: ~/.npm
25+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-node-
28+
- name: Install dependencies
29+
run: npm ci
30+
- name: Run tests
31+
run: npm test
32+
# test_win:
33+
# name: "Windows"
34+
# runs-on: windows-latest
35+
# steps:
36+
# - uses: actions/checkout@v2
37+
# - uses: actions/setup-node@v1
38+
# with:
39+
# node-version: 16
40+
# - uses: microsoft/playwright-github-action@v1
41+
# - uses: actions/cache@v1
42+
# with:
43+
# path: ~/.npm
44+
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
45+
# restore-keys: |
46+
# ${{ runner.os }}-node-
47+
# - name: Install dependencies
48+
# run: npm ci
49+
# - name: Run tests
50+
# run: npm test
51+
tag:
52+
name: "Publishing release"
53+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
54+
needs:
55+
- test_linux
56+
# - test_win
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: Checkout code
60+
uses: actions/checkout@v2
61+
with:
62+
fetch-depth: 0
63+
- uses: actions/setup-node@v2
64+
with:
65+
node-version: 16
66+
registry-url: 'https://registry.npmjs.org'
67+
- uses: actions/cache@v1
68+
with:
69+
path: ~/.npm
70+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
71+
restore-keys: |
72+
${{ runner.os }}-node-
73+
- run: npm install
74+
- name: Read version from package.json
75+
uses: culshaw/read-package-node-version-actions@v1
76+
id: package-node-version
77+
- name: Changelog
78+
uses: scottbrenner/generate-changelog-action@master
79+
id: Changelog
80+
- name: Github Release
81+
id: create_release
82+
uses: actions/create-release@latest
83+
env:
84+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85+
with:
86+
tag_name: v${{ steps.package-node-version.outputs.version }}
87+
release_name: v${{ steps.package-node-version.outputs.version }}
88+
body: |
89+
${{ steps.Changelog.outputs.changelog }}
90+
draft: false
91+
prerelease: false
92+
- run: npm publish --access public
93+
env:
94+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.jsbeautifyrc

Lines changed: 0 additions & 54 deletions
This file was deleted.

.jscsrc

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)