@vixoniccom/module-packager 2.5.0-dev.8 → 2.5.0-rc.0
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 +16 -32
- package/electron.js +6 -1
- package/index.html +1 -1
- package/package.json +25 -25
- package/webpack.config.js +5 -17
package/CHANGELOG.md
CHANGED
|
@@ -2,65 +2,49 @@
|
|
|
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.5.0-
|
|
5
|
+
## [2.5.0-rc.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.44...v2.5.0-rc.0) (2021-08-24)
|
|
6
6
|
|
|
7
|
-
## [2.5.0-dev.
|
|
7
|
+
## [2.5.0-dev.44](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.43...v2.5.0-dev.44) (2021-08-23)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
### Bug Fixes
|
|
11
|
-
|
|
12
|
-
* **release:** UglifyJsPlugin config was updated ([799da0d](https://gitlab.com/mandomedio/vixonic/module-packager/commit/799da0da127b73e7442489b27f271c3548ef1476))
|
|
13
|
-
|
|
14
|
-
## [2.5.0-dev.6](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.5...v2.5.0-dev.6) (2021-08-20)
|
|
15
|
-
|
|
16
|
-
## [2.5.0-dev.5](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.4...v2.5.0-dev.5) (2021-08-20)
|
|
9
|
+
## [2.5.0-dev.43](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.42...v2.5.0-dev.43) (2021-08-23)
|
|
17
10
|
|
|
18
11
|
|
|
19
12
|
### Bug Fixes
|
|
20
13
|
|
|
21
|
-
* **release:**
|
|
22
|
-
|
|
23
|
-
## [2.5.0-dev.4](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.3...v2.5.0-dev.4) (2021-08-20)
|
|
14
|
+
* **release:** enableRemoteModule was added to webPreferences in Browser window ([a716409](https://gitlab.com/mandomedio/vixonic/module-packager/commit/a7164091e883c6d12f8442a79cba8b1c0571219d))
|
|
24
15
|
|
|
16
|
+
## [2.5.0-dev.42](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.41...v2.5.0-dev.42) (2021-08-23)
|
|
25
17
|
|
|
26
|
-
|
|
18
|
+
## [2.5.0-dev.41](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.40...v2.5.0-dev.41) (2021-08-23)
|
|
27
19
|
|
|
28
|
-
|
|
20
|
+
## [2.5.0-dev.40](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.39...v2.5.0-dev.40) (2021-08-23)
|
|
29
21
|
|
|
30
|
-
## [2.5.0-dev.
|
|
22
|
+
## [2.5.0-dev.39](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.38...v2.5.0-dev.39) (2021-08-23)
|
|
31
23
|
|
|
32
24
|
|
|
33
25
|
### Bug Fixes
|
|
34
26
|
|
|
35
|
-
* **release:**
|
|
27
|
+
* **release:** webpreferences were added in webview tag ([20fd01c](https://gitlab.com/mandomedio/vixonic/module-packager/commit/20fd01c1c04ae79d5241320f62a3333e387ad271))
|
|
36
28
|
|
|
37
|
-
## [2.5.0-dev.
|
|
29
|
+
## [2.5.0-dev.38](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.37...v2.5.0-dev.38) (2021-08-23)
|
|
38
30
|
|
|
39
31
|
|
|
40
32
|
### Bug Fixes
|
|
41
33
|
|
|
42
|
-
* **release:**
|
|
34
|
+
* **release:** webpreferences electron were added in browserWindow ([415e1b7](https://gitlab.com/mandomedio/vixonic/module-packager/commit/415e1b7129c9f77a5d84b90a7822025ae77a5e4b))
|
|
43
35
|
|
|
44
|
-
## [2.5.0-dev.
|
|
36
|
+
## [2.5.0-dev.37](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.36...v2.5.0-dev.37) (2021-08-23)
|
|
45
37
|
|
|
46
38
|
|
|
47
39
|
### Bug Fixes
|
|
48
40
|
|
|
49
|
-
* **release:**
|
|
41
|
+
* **release:** nodeintegration was added to webview tag ([763d5db](https://gitlab.com/mandomedio/vixonic/module-packager/commit/763d5db5947a6640c40afe5858d9904357b6abd5))
|
|
50
42
|
|
|
51
|
-
## [2.5.0-dev.
|
|
43
|
+
## [2.5.0-dev.36](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.35...v2.5.0-dev.36) (2021-08-23)
|
|
52
44
|
|
|
45
|
+
## [2.5.0-dev.35](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.31...v2.5.0-dev.35) (2021-08-23)
|
|
53
46
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
* **release:** modules and module-controller were upgrated to dev versions ([b7590f7](https://gitlab.com/mandomedio/vixonic/module-packager/commit/b7590f79415341076fd1200e373016b61bd0f3cc))
|
|
57
|
-
|
|
58
|
-
### [2.4.3-dev.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.4.2...v2.4.3-dev.0) (2021-08-19)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
### Bug Fixes
|
|
62
|
-
|
|
63
|
-
* **release:** typescript and electron were upgrated to v4 and also new vixoniccom dependencies versions were applied ([be351e6](https://gitlab.com/mandomedio/vixonic/module-packager/commit/be351e6efd18458180032148c24cd6be4741397f))
|
|
47
|
+
## [2.5.0-dev.31](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.4.2...v2.5.0-dev.31) (2021-08-23)
|
|
64
48
|
|
|
65
49
|
<a name="2.4.2"></a>
|
|
66
50
|
## 2.4.2 (2019-07-11)
|
package/electron.js
CHANGED
|
@@ -28,8 +28,13 @@ app.on('ready', () => {
|
|
|
28
28
|
show: false,
|
|
29
29
|
width: 600,
|
|
30
30
|
height: 400,
|
|
31
|
+
plugins: true,
|
|
31
32
|
webPreferences: {
|
|
32
|
-
|
|
33
|
+
nodeIntegration: true,
|
|
34
|
+
plugins: true,
|
|
35
|
+
webSecurity: false,
|
|
36
|
+
enableRemoteModule: true,
|
|
37
|
+
webviewTag: true
|
|
33
38
|
}
|
|
34
39
|
})
|
|
35
40
|
|
package/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<title></title>
|
|
5
5
|
</head>
|
|
6
6
|
<body style="width: 100%; height: 100%; margin: 0; padding: 0;">
|
|
7
|
-
<webview style="width: 100%; height: 100%; margin: 0; padding: 0;" id="webview" autosize
|
|
7
|
+
<webview style="width: 100%; height: 100%; margin: 0; padding: 0;" id="webview" nodeintegration autosize plugins disablewebsecurity></webview>
|
|
8
8
|
<script type="text/javascript">
|
|
9
9
|
const path = require('path')
|
|
10
10
|
const ModuleController = require('@vixoniccom/module-controller')
|
package/package.json
CHANGED
|
@@ -51,36 +51,35 @@
|
|
|
51
51
|
"vixonic-module-packager": "main.js"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@vixoniccom/module-controller": "^1.2.2-
|
|
55
|
-
"@vixoniccom/modules": "^2.12.0-
|
|
56
|
-
"archiver": "^
|
|
57
|
-
"awesome-typescript-loader": "^
|
|
58
|
-
"babel-core": "^6.
|
|
59
|
-
"babel-loader": "^
|
|
54
|
+
"@vixoniccom/module-controller": "^1.2.2-rc.0",
|
|
55
|
+
"@vixoniccom/modules": "^2.12.0-rc.0",
|
|
56
|
+
"archiver": "^1.3.0",
|
|
57
|
+
"awesome-typescript-loader": "^3.2.3",
|
|
58
|
+
"babel-core": "^6.14.0",
|
|
59
|
+
"babel-loader": "^6.2.5",
|
|
60
60
|
"babel-polyfill": "^6.26.0",
|
|
61
61
|
"babel-preset-env": "^1.7.0",
|
|
62
62
|
"babel-preset-react": "^6.24.1",
|
|
63
|
-
"clean-webpack-plugin": "^
|
|
64
|
-
"cli-color": "^2.0
|
|
65
|
-
"command-line-args": "^
|
|
66
|
-
"copy-webpack-plugin": "^
|
|
67
|
-
"css-loader": "^
|
|
68
|
-
"electron": "^
|
|
63
|
+
"clean-webpack-plugin": "^0.1.10",
|
|
64
|
+
"cli-color": "^1.2.0",
|
|
65
|
+
"command-line-args": "^3.0.1",
|
|
66
|
+
"copy-webpack-plugin": "^3.0.1",
|
|
67
|
+
"css-loader": "^0.24.0",
|
|
68
|
+
"electron": "^11.4.12",
|
|
69
69
|
"electron-debug": "^3.2.0",
|
|
70
|
-
"file-loader": "^
|
|
71
|
-
"html-loader": "^
|
|
72
|
-
"html-webpack-plugin": "^
|
|
70
|
+
"file-loader": "^0.9.0",
|
|
71
|
+
"html-loader": "^0.4.3",
|
|
72
|
+
"html-webpack-plugin": "^2.22.0",
|
|
73
73
|
"json-loader": "^0.5.4",
|
|
74
74
|
"lodash": "^4.17.21",
|
|
75
|
-
"node-sass": "^
|
|
76
|
-
"raw-loader": "^
|
|
77
|
-
"sass-loader": "^
|
|
78
|
-
"style-loader": "^
|
|
75
|
+
"node-sass": "^4.14.1",
|
|
76
|
+
"raw-loader": "^0.5.1",
|
|
77
|
+
"sass-loader": "^4.0.2",
|
|
78
|
+
"style-loader": "^0.13.1",
|
|
79
79
|
"ts-node": "^10.2.1",
|
|
80
80
|
"typescript": "^4.3.5",
|
|
81
|
-
"
|
|
82
|
-
"webpack": "^
|
|
83
|
-
"webpack-dev-server": "^4.0.0"
|
|
81
|
+
"webpack": "^2.6.1",
|
|
82
|
+
"webpack-dev-server": "^1.15.1"
|
|
84
83
|
},
|
|
85
84
|
"directories": {},
|
|
86
85
|
"dist": {
|
|
@@ -99,10 +98,11 @@
|
|
|
99
98
|
"readme": "ERROR: No README data found!",
|
|
100
99
|
"scripts": {
|
|
101
100
|
"start": "electron",
|
|
102
|
-
"
|
|
103
|
-
"prerelease-
|
|
101
|
+
"prerelease-dev": "standard-version --prerelease dev",
|
|
102
|
+
"prerelease-rc": "standard-version --prerelease rc",
|
|
103
|
+
"release": "standard-version"
|
|
104
104
|
},
|
|
105
|
-
"version": "2.5.0-
|
|
105
|
+
"version": "2.5.0-rc.0",
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"standard-version": "^9.3.1"
|
|
108
108
|
}
|
package/webpack.config.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
const CleanWebpackPlugin = require('clean-webpack-plugin')
|
|
4
|
-
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
|
|
5
4
|
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
|
6
5
|
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
7
6
|
const webpack = require('webpack')
|
|
@@ -24,7 +23,6 @@ module.exports = (options) => {
|
|
|
24
23
|
|
|
25
24
|
let config = {
|
|
26
25
|
context: __dirname,
|
|
27
|
-
optimization: { minimizer: [] },
|
|
28
26
|
entry: ['babel-polyfill', path.resolve(options.src, 'main')],
|
|
29
27
|
output: {
|
|
30
28
|
path: path.resolve(options.build),
|
|
@@ -101,14 +99,7 @@ module.exports = (options) => {
|
|
|
101
99
|
callback()
|
|
102
100
|
},
|
|
103
101
|
plugins: [
|
|
104
|
-
new CopyWebpackPlugin(
|
|
105
|
-
{
|
|
106
|
-
patterns: [{ from: path.resolve(options.src, 'static'), to: 'static/' }]
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
copyUnmodified: true
|
|
110
|
-
}
|
|
111
|
-
),
|
|
102
|
+
new CopyWebpackPlugin([{ from: path.resolve(options.src, 'static'), to: 'static/' }], { copyUnmodified: true }),
|
|
112
103
|
new HtmlWebpackPlugin({
|
|
113
104
|
inject: 'head',
|
|
114
105
|
template: path.resolve(options.src, 'index.html')
|
|
@@ -132,7 +123,7 @@ module.exports = (options) => {
|
|
|
132
123
|
|
|
133
124
|
if (options.mode === 'watch') {
|
|
134
125
|
config.entry.unshift(`webpack-dev-server/client?http://localhost:${options.port}/`, 'webpack/hot/dev-server', path.resolve(options.src, 'index.html'))
|
|
135
|
-
config.plugins.unshift(new CopyWebpackPlugin(
|
|
126
|
+
config.plugins.unshift(new CopyWebpackPlugin([{ from: path.resolve(options.src, 'test'), to: 'test/' }], { copyUnmodified: true }))
|
|
136
127
|
config.plugins.unshift(new webpack.HotModuleReplacementPlugin())
|
|
137
128
|
config.output.publicPath = `http://localhost:${options.port}/`
|
|
138
129
|
config.devtool = 'source-map'
|
|
@@ -151,11 +142,8 @@ module.exports = (options) => {
|
|
|
151
142
|
'process.env': {
|
|
152
143
|
NODE_ENV: JSON.stringify('production')
|
|
153
144
|
}
|
|
154
|
-
})
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
config.optimization.minimizer.unshift(
|
|
158
|
-
new UglifyJsPlugin({
|
|
145
|
+
}),
|
|
146
|
+
new webpack.optimize.UglifyJsPlugin({
|
|
159
147
|
compress: {
|
|
160
148
|
warnings: false
|
|
161
149
|
},
|
|
@@ -166,7 +154,7 @@ module.exports = (options) => {
|
|
|
166
154
|
)
|
|
167
155
|
|
|
168
156
|
if (options.mode === 'run') {
|
|
169
|
-
config.plugins.unshift(new CopyWebpackPlugin(
|
|
157
|
+
config.plugins.unshift(new CopyWebpackPlugin([{ from: path.resolve(options.src, 'test'), to: 'test/' }], { copyUnmodified: true }))
|
|
170
158
|
}
|
|
171
159
|
}
|
|
172
160
|
|