@vixoniccom/module-packager 2.5.0-dev.28 → 2.5.0-dev.3
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 +17 -14
- package/package.json +21 -21
- package/webpack.config.js +12 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,37 +2,40 @@
|
|
|
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.
|
|
5
|
+
## [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)
|
|
6
6
|
|
|
7
|
-
## [2.5.0-dev.27](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.26...v2.5.0-dev.27) (2021-08-23)
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## [2.5.0-dev.25](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.24...v2.5.0-dev.25) (2021-08-23)
|
|
8
|
+
### Bug Fixes
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
* **release:** root option in clean-webpack-plugin was removed ([c0cecf1](https://gitlab.com/mandomedio/vixonic/module-packager/commit/c0cecf1554c5dccede258eaa19c9ab965516d016))
|
|
14
11
|
|
|
15
|
-
## [2.5.0-dev.
|
|
12
|
+
## [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
13
|
|
|
17
|
-
## [2.5.0-dev.22](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.21...v2.5.0-dev.22) (2021-08-23)
|
|
18
14
|
|
|
19
|
-
|
|
15
|
+
### Bug Fixes
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
* **release:** CleanWebpackPlugin import was fixed ([9aa3363](https://gitlab.com/mandomedio/vixonic/module-packager/commit/9aa33639b02fd127bb323c7199e98e98b61c3459))
|
|
22
18
|
|
|
23
|
-
## [2.5.0-dev.
|
|
19
|
+
## [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)
|
|
24
20
|
|
|
25
21
|
|
|
26
22
|
### Bug Fixes
|
|
27
23
|
|
|
28
|
-
* **release:**
|
|
24
|
+
* **release:** CopyWebpackPlugin options were updated in webpack config ([35b8178](https://gitlab.com/mandomedio/vixonic/module-packager/commit/35b8178fd5b7dc4366774989d75b1fad41703a14))
|
|
25
|
+
|
|
26
|
+
## [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)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* **release:** modules and module-controller were upgrated to dev versions ([b7590f7](https://gitlab.com/mandomedio/vixonic/module-packager/commit/b7590f79415341076fd1200e373016b61bd0f3cc))
|
|
29
32
|
|
|
30
|
-
|
|
33
|
+
### [2.4.3-dev.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.4.2...v2.4.3-dev.0) (2021-08-19)
|
|
31
34
|
|
|
32
35
|
|
|
33
36
|
### Bug Fixes
|
|
34
37
|
|
|
35
|
-
* **release:** electron
|
|
38
|
+
* **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))
|
|
36
39
|
|
|
37
40
|
<a name="2.4.2"></a>
|
|
38
41
|
## 2.4.2 (2019-07-11)
|
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.1",
|
|
54
|
+
"@vixoniccom/module-controller": "^1.2.2-dev.1",
|
|
55
55
|
"@vixoniccom/modules": "^2.12.0-dev.2",
|
|
56
|
-
"archiver": "^
|
|
57
|
-
"awesome-typescript-loader": "^
|
|
58
|
-
"babel-core": "^6.
|
|
59
|
-
"babel-loader": "^
|
|
56
|
+
"archiver": "^5.3.0",
|
|
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.
|
|
64
|
-
"cli-color": "^
|
|
65
|
-
"command-line-args": "^
|
|
66
|
-
"copy-webpack-plugin": "^
|
|
67
|
-
"css-loader": "^
|
|
68
|
-
"electron": "^
|
|
63
|
+
"clean-webpack-plugin": "^4.0.0-alpha.0",
|
|
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": "^
|
|
71
|
-
"html-loader": "^
|
|
72
|
-
"html-webpack-plugin": "^
|
|
70
|
+
"file-loader": "^6.2.0",
|
|
71
|
+
"html-loader": "^2.1.2",
|
|
72
|
+
"html-webpack-plugin": "^5.3.2",
|
|
73
73
|
"json-loader": "^0.5.4",
|
|
74
74
|
"lodash": "^4.17.21",
|
|
75
|
-
"node-sass": "^
|
|
76
|
-
"raw-loader": "^0.
|
|
77
|
-
"sass-loader": "^
|
|
78
|
-
"style-loader": "^
|
|
75
|
+
"node-sass": "^6.0.1",
|
|
76
|
+
"raw-loader": "^4.0.2",
|
|
77
|
+
"sass-loader": "^12.1.0",
|
|
78
|
+
"style-loader": "^3.2.1",
|
|
79
79
|
"ts-node": "^10.2.1",
|
|
80
80
|
"typescript": "^4.3.5",
|
|
81
|
-
"webpack": "^
|
|
82
|
-
"webpack-dev-server": "^
|
|
81
|
+
"webpack": "^5.51.1",
|
|
82
|
+
"webpack-dev-server": "^4.0.0"
|
|
83
83
|
},
|
|
84
84
|
"directories": {},
|
|
85
85
|
"dist": {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"release": "standard-version",
|
|
102
102
|
"prerelease-dev": "standard-version --prerelease dev"
|
|
103
103
|
},
|
|
104
|
-
"version": "2.5.0-dev.
|
|
104
|
+
"version": "2.5.0-dev.3",
|
|
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')
|
|
@@ -25,7 +25,7 @@ module.exports = (options) => {
|
|
|
25
25
|
context: __dirname,
|
|
26
26
|
entry: ['babel-polyfill', path.resolve(options.src, 'main')],
|
|
27
27
|
output: {
|
|
28
|
-
path: path.resolve(options.build),
|
|
28
|
+
path: path.resolve(options.build, '..'),
|
|
29
29
|
filename: 'main.js'
|
|
30
30
|
},
|
|
31
31
|
node: {
|
|
@@ -99,7 +99,14 @@ module.exports = (options) => {
|
|
|
99
99
|
callback()
|
|
100
100
|
},
|
|
101
101
|
plugins: [
|
|
102
|
-
new CopyWebpackPlugin(
|
|
102
|
+
new CopyWebpackPlugin(
|
|
103
|
+
{
|
|
104
|
+
patterns: [{ from: path.resolve(options.src, 'static'), to: 'static/' }]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
copyUnmodified: true
|
|
108
|
+
}
|
|
109
|
+
),
|
|
103
110
|
new HtmlWebpackPlugin({
|
|
104
111
|
inject: 'head',
|
|
105
112
|
template: path.resolve(options.src, 'index.html')
|
|
@@ -123,7 +130,7 @@ module.exports = (options) => {
|
|
|
123
130
|
|
|
124
131
|
if (options.mode === 'watch') {
|
|
125
132
|
config.entry.unshift(`webpack-dev-server/client?http://localhost:${options.port}/`, 'webpack/hot/dev-server', path.resolve(options.src, 'index.html'))
|
|
126
|
-
config.plugins.unshift(new CopyWebpackPlugin([{ from: path.resolve(options.src, 'test'), to: 'test/' }], { copyUnmodified: true }))
|
|
133
|
+
config.plugins.unshift(new CopyWebpackPlugin({ patterns: [{ from: path.resolve(options.src, 'test'), to: 'test/' }] }, { copyUnmodified: true }))
|
|
127
134
|
config.plugins.unshift(new webpack.HotModuleReplacementPlugin())
|
|
128
135
|
config.output.publicPath = `http://localhost:${options.port}/`
|
|
129
136
|
config.devtool = 'source-map'
|
|
@@ -135,7 +142,6 @@ module.exports = (options) => {
|
|
|
135
142
|
} else {
|
|
136
143
|
config.plugins.unshift(
|
|
137
144
|
new CleanWebpackPlugin([path.basename(options.build), path.basename(options.build) + '.zip'], {
|
|
138
|
-
root: path.resolve(options.build, '..'),
|
|
139
145
|
verbose: false
|
|
140
146
|
}),
|
|
141
147
|
new webpack.DefinePlugin({
|
|
@@ -154,7 +160,7 @@ module.exports = (options) => {
|
|
|
154
160
|
)
|
|
155
161
|
|
|
156
162
|
if (options.mode === 'run') {
|
|
157
|
-
config.plugins.unshift(new CopyWebpackPlugin([{ from: path.resolve(options.src, 'test'), to: 'test/' }], { copyUnmodified: true }))
|
|
163
|
+
config.plugins.unshift(new CopyWebpackPlugin({ patterns: [{ from: path.resolve(options.src, 'test'), to: 'test/' }] }, { copyUnmodified: true }))
|
|
158
164
|
}
|
|
159
165
|
}
|
|
160
166
|
|