@vixoniccom/module-packager 2.5.0-dev.13 → 2.5.0-dev.15

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,85 +2,12 @@
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.13](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.12...v2.5.0-dev.13) (2021-08-20)
6
-
7
- ## [2.5.0-dev.12](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.11...v2.5.0-dev.12) (2021-08-20)
8
-
9
-
10
- ### Bug Fixes
11
-
12
- * **release:** clean webpack plugin was upgrated ([c4a5103](https://gitlab.com/mandomedio/vixonic/module-packager/commit/c4a51030b9dc9402b183cd9cab1e15c41b510855))
13
-
14
- ## [2.5.0-dev.11](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.10...v2.5.0-dev.11) (2021-08-20)
15
-
16
- ## [2.5.0-dev.10](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.9...v2.5.0-dev.10) (2021-08-20)
17
-
18
- ## [2.5.0-dev.9](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.8...v2.5.0-dev.9) (2021-08-20)
19
-
20
-
21
- ### Bug Fixes
22
-
23
- * **release:** UglifyJsPlugin configuration was updated (again) ([768c8fa](https://gitlab.com/mandomedio/vixonic/module-packager/commit/768c8fa901079d6dc385778bbe2e6978d574fb65))
24
-
25
- ## [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)
26
-
27
- ## [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)
28
-
29
-
30
- ### Bug Fixes
31
-
32
- * **release:** UglifyJsPlugin config was updated ([799da0d](https://gitlab.com/mandomedio/vixonic/module-packager/commit/799da0da127b73e7442489b27f271c3548ef1476))
33
-
34
- ## [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)
35
-
36
- ## [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)
37
-
38
-
39
- ### Bug Fixes
40
-
41
- * **release:** import clean-webpack-plugin was revert ([d9a7b87](https://gitlab.com/mandomedio/vixonic/module-packager/commit/d9a7b87c8265a175d2296ec0c2b586a530b2c624))
42
-
43
- ## [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)
44
-
45
-
46
- ### Bug Fixes
47
-
48
- * **release:** clean-webpack-plugin version was revert ([a2c8424](https://gitlab.com/mandomedio/vixonic/module-packager/commit/a2c842476cb106cc8ed9f923eaa9e7aed7293e39))
49
-
50
- ## [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)
51
-
52
-
53
- ### Bug Fixes
54
-
55
- * **release:** root option in clean-webpack-plugin was removed ([c0cecf1](https://gitlab.com/mandomedio/vixonic/module-packager/commit/c0cecf1554c5dccede258eaa19c9ab965516d016))
56
-
57
- ## [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)
58
-
59
-
60
- ### Bug Fixes
61
-
62
- * **release:** CleanWebpackPlugin import was fixed ([9aa3363](https://gitlab.com/mandomedio/vixonic/module-packager/commit/9aa33639b02fd127bb323c7199e98e98b61c3459))
63
-
64
- ## [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)
65
-
66
-
67
- ### Bug Fixes
68
-
69
- * **release:** CopyWebpackPlugin options were updated in webpack config ([35b8178](https://gitlab.com/mandomedio/vixonic/module-packager/commit/35b8178fd5b7dc4366774989d75b1fad41703a14))
70
-
71
- ## [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)
5
+ ## [2.5.0-dev.15](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.4.2...v2.5.0-dev.15) (2021-08-20)
72
6
 
73
7
 
74
8
  ### Features
75
9
 
76
- * **release:** modules and module-controller were upgrated to dev versions ([b7590f7](https://gitlab.com/mandomedio/vixonic/module-packager/commit/b7590f79415341076fd1200e373016b61bd0f3cc))
77
-
78
- ### [2.4.3-dev.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.4.2...v2.4.3-dev.0) (2021-08-19)
79
-
80
-
81
- ### Bug Fixes
82
-
83
- * **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))
10
+ * **release:** typescript, electron and vixoniccom packages were upgrated ([092ce64](https://gitlab.com/mandomedio/vixonic/module-packager/commit/092ce6411fd92e7862d5b7fe44b088d32b0553ba))
84
11
 
85
12
  <a name="2.4.2"></a>
86
13
  ## 2.4.2 (2019-07-11)
package/package.json CHANGED
@@ -53,34 +53,33 @@
53
53
  "dependencies": {
54
54
  "@vixoniccom/module-controller": "^1.2.2-dev.1",
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": "^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",
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
68
  "electron": "^13.2.1",
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
- "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",
74
+ "lodash": "^4.17.4",
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
- "uglifyjs-webpack-plugin": "^2.2.0",
82
- "webpack": "^5.51.1",
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": {
@@ -102,7 +101,7 @@
102
101
  "release": "standard-version",
103
102
  "prerelease-dev": "standard-version --prerelease dev"
104
103
  },
105
- "version": "2.5.0-dev.13",
104
+ "version": "2.5.0-dev.15",
106
105
  "devDependencies": {
107
106
  "standard-version": "^9.3.1"
108
107
  }
package/webpack.config.js CHANGED
@@ -1,7 +1,6 @@
1
1
  'use strict'
2
2
 
3
- const { CleanWebpackPlugin } = require('clean-webpack-plugin')
4
- const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
3
+ const CleanWebpackPlugin = require('clean-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,21 +23,18 @@ 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),
31
29
  filename: 'main.js'
32
30
  },
33
31
  node: {
34
- __dirname: options.mode === 'watch'
32
+ __dirname: options.mode === 'watch',
33
+ fs: 'empty',
34
+ net: 'empty',
35
+ tls: 'empty'
35
36
  },
36
37
  resolve: {
37
- fallback: {
38
- fs: false,
39
- net: false,
40
- tls: false
41
- },
42
38
  extensions: ['.ts', '.tsx', '.js', '.jsx'],
43
39
  modules: [
44
40
  'node_modules',
@@ -47,7 +43,7 @@ module.exports = (options) => {
47
43
  ]
48
44
  },
49
45
  module: {
50
- rules: [
46
+ loaders: [
51
47
  {
52
48
  test: /\.json$/,
53
49
  exclude: exclude,
@@ -57,13 +53,9 @@ module.exports = (options) => {
57
53
  test: /\.(j|t)sx?$/,
58
54
  include: [path.resolve(options.src)],
59
55
  exclude: exclude,
60
- use: [
56
+ loaders: [
61
57
  {
62
- loader: 'babel-loader',
63
- options: {
64
- babelrc: false,
65
- extends: path.join(__dirname, '/.babelrc')
66
- }
58
+ loader: 'babel-loader?babelrc=false&extends=' + path.join(__dirname, '/.babelrc')
67
59
  },
68
60
  {
69
61
  loader: 'awesome-typescript-loader',
@@ -78,12 +70,12 @@ module.exports = (options) => {
78
70
  {
79
71
  test: /\.scss$/,
80
72
  exclude: exclude,
81
- use: ['style', 'css', 'sass']
73
+ loaders: ['style', 'css', 'sass']
82
74
  },
83
75
  {
84
76
  test: /\.css$/,
85
77
  exclude: exclude,
86
- use: ['style-loader', 'css-loader']
78
+ loader: 'style-loader!css-loader'
87
79
  },
88
80
  {
89
81
  test: /\.(png|jpg|jpeg|gif|svg|woff|woff2|ttf|eot|mp4)$/,
@@ -107,14 +99,7 @@ module.exports = (options) => {
107
99
  callback()
108
100
  },
109
101
  plugins: [
110
- new CopyWebpackPlugin(
111
- {
112
- patterns: [{ from: path.resolve(options.src, 'static'), to: 'static/' }]
113
- },
114
- {
115
- copyUnmodified: true
116
- }
117
- ),
102
+ new CopyWebpackPlugin([{ from: path.resolve(options.src, 'static'), to: 'static/' }], { copyUnmodified: true }),
118
103
  new HtmlWebpackPlugin({
119
104
  inject: 'head',
120
105
  template: path.resolve(options.src, 'index.html')
@@ -138,7 +123,7 @@ module.exports = (options) => {
138
123
 
139
124
  if (options.mode === 'watch') {
140
125
  config.entry.unshift(`webpack-dev-server/client?http://localhost:${options.port}/`, 'webpack/hot/dev-server', path.resolve(options.src, 'index.html'))
141
- 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 }))
142
127
  config.plugins.unshift(new webpack.HotModuleReplacementPlugin())
143
128
  config.output.publicPath = `http://localhost:${options.port}/`
144
129
  config.devtool = 'source-map'
@@ -149,20 +134,27 @@ module.exports = (options) => {
149
134
  }
150
135
  } else {
151
136
  config.plugins.unshift(
152
- new CleanWebpackPlugin([path.basename(options.build), path.basename(options.build) + '.zip']),
137
+ new CleanWebpackPlugin([path.basename(options.build), path.basename(options.build) + '.zip'], {
138
+ root: path.resolve(options.build, '..'),
139
+ verbose: false
140
+ }),
153
141
  new webpack.DefinePlugin({
154
142
  'process.env': {
155
143
  NODE_ENV: JSON.stringify('production')
156
144
  }
145
+ }),
146
+ new webpack.optimize.UglifyJsPlugin({
147
+ compress: {
148
+ warnings: false
149
+ },
150
+ mangle: true,
151
+ minimize: true,
152
+ comments: false
157
153
  })
158
154
  )
159
155
 
160
- config.optimization.minimizer.unshift(
161
- new UglifyJsPlugin({})
162
- )
163
-
164
156
  if (options.mode === 'run') {
165
- 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 }))
166
158
  }
167
159
  }
168
160