@vixoniccom/module-packager 2.5.0-dev.4 → 2.5.0-dev.41

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 CHANGED
@@ -2,47 +2,36 @@
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-dev.4](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.3...v2.5.0-dev.4) (2021-08-20)
5
+ ## [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)
6
6
 
7
+ ## [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)
7
8
 
8
- ### Bug Fixes
9
-
10
- * **release:** clean-webpack-plugin version was revert ([a2c8424](https://gitlab.com/mandomedio/vixonic/module-packager/commit/a2c842476cb106cc8ed9f923eaa9e7aed7293e39))
11
-
12
- ## [2.5.0-dev.3](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.2...v2.5.0-dev.3) (2021-08-20)
9
+ ## [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)
13
10
 
14
11
 
15
12
  ### Bug Fixes
16
13
 
17
- * **release:** root option in clean-webpack-plugin was removed ([c0cecf1](https://gitlab.com/mandomedio/vixonic/module-packager/commit/c0cecf1554c5dccede258eaa19c9ab965516d016))
14
+ * **release:** webpreferences were added in webview tag ([20fd01c](https://gitlab.com/mandomedio/vixonic/module-packager/commit/20fd01c1c04ae79d5241320f62a3333e387ad271))
18
15
 
19
- ## [2.5.0-dev.2](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.1...v2.5.0-dev.2) (2021-08-20)
16
+ ## [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)
20
17
 
21
18
 
22
19
  ### Bug Fixes
23
20
 
24
- * **release:** CleanWebpackPlugin import was fixed ([9aa3363](https://gitlab.com/mandomedio/vixonic/module-packager/commit/9aa33639b02fd127bb323c7199e98e98b61c3459))
21
+ * **release:** webpreferences electron were added in browserWindow ([415e1b7](https://gitlab.com/mandomedio/vixonic/module-packager/commit/415e1b7129c9f77a5d84b90a7822025ae77a5e4b))
25
22
 
26
- ## [2.5.0-dev.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.0...v2.5.0-dev.1) (2021-08-20)
23
+ ## [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)
27
24
 
28
25
 
29
26
  ### Bug Fixes
30
27
 
31
- * **release:** CopyWebpackPlugin options were updated in webpack config ([35b8178](https://gitlab.com/mandomedio/vixonic/module-packager/commit/35b8178fd5b7dc4366774989d75b1fad41703a14))
32
-
33
- ## [2.5.0-dev.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.4.3-dev.0...v2.5.0-dev.0) (2021-08-19)
34
-
28
+ * **release:** nodeintegration was added to webview tag ([763d5db](https://gitlab.com/mandomedio/vixonic/module-packager/commit/763d5db5947a6640c40afe5858d9904357b6abd5))
35
29
 
36
- ### Features
37
-
38
- * **release:** modules and module-controller were upgrated to dev versions ([b7590f7](https://gitlab.com/mandomedio/vixonic/module-packager/commit/b7590f79415341076fd1200e373016b61bd0f3cc))
39
-
40
- ### [2.4.3-dev.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.4.2...v2.4.3-dev.0) (2021-08-19)
30
+ ## [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)
41
31
 
32
+ ## [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)
42
33
 
43
- ### Bug Fixes
44
-
45
- * **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))
34
+ ## [2.5.0-dev.31](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.4.2...v2.5.0-dev.31) (2021-08-23)
46
35
 
47
36
  <a name="2.4.2"></a>
48
37
  ## 2.4.2 (2019-07-11)
package/electron.js CHANGED
@@ -28,8 +28,12 @@ app.on('ready', () => {
28
28
  show: false,
29
29
  width: 600,
30
30
  height: 400,
31
+ plugins: true,
31
32
  webPreferences: {
32
- webSecurity: false
33
+ nodeIntegration: true,
34
+ plugins: true,
35
+ webSecurity: false,
36
+ webviewTag: true
33
37
  }
34
38
  })
35
39
 
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 nodeintegration plugins disablewebsecurity></webview>
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,35 +51,35 @@
51
51
  "vixonic-module-packager": "main.js"
52
52
  },
53
53
  "dependencies": {
54
- "@vixoniccom/module-controller": "^1.2.2-dev.1",
54
+ "@vixoniccom/module-controller": "^1.2.2-dev.10",
55
55
  "@vixoniccom/modules": "^2.12.0-dev.2",
56
- "archiver": "^5.3.0",
57
- "awesome-typescript-loader": "^5.2.1",
58
- "babel-core": "^6.26.3",
59
- "babel-loader": "^8.2.2",
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": "^1.0.1",
64
- "cli-color": "^2.0.0",
65
- "command-line-args": "^5.2.0",
66
- "copy-webpack-plugin": "^9.0.1",
67
- "css-loader": "^6.2.0",
68
- "electron": "^13.2.1",
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": "^8.5.5",
69
69
  "electron-debug": "^3.2.0",
70
- "file-loader": "^6.2.0",
71
- "html-loader": "^2.1.2",
72
- "html-webpack-plugin": "^5.3.2",
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": "^6.0.1",
76
- "raw-loader": "^4.0.2",
77
- "sass-loader": "^12.1.0",
78
- "style-loader": "^3.2.1",
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
- "webpack": "^5.51.1",
82
- "webpack-dev-server": "^4.0.0"
81
+ "webpack": "^2.6.1",
82
+ "webpack-dev-server": "^1.15.1"
83
83
  },
84
84
  "directories": {},
85
85
  "dist": {
@@ -98,10 +98,10 @@
98
98
  "readme": "ERROR: No README data found!",
99
99
  "scripts": {
100
100
  "start": "electron",
101
- "release": "standard-version",
102
- "prerelease-dev": "standard-version --prerelease dev"
101
+ "prerelease-dev": "standard-version --prerelease dev",
102
+ "release": "standard-version"
103
103
  },
104
- "version": "2.5.0-dev.4",
104
+ "version": "2.5.0-dev.41",
105
105
  "devDependencies": {
106
106
  "standard-version": "^9.3.1"
107
107
  }
package/webpack.config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- const { CleanWebpackPlugin } = require('clean-webpack-plugin')
3
+ const CleanWebpackPlugin = require('clean-webpack-plugin')
4
4
  const CopyWebpackPlugin = require('copy-webpack-plugin')
5
5
  const HtmlWebpackPlugin = require('html-webpack-plugin')
6
6
  const webpack = require('webpack')
@@ -99,14 +99,7 @@ module.exports = (options) => {
99
99
  callback()
100
100
  },
101
101
  plugins: [
102
- new CopyWebpackPlugin(
103
- {
104
- patterns: [{ from: path.resolve(options.src, 'static'), to: 'static/' }]
105
- },
106
- {
107
- copyUnmodified: true
108
- }
109
- ),
102
+ new CopyWebpackPlugin([{ from: path.resolve(options.src, 'static'), to: 'static/' }], { copyUnmodified: true }),
110
103
  new HtmlWebpackPlugin({
111
104
  inject: 'head',
112
105
  template: path.resolve(options.src, 'index.html')
@@ -130,7 +123,7 @@ module.exports = (options) => {
130
123
 
131
124
  if (options.mode === 'watch') {
132
125
  config.entry.unshift(`webpack-dev-server/client?http://localhost:${options.port}/`, 'webpack/hot/dev-server', path.resolve(options.src, 'index.html'))
133
- config.plugins.unshift(new CopyWebpackPlugin({ patterns: [{ from: path.resolve(options.src, 'test'), to: 'test/' }] }, { copyUnmodified: true }))
126
+ config.plugins.unshift(new CopyWebpackPlugin([{ from: path.resolve(options.src, 'test'), to: 'test/' }], { copyUnmodified: true }))
134
127
  config.plugins.unshift(new webpack.HotModuleReplacementPlugin())
135
128
  config.output.publicPath = `http://localhost:${options.port}/`
136
129
  config.devtool = 'source-map'
@@ -161,7 +154,7 @@ module.exports = (options) => {
161
154
  )
162
155
 
163
156
  if (options.mode === 'run') {
164
- config.plugins.unshift(new CopyWebpackPlugin({ patterns: [{ from: path.resolve(options.src, 'test'), to: 'test/' }] }, { copyUnmodified: true }))
157
+ config.plugins.unshift(new CopyWebpackPlugin([{ from: path.resolve(options.src, 'test'), to: 'test/' }], { copyUnmodified: true }))
165
158
  }
166
159
  }
167
160