diff --git a/.devcontainer/development/Containerfile b/.devcontainer/development/Containerfile new file mode 100644 index 0000000..0b75da1 --- /dev/null +++ b/.devcontainer/development/Containerfile @@ -0,0 +1,11 @@ +FROM registry.opensuse.org/opensuse/tumbleweed:latest + +RUN zypper -n install sudo vim gawk git openssh-clients bash-completion \ + npm22 nodejs22 glib2-tools gettext-tools jq rsync zip + +RUN npm install --global yarn + +RUN useradd --create-home --shell /bin/bash developer +RUN echo "developer ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers + +USER developer \ No newline at end of file diff --git a/.devcontainer/development/devcontainer.json b/.devcontainer/development/devcontainer.json new file mode 100644 index 0000000..a7444b1 --- /dev/null +++ b/.devcontainer/development/devcontainer.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json", + "name": "Gnome GitHub Manager Development", + "build": { + "dockerfile": "Containerfile" + }, + "remoteUser": "developer", + "postCreateCommand": "yarn install", + "customizations": { + "vscode": { + "settings": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "sonarlint.pathToNodeExecutable": "/usr/bin/node", + "sonarlint.connectedMode.project": { + "connectionId": "mackdk", + "projectKey": "mackdk_gnome-github-manager" + } + }, + "extensions": [ + "esbenp.prettier-vscode", + "dbaeumer.vscode-eslint", + "github.vscode-github-actions", + "mrorz.language-gettext", + "SonarSource.sonarlint-vscode" + ] + } + } +} diff --git a/.eslintrc.json b/.eslintrc.json index e039020..cb94761 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,4 +1,5 @@ { + "$schema": "https://www.schemastore.org/eslintrc.json", "env": { "es2022": true }, diff --git a/.github/workflows/package-on-release.yml b/.github/workflows/package-on-release.yml index 722346c..fbd6d2b 100644 --- a/.github/workflows/package-on-release.yml +++ b/.github/workflows/package-on-release.yml @@ -11,15 +11,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Code Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v5 - name: Install translation tools run: sudo apt-get install -y make gettext - - name: Install NodeJS 18 - uses: actions/setup-node@v3 + - name: Install NodeJS 22 + uses: actions/setup-node@v5 with: - node-version: 18 + node-version: 22 cache: 'yarn' - name: Install the dependencies diff --git a/.github/workflows/sanity-checks.yml b/.github/workflows/sanity-checks.yml index 5aa6b96..bc6dc5f 100644 --- a/.github/workflows/sanity-checks.yml +++ b/.github/workflows/sanity-checks.yml @@ -8,7 +8,7 @@ on: types: - opened - synchronize - - reopend + - reopened jobs: linting: @@ -16,15 +16,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Code Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v5 - name: Install translation tools run: sudo apt-get install -y make gettext - - name: Install NodeJS 18 - uses: actions/setup-node@v3 + - name: Install NodeJS 22 + uses: actions/setup-node@v5 with: - node-version: 18 + node-version: 22 cache: 'yarn' - name: Install the dependencies @@ -38,15 +38,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Code Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v5 - name: Install translation tools run: sudo apt-get install -y make gettext - - name: Install NodeJS 18 - uses: actions/setup-node@v3 + - name: Install NodeJS 22 + uses: actions/setup-node@v5 with: - node-version: 18 + node-version: 22 cache: 'yarn' - name: Install the dependencies @@ -56,7 +56,7 @@ jobs: run: yarn package - name: Upload the distributable package - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: extension-archive path: build/dist/**/* @@ -66,13 +66,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Code Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v5 - name: Install translation tools run: sudo apt-get install -y make gettext - name: Install NodeJS 18 - uses: actions/setup-node@v3 + uses: actions/setup-node@v5 with: node-version: 18 cache: 'yarn' @@ -84,7 +84,7 @@ jobs: run: yarn test - name: Upload test coverage report - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: coverage-report path: build/test/lcov.info @@ -95,18 +95,18 @@ jobs: needs: testing steps: - name: Code Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v5 with: fetch-depth: 0 - name: Download test coverage report - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: coverage-report path: build/test - name: Perform SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@v2.1.1 + uses: SonarSource/sonarcloud-github-action@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.prettierrc.json b/.prettierrc.json index f3710a8..b48e9e8 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -5,7 +5,6 @@ "arrowParens": "always", "singleQuote": true, "semi": true, - "parser": "typescript", "tabWidth": 4, "useTabs": false } \ No newline at end of file diff --git a/package.json b/package.json index bdcec09..bd4b219 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "$schema": "https://www.schemastore.org/package.json", "name": "gnome-github-manager", "version": "1.0.0", "main": "extension.js", diff --git a/src/main/po/gnome-github-manager.pot b/src/main/po/gnome-github-manager.pot index 8127eae..bb0460c 100644 --- a/src/main/po/gnome-github-manager.pot +++ b/src/main/po/gnome-github-manager.pot @@ -14,7 +14,7 @@ msgstr "" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" @@ -97,8 +97,8 @@ msgid "Refresh interval" msgstr "" msgid "" -"How often data is synced. Might be enforced by GitHub Policy." +"How often data is synced. Might be enforced by GitHub Policy." msgstr "" msgid "Show only partecipating"