Skip to content

Commit

Permalink
maintenance: full rewrite for oclif 4 (and typescript 5)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulRbr committed Nov 14, 2024
1 parent 4730975 commit 0711317
Show file tree
Hide file tree
Showing 47 changed files with 2,399 additions and 2,480 deletions.
19 changes: 0 additions & 19 deletions .eslintrc

This file was deleted.

11 changes: 11 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": [
"plugin:@typescript-eslint/recommended",
"oclif", "oclif-typescript",
"prettier",
"plugin:prettier/recommended"
],
"rules": {
"camelcase": "off"
}
}
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- ubuntu-latest
- macos-latest
- windows-latest
node_version: [ '14', '16', '18' ]
node_version: [ '18', '20', '23' ]
architecture: [ 'x64' ]
# an extra windows-x86 run:
# include:
Expand Down
14 changes: 10 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
*-debug.log
*-error.log
/.nyc_output
**/.DS_Store
/.idea
/dist
/lib
*oclif.manifest.json
/tmp
/yarn.lock
node_modules
/node_modules
oclif.manifest.json



yarn.lock
pnpm-lock.yaml

15 changes: 0 additions & 15 deletions .mocharc.js

This file was deleted.

15 changes: 15 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"require": [
"ts-node/register"
],
"watch-extensions": [
"ts"
],
"recursive": true,
"reporter": "spec",
"timeout": 60000,
"node-option": [
"loader=ts-node/esm",
"experimental-specifier-resolution=node"
]
}
8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@oclif/prettier-config"
22 changes: 22 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach",
"port": 9229,
"skipFiles": ["<node_internals>/**"]
},
{
"type": "node",
"request": "launch",
"name": "Execute Command",
"skipFiles": ["<node_internals>/**"],
"runtimeExecutable": "node",
"runtimeArgs": ["--loader", "ts-node/esm", "--no-warnings=ExperimentalWarning"],
"program": "${workspaceFolder}/bin/dev.js",
"args": ["hello", "world"]
}
]
}
3 changes: 3 additions & 0 deletions bin/dev.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %*
6 changes: 6 additions & 0 deletions bin/dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env -S node --loader ts-node/esm --disable-warning=ExperimentalWarning

// eslint-disable-next-line n/shebang
import {execute} from '@oclif/core'

await execute({development: true, dir: import.meta.url})
5 changes: 0 additions & 5 deletions bin/run

This file was deleted.

5 changes: 5 additions & 0 deletions bin/run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env node

import {execute} from '@oclif/core'

await execute({dir: import.meta.url})
Loading

0 comments on commit 0711317

Please sign in to comment.