Skip to content

Commit 19f0d9c

Browse files
feat: init markdown command (#2)
* Init oclif * Add a markdown command * Add basic markdown + watsonx translator * Fix examples * Small tweak * Eslint fixes and switch to vitest * Fix eslint * Finally, jest works * Add unit tests for markdown core * Test on push * Add pnpm to test.yml * pin pnpm version
1 parent a0f85fb commit 19f0d9c

File tree

23 files changed

+10508
-2
lines changed

23 files changed

+10508
-2
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: tests
2+
on:
3+
push:
4+
branches-ignore: [main]
5+
workflow_dispatch:
6+
7+
jobs:
8+
unit-tests:
9+
strategy:
10+
matrix:
11+
os: ['ubuntu-latest']
12+
node_version: [lts/-1, lts/*, latest]
13+
fail-fast: false
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: pnpm/action-setup@v4
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: ${{ matrix.node_version }}
21+
cache: pnpm
22+
- run: pnpm install
23+
- run: pnpm run build
24+
- run: pnpm run test

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"@oclif/prettier-config"

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 22.20.0

.vscode/launch.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "attach",
7+
"name": "Attach",
8+
"port": 9229,
9+
"skipFiles": ["<node_internals>/**"]
10+
},
11+
{
12+
"type": "node",
13+
"request": "launch",
14+
"name": "Execute Command",
15+
"skipFiles": ["<node_internals>/**"],
16+
"runtimeExecutable": "node",
17+
"runtimeArgs": ["--loader", "ts-node/esm", "--no-warnings=ExperimentalWarning"],
18+
"program": "${workspaceFolder}/bin/dev.js",
19+
"args": ["hello", "world"]
20+
}
21+
]
22+
}

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"eslint.enable": true,
3+
"eslint.validate": ["javascript", "typescript"],
4+
"editor.codeActionsOnSave": {
5+
"source.fixAll.eslint": "explicit"
6+
},
7+
"editor.formatOnSave": true
8+
}

0 commit comments

Comments
 (0)