Skip to content

Commit f42aa4a

Browse files
committed
feat!: migrate to oclif v4
1 parent fc44fdc commit f42aa4a

File tree

25 files changed

+4624
-4374
lines changed

25 files changed

+4624
-4374
lines changed

.eslintignore

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

.eslintrc

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
{
2-
"extends": [
3-
"oclif",
4-
"oclif-typescript"
5-
],
6-
"rules": {
7-
"unicorn/import-style": "warn"
8-
}
9-
}
2+
"extends": ["oclif", "oclif-typescript", "prettier"],
3+
"ignores": ["/dist"]
4+
}

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build & Test
2+
3+
on:
4+
push:
5+
branches-ignore: [main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
name: Build & Test
11+
12+
strategy:
13+
matrix:
14+
os: ['ubuntu-latest', 'windows-latest']
15+
node_version: [lts/-1, lts/*, latest]
16+
fail-fast: false
17+
18+
runs-on: ${{ matrix.os }}
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
26+
27+
- name: Setup NodeJS
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: ${{ matrix.node_version }}
31+
cache: pnpm
32+
33+
- name: Install dependencies
34+
run: pnpm i --frozen-lockfile
35+
36+
- name: Build CLI
37+
run: pnpm run build
38+
39+
- name: Test CLI commands
40+
run: pnpm run test

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,11 @@ $RECYCLE.BIN/
220220
*-debug.log
221221
*-error.log
222222
/.nyc_output
223+
**/.DS_Store
224+
/.idea
223225
/dist
224-
/lib
225-
/package-lock.json
226226
/tmp
227-
node_modules
227+
/node_modules
228228
oclif.manifest.json
229229

230230
# Test-generated resources

.mocharc.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
22
"require": [
3-
"test/helpers/init.js",
43
"ts-node/register"
54
],
65
"watch-extensions": [
76
"ts"
87
],
98
"recursive": true,
109
"reporter": "spec",
11-
"timeout": 60000
10+
"timeout": 60000,
11+
"node-option": [
12+
"loader=ts-node/esm",
13+
"experimental-specifier-resolution=node"
14+
]
1215
}

.prettierrc.json

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

.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+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ React Native Toolbox
33

44
> A set of scripts to simplify React Native development
55
6-
[![License](https://img.shields.io/npm/l/@forward-software/react-native-toolbox.svg)](https://github.com/Forward-Software/react-native-toolbox/blob/main/LICENSE) [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
6+
[![License](https://img.shields.io/npm/l/@forward-software/react-native-toolbox.svg)](https://github.com/forwardsoftware/react-native-toolbox/blob/main/LICENSE) [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
77

88
[![Version](https://img.shields.io/npm/v/@forward-software/react-native-toolbox.svg)](https://npmjs.org/package/@forward-software/react-native-toolbox) [![Downloads/week](https://img.shields.io/npm/dw/@forward-software/react-native-toolbox.svg)](https://npmjs.org/package/@forward-software/react-native-toolbox)
99

@@ -131,6 +131,6 @@ Mozilla Public License 2.0
131131

132132
---
133133

134-
Made with ✨ & ❤️ by [ForWarD Software](https://github.com/Forward-Software) and [contributors](https://github.com/Forward-Software/react-native-toolbox/graphs/contributors)
134+
Made with ✨ & ❤️ by [ForWarD Software](https://github.com/forwardsoftware) and [contributors](https://github.com/forwardsoftware/react-native-toolbox/graphs/contributors)
135135

136136
If you found this project to be helpful, please consider contacting us to develop your React and React Native projects.

bin/dev

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

bin/dev.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
@echo off
22

3-
node "%~dp0\dev" %*
3+
node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %*

0 commit comments

Comments
 (0)