Skip to content

Commit

Permalink
fix: remove fontbm tool setup (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
HipsterBrown committed Aug 13, 2024
1 parent 073f205 commit e6a389d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 113 deletions.
6 changes: 0 additions & 6 deletions docs/src/content/docs/features/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ There are some utilities that are not included in the Moddable SDK or other plat

**Supported tools:**

[`fontbm`](https://github.com/vladimirgamalyan/fontbm): BMFont compatible, cross-platform (Linux/macOS/Windows) command line bitmap font generator (FreeType2 based render)

```
xs-dev setup --tool fontbm
```

`ejectfix`: not a downloadable tool, rather a environment preference to disable the `DISK NOT EJECTED PROPERLY` notification while working with the nrf52 on MacOS. This will automate the process described by [the Adafruit blog](https://blog.adafruit.com/2021/05/11/how-to-tone-down-macos-big-surs-circuitpy-eject-notifications/):

```
Expand Down
6 changes: 2 additions & 4 deletions src/commands/setup.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { GluegunCommand } from 'gluegun'
import { type as platformType } from 'os'
import type { Device, XSDevToolbox } from '../types'
import setupFontbm from '../toolbox/setup/fontbm'
import setupEjectfix from '../toolbox/setup/ejectfix'
import { DEVICE_ALIAS } from '../toolbox/prompt/devices'
import { MODDABLE_REPO } from '../toolbox/setup/constants'
Expand All @@ -10,7 +9,7 @@ import { SetupArgs } from '../toolbox/setup/types'
interface SetupOptions {
device?: Device
listDevices?: boolean
tool?: 'fontbm' | 'ejectfix'
tool?: 'ejectfix'
targetBranch?: SetupArgs['targetBranch']
sourceRepo?: string
}
Expand Down Expand Up @@ -57,11 +56,10 @@ const command: GluegunCommand<XSDevToolbox> = {
}

if (tool !== undefined) {
if (!['fontbm', 'ejectfix'].includes(tool)) {
if (!['ejectfix'].includes(tool)) {
print.warning(`Unknown tool ${tool}`)
process.exit(1)
}
if (tool === 'fontbm') await setupFontbm()
if (tool === 'ejectfix') await setupEjectfix()
return
}
Expand Down
103 changes: 0 additions & 103 deletions src/toolbox/setup/fontbm.ts

This file was deleted.

0 comments on commit e6a389d

Please sign in to comment.