Skip to content

Commit

Permalink
Update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiyozz committed Jul 4, 2023
1 parent a1f6904 commit 3b512d8
Show file tree
Hide file tree
Showing 35 changed files with 127 additions and 99 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts
18.15.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electron-esbuild-monorepo",
"version": "6.0.0-rc1",
"version": "8.0.0",
"description": "Use esbuild/vite with Electron for blazing fast compilation",
"repository": "https://github.com/Kiyozz/electron-esbuild",
"author": {
Expand Down
7 changes: 7 additions & 0 deletions packages/create-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 8.0.0

### Breaking Changes

- require [email protected] to be synchronized with [email protected]
- support for [email protected] ([#53](https://github.com/Kiyozz/electron-esbuild/pull/53), thanks to [@jonluca](https://github.com/jonluca))

## v4.0.1

### Breaking Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/create-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@electron-esbuild/create-app",
"version": "4.0.1",
"version": "8.0.0",
"keywords": [
"electron",
"react",
Expand All @@ -22,7 +22,7 @@
},
"exports": "./dist/index.mjs",
"engines": {
"node": "^14.18 || >=16.0.0"
"node": ">=18.15.0"
},
"scripts": {
"build": "ee 'src/**' --format esm --sourcemap --clean-outdir --outdir dist --target node16",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const config: BuildOptions = {
path.resolve('src/main/preload.ts'),
],
bundle: true,
target: 'node16.15.0', // electron version target
target: 'node18.15.0', // electron version target
}

export default config
14 changes: 7 additions & 7 deletions packages/create-app/templates/main-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"package": "electron-builder"
},
"devDependencies": {
"@types/node": "18.x",
"electron": "24.x",
"electron-builder": "23.x",
"electron-esbuild": "^7.0.0",
"electron-util": "0.17.x",
"esbuild": "0.17.x",
"typescript": "5.0.x"
"@types/node": "^18.16.19",
"electron": "^25.2.0",
"electron-builder": "^24.4.0",
"electron-esbuild": "^8.0.0",
"electron-util": "^0.17.2",
"esbuild": "^0.18.11",
"typescript": "^5.1.6"
},
"build": {
"appId": "io.comp.myapp",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/templates/main/esbuild.main.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export default {
path.resolve('src/main/preload.js'),
],
bundle: true,
target: 'node16.15.0', // electron version target
target: 'node18.15.0', // electron version target
}
10 changes: 5 additions & 5 deletions packages/create-app/templates/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"package": "electron-builder"
},
"devDependencies": {
"electron": "24.x",
"electron-builder": "23.x",
"electron-esbuild": "^7.0.0",
"electron-util": "0.17.x",
"esbuild": "0.17.x"
"electron": "^25.2.0",
"electron-builder": "^24.4.0",
"electron-esbuild": "^8.0.0",
"electron-util": "^0.17.2",
"esbuild": "^0.18.11"
},
"build": {
"appId": "io.comp.myapp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const config: BuildOptions = {
path.resolve('src/main/preload.ts'),
],
bundle: true,
target: 'node16.15.0', // electron version target
target: 'node18.15.0', // electron version target
}

export default config
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const config: BuildOptions = {
path.resolve('src/renderer/index.css'),
],
bundle: true,
target: 'chrome108', // electron version target
target: 'chrome114', // electron version target
}

export default config
22 changes: 11 additions & 11 deletions packages/create-app/templates/react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
"package": "electron-builder"
},
"devDependencies": {
"@types/node": "18.x",
"@types/react": "18.x",
"@types/react-dom": "18.x",
"electron": "24.x",
"electron-builder": "23.x",
"electron-esbuild": "^7.0.0",
"electron-util": "0.17.x",
"esbuild": "0.17.x",
"react": "18.x",
"react-dom": "18.x",
"typescript": "5.0.x"
"@types/node": "^18.16.19",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"electron": "^25.2.0",
"electron-builder": "^24.4.0",
"electron-esbuild": "^8.0.0",
"electron-util": "^0.17.2",
"esbuild": "^0.18.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.1.6"
},
"build": {
"appId": "io.comp.myapp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const config: BuildOptions = {
path.resolve('src/main/preload.ts'),
],
bundle: true,
target: 'node16.15.0', // electron version target
target: 'node18.15.0', // electron version target
}

