@vixoniccom/module-packager 2.7.0-test.8 → 2.7.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 CHANGED
@@ -2,6 +2,71 @@
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.7.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.17...v2.7.0) (2022-07-21)
6
+
7
+ ## [2.7.0-test.17](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.16...v2.7.0-test.17) (2022-07-19)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **release:** json-loader package was removed ([52e59eb](https://gitlab.com/mandomedio/vixonic/module-packager/commit/52e59ebde04e7186433c891adbd53c17348108fd))
13
+
14
+ ## [2.7.0-test.16](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.15...v2.7.0-test.16) (2022-07-19)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **release:** json-loader was added to modules loaders ([55fc98f](https://gitlab.com/mandomedio/vixonic/module-packager/commit/55fc98fb8638b4ea796007345045b4ca3efb7db2))
20
+
21
+ ## [2.7.0-test.15](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.14...v2.7.0-test.15) (2022-07-15)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * **release:** some comments and console.logs were removed ([d717b11](https://gitlab.com/mandomedio/vixonic/module-packager/commit/d717b1177718410498ad60fe933cb28675cd5373))
27
+
28
+ ## [2.7.0-test.14](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.13...v2.7.0-test.14) (2022-07-15)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **reease:** imports changes were reverted ([a449420](https://gitlab.com/mandomedio/vixonic/module-packager/commit/a449420bc9e48695aba99576caa592e209ba33ca))
34
+
35
+ ## [2.7.0-test.13](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.12...v2.7.0-test.13) (2022-07-15)
36
+
37
+
38
+ ### Bug Fixes
39
+
40
+ * **release:** all requires were updated by imports and also new webpack properties were added to the configuration ([d9a73d6](https://gitlab.com/mandomedio/vixonic/module-packager/commit/d9a73d6e7f2ae31cbbdb475a38bd07fa7159e7ca))
41
+
42
+ ## [2.7.0-test.12](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.11...v2.7.0-test.12) (2022-07-15)
43
+
44
+
45
+ ### Bug Fixes
46
+
47
+ * **release:** copy-webpack-plugin was upgrated ([291d1b9](https://gitlab.com/mandomedio/vixonic/module-packager/commit/291d1b9d5dda24a220cf2eabfef6d31059ca3d4f))
48
+
49
+ ## [2.7.0-test.11](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.10...v2.7.0-test.11) (2022-07-15)
50
+
51
+
52
+ ### Bug Fixes
53
+
54
+ * **release:** html-webpack-plugin was updated ([ae99388](https://gitlab.com/mandomedio/vixonic/module-packager/commit/ae99388e82ba7fe16ffca89f2f7cbc842dbb6739))
55
+
56
+ ## [2.7.0-test.10](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.9...v2.7.0-test.10) (2022-07-15)
57
+
58
+
59
+ ### Bug Fixes
60
+
61
+ * **release:** exclude variable was updated ([a40d017](https://gitlab.com/mandomedio/vixonic/module-packager/commit/a40d017ad5744ecfae966e5e60edeaaa167a2265))
62
+
63
+ ## [2.7.0-test.9](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.8...v2.7.0-test.9) (2022-07-15)
64
+
65
+
66
+ ### Bug Fixes
67
+
68
+ * **release:** __dirname was removed ([cad88bb](https://gitlab.com/mandomedio/vixonic/module-packager/commit/cad88bba27d41590fdecab04dddf511dc9fb1df1))
69
+
5
70
  ## [2.7.0-test.8](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.7...v2.7.0-test.8) (2022-07-15)
6
71
 
7
72
 
package/package.json CHANGED
@@ -62,14 +62,13 @@
62
62
  "clean-webpack-plugin": "^0.1.10",
63
63
  "cli-color": "^1.2.0",
64
64
  "command-line-args": "^3.0.1",
65
- "copy-webpack-plugin": "^3.0.1",
65
+ "copy-webpack-plugin": "^4.6.0",
66
66
  "css-loader": "^0.24.0",
67
67
  "electron": "^11.4.12",
68
68
  "electron-debug": "^3.2.0",
69
69
  "file-loader": "^0.9.0",
70
70
  "html-loader": "^0.4.3",
71
- "html-webpack-plugin": "^2.22.0",
72
- "json-loader": "^0.5.4",
71
+ "html-webpack-plugin": "^4.5.2",
73
72
  "lodash": "^4.17.21",
74
73
  "node-sass": "^6.0.1",
75
74
  "raw-loader": "^0.5.1",
@@ -104,7 +103,7 @@
104
103
  "prerelease-test": "standard-version --prerelease test",
105
104
  "release": "standard-version"
106
105
  },
107
- "version": "2.7.0-test.8",
106
+ "version": "2.7.0",
108
107
  "devDependencies": {
109
108
  "standard-version": "^9.3.1"
110
109
  }
package/webpack.config.js CHANGED
@@ -7,30 +7,26 @@ const webpack = require('webpack')
7
7
  const path = require('path')
8
8
  const _ = require('lodash')
9
9
  const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
10
- const fs = require('fs')
11
10
 
12
11
  module.exports = (options) => {
13
12
  if (options.target === 'web') {
14
13
  options.externals = [...(options.externals || []), 'electron']
15
14
  }
16
15
 
17
- // let tsconfigPath = fs.existsSync(path.join(options.src, '..', 'tsconfig.json')) ? path.join(options.src, '..', 'tsconfig.json') : path.join(__dirname, 'tsconfig.json')
18
- // const typescriptPath = path.join(options.src, '..', 'node_modules', 'typescript', '/')
19
- // const typescript = fs.existsSync(typescriptPath) ? path.join(__dirname, path.relative(__dirname, typescriptPath), '/') : 'typescript'
16
+ let exclude = [path.resolve(options.src, 'static'), path.resolve(options.src, 'test')]
20
17
 
21
- let exclude = options.mode === 'watch'
22
- ? [path.join(__dirname, options.src, 'static'), path.join(__dirname, options.src, 'test')]
23
- : [path.resolve(__dirname, options.src, 'static'), path.resolve(__dirname, options.src, 'test')]
24
-
25
- console.log('exclude ', exclude)
26
- console.log('Options: ', options, options.src)
27
18
  let config = {
19
+ mode: 'production',
28
20
  context: __dirname,
29
21
  entry: ['babel-polyfill', path.resolve(options.src, 'main')],
30
22
  output: {
31
23
  path: path.resolve(options.build),
32
24
  filename: 'main.js'
33
25
  },
26
+ performance: {
27
+ maxAssetSize: 1000000,
28
+ maxEntrypointSize: 1000000
29
+ },
34
30
  node: {
35
31
  __dirname: options.mode === 'watch',
36
32
  fs: 'empty',
@@ -47,11 +43,6 @@ module.exports = (options) => {
47
43
  },
48
44
  module: {
49
45
  rules: [
50
- {
51
- test: /\.json$/,
52
- exclude: exclude,
53
- loader: 'json-loader'
54
- },
55
46
  {
56
47
  test: /\.(j|t)sx?$/,
57
48
  include: [path.resolve(options.src)],