Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .eslintrc.json

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/build_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: build_pr
on:
pull_request:
branches: [main]

jobs:
build:
strategy:
matrix:
include:
- os: windows-latest
vsce_target: win32-x64
platform: win32
arch: x64
- os: ubuntu-latest
vsce_target: linux-x64
platform: linux
arch: x64
- os: macos-latest
vsce_target: darwin-arm64
platform: darwin
arch: arm64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- run: npm --version
#- run: npm i -g npm@8.5.1
#- run: npm --version
- name: Install dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install webview dependencies
run: npm ci
working-directory: ./src/webview
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: echo "Manual build via npm run package. Part of npx vsce package"
# run: npm run package
- run: npx vsce --version
- shell: pwsh
run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_ENV
- run: npx vsce package --out fishbone-${{env.target}}-PR${{github.event.number}}.vsix
- uses: actions/upload-artifact@v4
with:
name: fishbone-vsix-${{ env.target }}-PR${{ github.event.number }}
path: "*.vsix"
2 changes: 1 addition & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
12 changes: 6 additions & 6 deletions .github/workflows/ext_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci
- name: Install webview dependencies
run: yarn install --frozen-lockfile
run: npm ci
working-directory: ./src/webview
- run: xvfb-run -a yarn run test
- run: xvfb-run -a npm run test
if: runner.os == 'Linux'
- run: yarn run test
- run: npm run test
if: runner.os != 'Linux'
8 changes: 4 additions & 4 deletions .github/workflows/gh_pages_docu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Test Build
run: |
cd src/webview
yarn install --frozen-lockfile
npm ci
npm run build
cd ../..
cd docs/fishbone
Expand All @@ -34,8 +34,8 @@ jobs:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Add key to allow access to repository
Expand All @@ -59,7 +59,7 @@ jobs:
git config --global user.email "mbehr+actions@mcbehr.de"
git config --global user.name "gh-actions on behalf of mbehr"
cd src/webview
yarn install --frozen-lockfile
npm ci
npm run build
cd ../..
cd docs/fishbone
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
- name: Commitlint
uses: wagoid/commitlint-github-action@v5
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci
- name: Install webview dependencies
run: yarn install --frozen-lockfile
run: npm ci
working-directory: ./src/webview
- name: Release
env:
Expand Down
19 changes: 6 additions & 13 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ To build locally you do need:

once:
```
(have at least nodejs >=22.17 installed)
(have at least nodejs >=24.12 installed)
npm install -g typescript
npm install -g vsce
yarn install
npm install
# Go to the webview source directory
cd /src/webview
# Install dependencies using yarn
yarn install
# Install dependencies using npm
npm install
# Go back to fishbone directory
cd ../..
````
Expand Down Expand Up @@ -45,8 +45,6 @@ The [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) rules

commitlint is used:
```sh
yarn add -D @commitlint/{cli,config-conventional}
or
npm install --save-dev @commitlint/{cli,config-conventional}
```

Expand All @@ -62,8 +60,6 @@ We use the config in the package.json (as we use git hooks ... later as well):
Husky v6 is used for easy git commit hooks on local setup:
```sh
npm install --save-dev husky
or
yarn add -D husky
```
and activated in package.json as well:
```json
Expand Down Expand Up @@ -105,9 +101,6 @@ Semantic-release is used to
- create a github release tag/version

```sh
yarn add -D semantic-release @semantic-release/changelog @semantic-release/git
yarn add -D semantic-release-vsce
or
npm install --save-dev semantic-release @semantic-release/changelog @semantic-release/git
npm install --save-dev semantic-release-vsce
```
Expand Down Expand Up @@ -220,9 +213,9 @@ jobs:
with:
node-version: "lts/*"
- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci
- name: Install webview dependencies
run: yarn install --frozen-lockfile
run: npm ci
working-directory: ./src/webview
- name: Release
env:
Expand Down
8 changes: 4 additions & 4 deletions docs/fishbone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@ This website is built using [Docusaurus 2](https://v2.docusaurus.io/), a modern
## Installation

```console
yarn install
npm install
```

## Local Development

```console
yarn start
npm start
```

This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.

## Build

```console
yarn build
npm run build
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.

## Deployment

```console
GIT_USER=mbehr1 yarn deploy
GIT_USER=mbehr1 npm deploy
```

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
4 changes: 3 additions & 1 deletion docs/fishbone/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ module.exports = {
url: 'https://mbehr1.github.io',
baseUrl: '/fishbone/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/fishbone-icon2.png',
organizationName: 'mbehr1',
projectName: 'fishbone',
markdown: {
hooks: {
onBrokenMarkdownLinks: 'warn',
},
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
Expand Down
Loading