export default config
26 changes: 13 additions & 13 deletions packages/create-app/templates/react-vite-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
"package": "electron-builder"
},
"devDependencies": {
"@types/node": "18.x",
"@types/react": "18.x",
"@types/react-dom": "18.x",
"@vitejs/plugin-react": "3.x",
"electron": "24.x",
"electron-builder": "23.x",
"electron-esbuild": "^7.0.0",
"electron-util": "0.17.x",
"esbuild": "0.17.x",
"react": "18.x",
"react-dom": "18.x",
"typescript": "5.0.x",
"vite": "4.x"
"@types/node": "^18.16.19",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@vitejs/plugin-react": "^4.0.1",
"electron": "^25.2.0",
"electron-builder": "^24.4.0",
"electron-esbuild": "^8.0.0",
"electron-util": "^0.17.2",
"esbuild": "^0.18.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.1.6",
"vite": "^4.3.9"
},
"build": {
"appId": "io.comp.myapp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
build: {
target: 'chrome108', // electron version target
target: 'chrome114', // electron version target
},
server: {
port: 9080,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export default {
path.resolve('src/main/preload.js'),
],
bundle: true,
target: 'node16.15.0', // electron version target
target: 'node18.15.0', // electron version target
}
18 changes: 9 additions & 9 deletions packages/create-app/templates/react-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"package": "electron-builder"
},
"devDependencies": {
"@vitejs/plugin-react": "3.x",
"electron": "24.x",
"electron-builder": "23.x",
"electron-esbuild": "^7.0.0",
"electron-util": "0.17.x",
"esbuild": "0.17.x",
"react": "18.x",
"react-dom": "18.x",
"vite": "4.x"
"@vitejs/plugin-react": "^4.0.1",
"electron": "^25.2.0",
"electron-builder": "^24.4.0",
"electron-esbuild": "^8.0.0",
"electron-util": "^0.17.2",
"esbuild": "^0.18.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"vite": "^4.3.9"
},
"build": {
"appId": "io.comp.myapp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
build: {
target: 'chrome108', // electron version target
target: 'chrome114', // electron version target
},
server: {
port: 9080,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export default {
path.resolve('src/renderer/index.css'),
],
bundle: true,
target: 'chrome108', // electron version target
target: 'chrome114', // electron version target
}
14 changes: 7 additions & 7 deletions packages/create-app/templates/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"package": "electron-builder"
},
"devDependencies": {
"electron": "24.x",
"electron-builder": "23.x",
"electron-esbuild": "^7.0.0",
"electron-util": "0.17.x",
"esbuild": "0.17.x",
"react": "18.x",
"react-dom": "18.x"
"electron": "^25.2.0",
"electron-builder": "^24.4.0",
"electron-esbuild": "^8.0.0",
"electron-util": "^0.17.2",
"esbuild": "^0.18.11",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"build": {
"appId": "io.comp.myapp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const config: BuildOptions = {
path.resolve('src/main/preload.ts'),
],
bundle: true,
target: 'node16.15.0', // electron version target
target: 'node18.15.0', // electron version target
}

export default config
22 changes: 11 additions & 11 deletions packages/create-app/templates/svelte-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
"package": "electron-builder"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "2.x",
"@types/node": "18.x",
"electron": "24.x",
"electron-builder": "23.x",
"electron-esbuild": "^7.0.0",
"electron-util": "0.17.x",
"esbuild": "0.17.x",
"svelte": "3.x",
"svelte-preprocess": "5.x",
"typescript": "5.0.x",
"vite": "4.x"
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"@types/node": "^18.16.19",
"electron": "^25.2.0",
"electron-builder": "^24.4.0",
"electron-esbuild": "^8.0.0",
"electron-util": "^0.17.2",
"esbuild": "^0.18.11",
"svelte": "^4.0.3",
"svelte-preprocess": "^5.0.4",
"typescript": "^5.1.6",
"vite": "^4.3.9"
},
"build": {
"appId": "io.comp.myapp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import sveltePreprocess from 'svelte-preprocess'
export default defineConfig({
plugins: [svelte({ preprocess: sveltePreprocess() })],
build: {
target: 'chrome108', // electron version target
target: 'chrome114', // electron version target
},
server: {
port: 9080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export default {
path.resolve('src/main/preload.js'),
],
bundle: true,
target: 'node16.15.0', // electron version target
target: 'node18.15.0', // electron version target
}
18 changes: 9 additions & 9 deletions packages/create-app/templates/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"package": "electron-builder"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "2.x",
"electron": "24.x",
"electron-builder": "23.x",
"electron-esbuild": "^7.0.0",
"electron-util": "0.17.x",
"esbuild": "0.17.x",
"svelte": "3.x",
"svelte-preprocess": "5.x",
"vite": "4.x"
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"electron": "^25.2.0",
"electron-builder": "^24.4.0",
"electron-esbuild": "^8.0.0",
"electron-util": "^0.17.2",
"esbuild": "^0.18.11",
"svelte": "^4.0.3",
"svelte-preprocess": "^5.0.4",
"vite": "^4.3.9"
},
"build": {
"appId": "io.comp.myapp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import sveltePreprocess from 'svelte-preprocess'
export default defineConfig({
plugins: [svelte({ preprocess: sveltePreprocess() })],
build: {
target: 'chrome108', // electron version target
target: 'chrome114', // electron version target
},
server: {
port: 9080
Expand Down
6 changes: 6 additions & 0 deletions packages/ee/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.5.0

### Breaking changes

- require [email protected]

## v0.4.0

### Breaking changes
Expand Down
3 changes: 2 additions & 1 deletion packages/ee/dist/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { build as esbuildBuild } from "esbuild";
import glob from "fast-glob";
import { bgCyan, bgGreen, bgRed, black, cyan, green, red } from "kolorist";
import { platform } from "node:os";
import path from "node:path";
import * as path from "node:path";
import * as process from "node:process";
import { rimraf } from "rimraf";
const clean = async (path2) => {
await rimraf(path2);
Expand Down
Loading

0 comments on commit 3b512d8

Please sign in to comment.