@vixoniccom/module-packager 2.10.0-test.1 → 2.10.0-test.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/electron.js +11 -7
- package/main.js +9 -9
- package/package.json +3 -3
- package/tsconfig.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.10.0-test.2](https://bitbucket.org/vixonic_dev/module-packager/compare/v2.10.0-test.1...v2.10.0-test.2) (2024-06-11)
|
|
6
|
+
|
|
5
7
|
## [2.10.0-test.1](https://bitbucket.org/vixonic_dev/module-packager/compare/v2.10.0-test.0...v2.10.0-test.1) (2024-06-11)
|
|
6
8
|
|
|
7
9
|
## [2.10.0-test.0](https://bitbucket.org/vixonic_dev/module-packager/compare/v2.9.1...v2.10.0-test.0) (2024-06-11)
|
package/electron.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use strict'
|
|
2
|
-
|
|
3
|
-
import path from 'path'
|
|
4
|
-
import debug from 'electron-debug'
|
|
5
|
-
import commandLineArgs from 'command-line-args'
|
|
2
|
+
const { app, BrowserWindow } = require('electron')
|
|
6
3
|
|
|
7
4
|
let mainWindow = null
|
|
8
5
|
|
|
6
|
+
const path = require('path')
|
|
7
|
+
const commandLineArgs = require('command-line-args')
|
|
9
8
|
const optionDefinitions = [
|
|
10
9
|
{ name: 'externals', type: String, defaultValue: [], multiple: true },
|
|
11
10
|
{ name: 'src', type: String, defaultValue: '../../src' },
|
|
@@ -16,9 +15,13 @@ const optionDefinitions = [
|
|
|
16
15
|
]
|
|
17
16
|
const options = commandLineArgs(optionDefinitions)
|
|
18
17
|
|
|
19
|
-
if (options.mode === 'watch')
|
|
18
|
+
if (options.mode === 'watch') {
|
|
19
|
+
require('electron-debug')()
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
app.on('window-all-closed', () =>
|
|
22
|
+
app.on('window-all-closed', () => {
|
|
23
|
+
app.quit()
|
|
24
|
+
})
|
|
22
25
|
|
|
23
26
|
app.on('ready', () => {
|
|
24
27
|
mainWindow = new BrowserWindow({
|
|
@@ -31,7 +34,8 @@ app.on('ready', () => {
|
|
|
31
34
|
plugins: true,
|
|
32
35
|
webSecurity: false,
|
|
33
36
|
enableRemoteModule: true,
|
|
34
|
-
webviewTag: true
|
|
37
|
+
webviewTag: true,
|
|
38
|
+
contextIsolation: false
|
|
35
39
|
}
|
|
36
40
|
})
|
|
37
41
|
|
package/main.js
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
'use strict'
|
|
4
|
-
|
|
5
|
-
import webpack from 'webpack'
|
|
6
|
-
import { exec } from 'child_process'
|
|
7
|
-
import { fs } from 'fs'
|
|
8
|
-
import archiver from 'archiver'
|
|
9
|
-
import clc from 'cli-color'
|
|
10
|
-
import commandLineArgs from 'command-line-args'
|
|
11
|
-
const WebpackDevServer = require('webpack-dev-server')
|
|
12
|
-
|
|
4
|
+
const commandLineArgs = require('command-line-args')
|
|
13
5
|
const optionDefinitions = [
|
|
14
6
|
{ name: 'externals', type: String, defaultValue: [], multiple: true },
|
|
15
7
|
{ name: 'target', type: String, defaultValue: 'web' },
|
|
@@ -23,6 +15,14 @@ const optionDefinitions = [
|
|
|
23
15
|
{ name: 'tsOverride', type: Boolean }
|
|
24
16
|
]
|
|
25
17
|
const options = commandLineArgs(optionDefinitions)
|
|
18
|
+
const path = require('path')
|
|
19
|
+
const webpack = require('webpack')
|
|
20
|
+
const WebpackDevServer = require('webpack-dev-server')
|
|
21
|
+
const { exec } = require('child_process')
|
|
22
|
+
const fs = require('fs')
|
|
23
|
+
const archiver = require('archiver')
|
|
24
|
+
const clc = require('cli-color')
|
|
25
|
+
|
|
26
26
|
var pjson = require('./package.json')
|
|
27
27
|
console.log(`VIXONIC PACKAGER: Version ${pjson.version}`)
|
|
28
28
|
|
package/package.json
CHANGED
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"command-line-args": "^3.0.1",
|
|
65
65
|
"copy-webpack-plugin": "^4.6.0",
|
|
66
66
|
"css-loader": "^0.24.0",
|
|
67
|
-
"electron": "^
|
|
68
|
-
"electron-debug": "
|
|
67
|
+
"electron": "^12.2.3",
|
|
68
|
+
"electron-debug": "3.2",
|
|
69
69
|
"file-loader": "^0.9.0",
|
|
70
70
|
"html-loader": "^0.4.3",
|
|
71
71
|
"html-webpack-plugin": "^4.5.2",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"prerelease-test": "standard-version --prerelease test",
|
|
103
103
|
"release": "standard-version"
|
|
104
104
|
},
|
|
105
|
-
"version": "2.10.0-test.
|
|
105
|
+
"version": "2.10.0-test.2",
|
|
106
106
|
"license": "ISC",
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"standard-version": "^9.3.1"
|