@vixoniccom/module-packager 2.5.0-dev.60 → 2.5.0-dev.8

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,101 +2,65 @@
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.60](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.59...v2.5.0-dev.60) (2021-08-25)
5
+ ## [2.5.0-dev.8](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.7...v2.5.0-dev.8) (2021-08-20)
6
6
 
7
-
8
- ### Bug Fixes
9
-
10
- * **release:** html-webpack-plugin now was declarated as dependency in package json ([28ea700](https://gitlab.com/mandomedio/vixonic/module-packager/commit/28ea700ad33a4628b2404e17d6b63fe78289f23a))
11
-
12
- ## [2.5.0-dev.59](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.58...v2.5.0-dev.59) (2021-08-25)
7
+ ## [2.5.0-dev.7](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.6...v2.5.0-dev.7) (2021-08-20)
13
8
 
14
9
 
15
10
  ### Bug Fixes
16
11
 
17
- * **release:** html-webpack-plugin was added ([02dd08f](https://gitlab.com/mandomedio/vixonic/module-packager/commit/02dd08fa20c416a01bef901218af6308a5456595))
18
-
19
- ## [2.5.0-dev.58](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.57...v2.5.0-dev.58) (2021-08-25)
20
-
12
+ * **release:** UglifyJsPlugin config was updated ([799da0d](https://gitlab.com/mandomedio/vixonic/module-packager/commit/799da0da127b73e7442489b27f271c3548ef1476))
21
13
 
22
- ### Bug Fixes
23
-
24
- * **release:** some loader dependencies were upgrated ([4d70e07](https://gitlab.com/mandomedio/vixonic/module-packager/commit/4d70e07e44dcf1bd2ab551db6bbebec5d61c3700))
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)
25
15
 
26
- ## [2.5.0-dev.57](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.56...v2.5.0-dev.57) (2021-08-25)
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)
27
17
 
28
18
 
29
19
  ### Bug Fixes
30
20
 
31
- * **release:** some webpack dependencies were upgrated and also webpack config file was modified ([d376e59](https://gitlab.com/mandomedio/vixonic/module-packager/commit/d376e598ca313e6aa86c61a9680ed55238983e13))
21
+ * **release:** import clean-webpack-plugin was revert ([d9a7b87](https://gitlab.com/mandomedio/vixonic/module-packager/commit/d9a7b87c8265a175d2296ec0c2b586a530b2c624))
32
22
 
33
- ## [2.5.0-dev.56](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.55...v2.5.0-dev.56) (2021-08-25)
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)
34
24
 
35
25
 
36
26
  ### Bug Fixes
37
27
 
38
- * **release:** webpack-dev-server was reverted to v2 and webpack was upgrated to v4 and terser plugin was implemented ([8c28d54](https://gitlab.com/mandomedio/vixonic/module-packager/commit/8c28d545973f069db2a62ff8edf25848f15ff721))
39
-
40
- ## [2.5.0-dev.55](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.54...v2.5.0-dev.55) (2021-08-25)
41
-
42
- ## [2.5.0-dev.54](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.53...v2.5.0-dev.54) (2021-08-25)
43
-
44
- ## [2.5.0-dev.53](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-rc.1...v2.5.0-dev.53) (2021-08-25)
45
-
46
- ## [2.5.0-rc.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.49...v2.5.0-rc.1) (2021-08-24)
28
+ * **release:** clean-webpack-plugin version was revert ([a2c8424](https://gitlab.com/mandomedio/vixonic/module-packager/commit/a2c842476cb106cc8ed9f923eaa9e7aed7293e39))
47
29
 
48
- ## [2.5.0-dev.49](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.48...v2.5.0-dev.49) (2021-08-24)
30
+ ## [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)
49
31
 
50
32
 
51
33
  ### Bug Fixes
52
34
 
53
- * **release:** revert copy-wapack-plugin version ([a563590](https://gitlab.com/mandomedio/vixonic/module-packager/commit/a563590477d5c9a1d16c8ab237124c854ffa8884))
35
+ * **release:** root option in clean-webpack-plugin was removed ([c0cecf1](https://gitlab.com/mandomedio/vixonic/module-packager/commit/c0cecf1554c5dccede258eaa19c9ab965516d016))
54
36
 
55
- ## [2.5.0-dev.48](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-rc.0...v2.5.0-dev.48) (2021-08-24)
56
-
57
- ## [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)
58
-
59
- ## [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)
60
-
61
- ## [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)
37
+ ## [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)
62
38
 
63
39
 
64
40
  ### Bug Fixes
65
41
 
66
- * **release:** enableRemoteModule was added to webPreferences in Browser window ([a716409](https://gitlab.com/mandomedio/vixonic/module-packager/commit/a7164091e883c6d12f8442a79cba8b1c0571219d))
67
-
68
- ## [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)
69
-
70
- ## [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)
71
-
72
- ## [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)
42
+ * **release:** CleanWebpackPlugin import was fixed ([9aa3363](https://gitlab.com/mandomedio/vixonic/module-packager/commit/9aa33639b02fd127bb323c7199e98e98b61c3459))
73
43
 
74
- ## [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)
44
+ ## [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)
75
45
 
76
46
 
77
47
  ### Bug Fixes
78
48
 
79
- * **release:** webpreferences were added in webview tag ([20fd01c](https://gitlab.com/mandomedio/vixonic/module-packager/commit/20fd01c1c04ae79d5241320f62a3333e387ad271))
49
+ * **release:** CopyWebpackPlugin options were updated in webpack config ([35b8178](https://gitlab.com/mandomedio/vixonic/module-packager/commit/35b8178fd5b7dc4366774989d75b1fad41703a14))
80
50
 
81
- ## [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)
51
+ ## [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)
82
52
 
83
53
 
84
- ### Bug Fixes
54
+ ### Features
85
55
 
86
- * **release:** webpreferences electron were added in browserWindow ([415e1b7](https://gitlab.com/mandomedio/vixonic/module-packager/commit/415e1b7129c9f77a5d84b90a7822025ae77a5e4b))
56
+ * **release:** modules and module-controller were upgrated to dev versions ([b7590f7](https://gitlab.com/mandomedio/vixonic/module-packager/commit/b7590f79415341076fd1200e373016b61bd0f3cc))
87
57
 
88
- ## [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)
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)
89
59
 
90
60
 
91
61
  ### Bug Fixes
92
62
 
93
- * **release:** nodeintegration was added to webview tag ([763d5db](https://gitlab.com/mandomedio/vixonic/module-packager/commit/763d5db5947a6640c40afe5858d9904357b6abd5))
94
-
95
- ## [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)
96
-
97
- ## [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)
98
-
99
- ## [2.5.0-dev.31](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.4.2...v2.5.0-dev.31) (2021-08-23)
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))
100
64
 
101
65
  <a name="2.4.2"></a>
102
66
  ## 2.4.2 (2019-07-11)
package/electron.js CHANGED
@@ -28,13 +28,8 @@ app.on('ready', () => {
28
28
  show: false,
29
29
  width: 600,
30
30
  height: 400,
31
- plugins: true,
32
31
  webPreferences: {
33
- nodeIntegration: true,
34
- plugins: true,
35
- webSecurity: false,
36
- enableRemoteModule: true,
37
- webviewTag: true
32
+ webSecurity: false
38
33
  }
39
34
  })
40
35
 
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" nodeintegration autosize plugins disablewebsecurity></webview>
7
+ <webview style="width: 100%; height: 100%; margin: 0; padding: 0;" id="webview" autosize nodeintegration 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,34 +51,36 @@
51
51
  "vixonic-module-packager": "main.js"
52
52
  },
53
53
  "dependencies": {
54
- "@vixoniccom/module-controller": "^1.2.2-rc.0",
55
- "@vixoniccom/modules": "^2.12.0-rc.0",
54
+ "@vixoniccom/module-controller": "^1.2.2-dev.1",
55
+ "@vixoniccom/modules": "^2.12.0-dev.2",
56
56
  "archiver": "^5.3.0",
57
- "awesome-typescript-loader": "^3.2.3",
58
- "babel-core": "^6.14.0",
59
- "babel-loader": "^6.2.5",
57
+ "awesome-typescript-loader": "^5.2.1",
58
+ "babel-core": "^6.26.3",
59
+ "babel-loader": "^8.2.2",
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": "^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": "^1.0.1",
68
- "electron": "^11.4.12",
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",
69
69
  "electron-debug": "^3.2.0",
70
- "file-loader": "^4.3.0",
71
- "html-loader": "^1.3.2",
72
- "html-webpack-plugin": "^4.5.2",
70
+ "file-loader": "^6.2.0",
71
+ "html-loader": "^2.1.2",
72
+ "html-webpack-plugin": "^5.3.2",
73
+ "json-loader": "^0.5.4",
73
74
  "lodash": "^4.17.21",
74
75
  "node-sass": "^6.0.1",
75
- "raw-loader": "^0.5.1",
76
- "sass-loader": "^4.0.2",
77
- "style-loader": "^1.3.0",
76
+ "raw-loader": "^4.0.2",
77
+ "sass-loader": "^12.1.0",
78
+ "style-loader": "^3.2.1",
78
79
  "ts-node": "^10.2.1",
79
80
  "typescript": "^4.3.5",
80
- "webpack": "^4.46.0",
81
- "webpack-dev-server": "^2.11.5"
81
+ "uglifyjs-webpack-plugin": "^2.2.0",
82
+ "webpack": "^5.51.1",
83
+ "webpack-dev-server": "^4.0.0"
82
84
  },
83
85
  "directories": {},
84
86
  "dist": {
@@ -97,13 +99,11 @@
97
99
  "readme": "ERROR: No README data found!",
98
100
  "scripts": {
99
101
  "start": "electron",
100
- "prerelease-dev": "standard-version --prerelease dev",
101
- "prerelease-rc": "standard-version --prerelease rc",
102
- "release": "standard-version"
102
+ "release": "standard-version",
103
+ "prerelease-dev": "standard-version --prerelease dev"
103
104
  },
104
- "version": "2.5.0-dev.60",
105
+ "version": "2.5.0-dev.8",
105
106
  "devDependencies": {
106
- "standard-version": "^9.3.1",
107
- "terser-webpack-plugin": "^5.1.4"
107
+ "standard-version": "^9.3.1"
108
108
  }
109
109
  }
package/webpack.config.js CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict'
2
2
 
3
3
  const CleanWebpackPlugin = require('clean-webpack-plugin')
4
+ const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
4
5
  const CopyWebpackPlugin = require('copy-webpack-plugin')
5
- const TerserPlugin = require("terser-webpack-plugin")
6
6
  const HtmlWebpackPlugin = require('html-webpack-plugin')
7
7
  const webpack = require('webpack')
8
8
  const path = require('path')
@@ -24,15 +24,12 @@ module.exports = (options) => {
24
24
 
25
25
  let config = {
26
26
  context: __dirname,
27
+ optimization: { minimizer: [] },
27
28
  entry: ['babel-polyfill', path.resolve(options.src, 'main')],
28
29
  output: {
29
30
  path: path.resolve(options.build),
30
31
  filename: 'main.js'
31
32
  },
32
- optimization: {
33
- minimize: false,
34
- minimizer: []
35
- },
36
33
  node: {
37
34
  __dirname: options.mode === 'watch',
38
35
  fs: 'empty',
@@ -48,7 +45,7 @@ module.exports = (options) => {
48
45
  ]
49
46
  },
50
47
  module: {
51
- rules: [
48
+ loaders: [
52
49
  {
53
50
  test: /\.json$/,
54
51
  exclude: exclude,
@@ -104,7 +101,14 @@ module.exports = (options) => {
104
101
  callback()
105
102
  },
106
103
  plugins: [
107
- new CopyWebpackPlugin([{ from: path.resolve(options.src, 'static'), to: 'static/' }], { copyUnmodified: true }),
104
+ new CopyWebpackPlugin(
105
+ {
106
+ patterns: [{ from: path.resolve(options.src, 'static'), to: 'static/' }]
107
+ },
108
+ {
109
+ copyUnmodified: true
110
+ }
111
+ ),
108
112
  new HtmlWebpackPlugin({
109
113
  inject: 'head',
110
114
  template: path.resolve(options.src, 'index.html')
@@ -128,7 +132,7 @@ module.exports = (options) => {
128
132
 
129
133
  if (options.mode === 'watch') {
130
134
  config.entry.unshift(`webpack-dev-server/client?http://localhost:${options.port}/`, 'webpack/hot/dev-server', path.resolve(options.src, 'index.html'))
131
- config.plugins.unshift(new CopyWebpackPlugin([{ from: path.resolve(options.src, 'test'), to: 'test/' }], { copyUnmodified: true }))
135
+ config.plugins.unshift(new CopyWebpackPlugin({ patterns: [{ from: path.resolve(options.src, 'test'), to: 'test/' }] }, { copyUnmodified: true }))
132
136
  config.plugins.unshift(new webpack.HotModuleReplacementPlugin())
133
137
  config.output.publicPath = `http://localhost:${options.port}/`
134
138
  config.devtool = 'source-map'
@@ -150,21 +154,19 @@ module.exports = (options) => {
150
154
  })
151
155
  )
152
156
 
153
- config.optimization.minimize = true
154
157
  config.optimization.minimizer.unshift(
155
- new TerserPlugin({
156
- terserOptions: {
157
- compress: {},
158
- mangle: true,
159
- output: {
160
- comments: false
161
- }
162
- }
158
+ new UglifyJsPlugin({
159
+ compress: {
160
+ warnings: false
161
+ },
162
+ mangle: true,
163
+ minimize: true,
164
+ comments: false
163
165
  })
164
166
  )
165
167
 
166
168
  if (options.mode === 'run') {
167
- config.plugins.unshift(new CopyWebpackPlugin([{ from: path.resolve(options.src, 'test'), to: 'test/' }], { copyUnmodified: true }))
169
+ config.plugins.unshift(new CopyWebpackPlugin({ patterns: [{ from: path.resolve(options.src, 'test'), to: 'test/' }] }, { copyUnmodified: true }))
168
170
  }
169
171
  }
170
172