Skip to content

Commit

Permalink
refactor(utils): deprecate devTools
Browse files Browse the repository at this point in the history
  • Loading branch information
alex8088 committed Jul 21, 2023
1 parent d067f7a commit fa75c0b
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 306 deletions.
22 changes: 0 additions & 22 deletions packages/utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,6 @@ npm i @electron-toolkit/utils

- Type: boolean, `true` when `process.platform` is `linux`

### devTools

- install

- Type: (extensionId: ChromeExtension, options?: ChromeExtensionOptions): Promise<void>

- Kind: async, sequential

Example:

```javascript
// main.js
import { app } from 'electron'
import { devTools } from '@electron-toolkit/utils'

app.whenReady().then(() => {
devTools.install('REACT_DEVELOPER_TOOLS', { allowFileAccess: true })
})
```

Note: `extensionId` see [ChromeExtension](./src/devTools.ts)

### electronApp

- setAppUserModelId
Expand Down
3 changes: 0 additions & 3 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,5 @@
},
"peerDependencies": {
"electron": ">=13.0.0"
},
"dependencies": {
"jszip": "^3.7.1"
}
}
139 changes: 0 additions & 139 deletions packages/utils/src/devTools.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/utils/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export * from './is'
export * from './platform'
export * from './devTools'
export * from './app'
export * from './ipcHelper'
export * from './optimizer'
94 changes: 0 additions & 94 deletions packages/utils/src/utils/unzipCrx.ts

This file was deleted.

Loading

0 comments on commit fa75c0b

Please sign in to comment.