Skip to content

Commit

Permalink
chore: update deps and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgao365 committed Aug 2, 2024
1 parent 04d09fe commit 4e27efd
Show file tree
Hide file tree
Showing 14 changed files with 2,251 additions and 1,480 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module.exports = {
node: true,
es6: true,
},
extends: [require.resolve('@tomjs/eslint/typescript')],
extends: [require.resolve('@tomjs/eslint')],
};
4 changes: 0 additions & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"

pnpm commitlint --edit $1
9 changes: 0 additions & 9 deletions .husky/common.sh

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"

pnpm lint-staged
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @tomjs/vite-plugin-electron

[![npm](https://img.shields.io/npm/v/@tomjs/vite-plugin-electron)](https://www.npmjs.com/package/@tomjs/vite-plugin-electron) ![node-current (scoped)](https://img.shields.io/node/v/@tomjs/vite-plugin-electron) ![NPM](https://img.shields.io/npm/l/@tomjs/vite-plugin-electron) [![Docs](https://img.shields.io/badge/API-unpkg-orange)](https://www.unpkg.com/browse/@tomjs/vite-plugin-electron/dist/index.d.ts)
[![npm](https://img.shields.io/npm/v/@tomjs/vite-plugin-electron)](https://www.npmjs.com/package/@tomjs/vite-plugin-electron) ![node-current (scoped)](https://img.shields.io/node/v/@tomjs/vite-plugin-electron) ![NPM](https://img.shields.io/npm/l/@tomjs/vite-plugin-electron) [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@tomjs/vite-plugin-electron)

**English** | [中文](./README.zh_CN.md)

Expand Down Expand Up @@ -214,7 +214,7 @@ The `recommended` option is used to set the default configuration and behavior,

### MainOptions

Based on [Options](https://paka.dev/npm/tsup) of [tsup](https://tsup.egoist.dev/), some default values are added for ease of use.
Based on [Options](https://www.jsdocs.io/package/tsup) of [tsup](https://tsup.egoist.dev/), some default values are added for ease of use.

| Property | Type | Default | Description |
| --- | --- | --- | --- |
Expand All @@ -225,7 +225,7 @@ Based on [Options](https://paka.dev/npm/tsup) of [tsup](https://tsup.egoist.dev/

### PreloadOptions

Based on [Options](https://paka.dev/npm/tsup) of [tsup](https://tsup.egoist.dev/), some default values are added for ease of use.
Based on [Options](https://www.jsdocs.io/package/tsup) of [tsup](https://tsup.egoist.dev/), some default values are added for ease of use.

| Property | Type | Default | Description |
| --- | --- | --- | --- |
Expand Down
6 changes: 3 additions & 3 deletions README.zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @tomjs/vite-plugin-electron

[![npm](https://img.shields.io/npm/v/@tomjs/vite-plugin-electron)](https://www.npmjs.com/package/@tomjs/vite-plugin-electron) ![node-current (scoped)](https://img.shields.io/node/v/@tomjs/vite-plugin-electron) ![NPM](https://img.shields.io/npm/l/@tomjs/vite-plugin-electron) [![Docs](https://img.shields.io/badge/API-unpkg-orange)](https://www.unpkg.com/browse/@tomjs/vite-plugin-electron/dist/index.d.ts)
[![npm](https://img.shields.io/npm/v/@tomjs/vite-plugin-electron)](https://www.npmjs.com/package/@tomjs/vite-plugin-electron) ![node-current (scoped)](https://img.shields.io/node/v/@tomjs/vite-plugin-electron) ![NPM](https://img.shields.io/npm/l/@tomjs/vite-plugin-electron) [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@tomjs/vite-plugin-electron)

[English](./README.md) | **中文**

Expand Down Expand Up @@ -213,7 +213,7 @@ export default defineConfig({

### MainOptions

继承自 [tsup](https://tsup.egoist.dev/)[Options](https://paka.dev/npm/tsup),添加了一些默认值,方便使用。
继承自 [tsup](https://tsup.egoist.dev/)[Options](https://www.jsdocs.io/package/tsup),添加了一些默认值,方便使用。

| 参数名 | 类型 | 默认值 | 说明 |
| --- | --- | --- | --- |
Expand All @@ -224,7 +224,7 @@ export default defineConfig({

### PreloadOptions

继承自 [tsup](https://tsup.egoist.dev/)[Options](https://paka.dev/npm/tsup),添加了一些默认值,方便使用。
继承自 [tsup](https://tsup.egoist.dev/)[Options](https://www.jsdocs.io/package/tsup),添加了一些默认值,方便使用。

| 参数名 | 类型 | 默认值 | 说明 |
| --- | --- | --- | --- |
Expand Down
2 changes: 1 addition & 1 deletion examples/react/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module.exports = {
node: true,
es6: true,
},
extends: [require.resolve('@tomjs/eslint/react/typescript')],
extends: [require.resolve('@tomjs/eslint/react')],
};
19 changes: 9 additions & 10 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,22 @@
"preview": "vite preview"
},
"dependencies": {
"@tomjs/electron-devtools-installer": "^2.0.5",
"@tomjs/electron-devtools-installer": "^2.3.2",
"fs-extra": "^11.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"simple-git": "^3.21.0"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@tomjs/vite-plugin-electron": "workspace:^",
"@types/fs-extra": "^11.0.4",
"@types/node": "^18.19.3",
"@types/node": "^18.19.42",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react-swc": "^3.5.0",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"cross-env": "^7.0.3",
"electron": "^28.0.0",
"typescript": "~5.3.3",
"vite": "^5.0.10",
"electron": "^31.3.1",
"typescript": "~5.5.4",
"vite": "^5.3.5",
"vite-plugin-electron-renderer": "^0.14.5"
}
}
6 changes: 3 additions & 3 deletions examples/react/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { defineConfig } from 'vite';
import renderer from 'vite-plugin-electron-renderer';
import electron from '@tomjs/vite-plugin-electron';
import react from '@vitejs/plugin-react-swc';
import { defineConfig } from 'vite';
import renderer from 'vite-plugin-electron-renderer';

export default defineConfig({
plugins: [
react(),
electron({
external: ['fs-extra', 'simple-git'],
external: ['fs-extra'],
}),
renderer(),
],
Expand Down
2 changes: 1 addition & 1 deletion examples/vue/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module.exports = {
node: true,
es6: true,
},
extends: [require.resolve('@tomjs/eslint/vue/typescript')],
extends: [require.resolve('@tomjs/eslint/vue')],
};
18 changes: 9 additions & 9 deletions examples/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
"preview": "vite preview"
},
"dependencies": {
"@tomjs/electron-devtools-installer": "^2.0.5",
"vue": "^3.3.13"
"@tomjs/electron-devtools-installer": "^2.3.2",
"vue": "^3.4.35"
},
"devDependencies": {
"@tomjs/vite-plugin-electron": "workspace:^",
"@types/node": "^18.19.3",
"@vitejs/plugin-vue": "^4.5.2",
"@types/node": "^18.19.42",
"@vitejs/plugin-vue": "^5.1.2",
"cross-env": "^7.0.3",
"electron": "^28.0.0",
"electron-builder": "^24.9.1",
"typescript": "~5.3.3",
"vite": "^5.0.7",
"electron": "^31.3.1",
"electron-builder": "^24.13.3",
"typescript": "~5.5.4",
"vite": "^5.3.5",
"vite-plugin-electron-renderer": "^0.14.5",
"vue-tsc": "^1.8.25"
"vue-tsc": "^2.0.29"
}
}
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@
"lint:eslint": "eslint \"{src,examples}/**/*.{js,cjs,ts,tsx,vue}\" *.{js,cjs,ts} --fix --cache",
"lint:stylelint": "stylelint \"examples/**/*.{css,scss,less,vue,html}\" --fix --cache",
"lint:prettier": "prettier --write .",
"prepare": "husky install",
"prepare": "husky",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"dayjs": "^1.11.10",
"dayjs": "^1.11.12",
"kolorist": "^1.8.0",
"lodash.clonedeep": "^4.5.0",
"lodash.merge": "^4.6.2",
Expand All @@ -65,25 +65,25 @@
"tsup": "7.2.0"
},
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@tomjs/commitlint": "^2.1.1",
"@tomjs/eslint": "^1.2.1",
"@tomjs/prettier": "^1.1.1",
"@tomjs/stylelint": "^2.1.1",
"@tomjs/tsconfig": "^1.2.1",
"@commitlint/cli": "^19.3.0",
"@tomjs/commitlint": "^3.3.0",
"@tomjs/eslint": "^3.3.0",
"@tomjs/prettier": "^1.4.1",
"@tomjs/stylelint": "^2.6.1",
"@tomjs/tsconfig": "^1.7.1",
"@types/lodash.clonedeep": "^4.5.9",
"@types/lodash.merge": "^4.6.9",
"@types/node": "^18.19.3",
"@types/node": "^18.19.42",
"@types/shelljs": "^0.8.15",
"eslint": "^8.56.0",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"eslint": "^8.57.0",
"husky": "^9.1.4",
"lint-staged": "^15.2.7",
"npm-run-all": "^4.1.5",
"prettier": "^3.1.1",
"rimraf": "^5.0.5",
"stylelint": "^16.0.2",
"tsx": "^4.7.0",
"typescript": "~5.3.3"
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"stylelint": "^16.8.1",
"tsx": "^4.16.5",
"typescript": "~5.5.4"
},
"peerDependencies": {
"electron": ">=12.0.0",
Expand Down
Loading

0 comments on commit 4e27efd

Please sign in to comment.