@vixoniccom/module-packager 2.8.1-dev.0 → 2.8.1-dev.1

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,7 +2,147 @@
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.8.1-dev.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.6.3-dev.0...v2.8.1-dev.0) (2022-07-18)
5
+ ### [2.8.1-dev.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0...v2.8.1-dev.1) (2022-07-21)
6
+
7
+ ## [2.8.1-dev.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.6.3-dev.0...v2.8.1-dev.0) (2022-07-18)
8
+
9
+ ## [2.7.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.17...v2.7.0) (2022-07-21)
10
+
11
+ ## [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)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **release:** json-loader package was removed ([52e59eb](https://gitlab.com/mandomedio/vixonic/module-packager/commit/52e59ebde04e7186433c891adbd53c17348108fd))
17
+
18
+ ## [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)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **release:** json-loader was added to modules loaders ([55fc98f](https://gitlab.com/mandomedio/vixonic/module-packager/commit/55fc98fb8638b4ea796007345045b4ca3efb7db2))
24
+
25
+ ## [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)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **release:** some comments and console.logs were removed ([d717b11](https://gitlab.com/mandomedio/vixonic/module-packager/commit/d717b1177718410498ad60fe933cb28675cd5373))
31
+
32
+ ## [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)
33
+
34
+
35
+ ### Bug Fixes
36
+
37
+ * **reease:** imports changes were reverted ([a449420](https://gitlab.com/mandomedio/vixonic/module-packager/commit/a449420bc9e48695aba99576caa592e209ba33ca))
38
+
39
+ ## [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)
40
+
41
+
42
+ ### Bug Fixes
43
+
44
+ * **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))
45
+
46
+ ## [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)
47
+
48
+
49
+ ### Bug Fixes
50
+
51
+ * **release:** copy-webpack-plugin was upgrated ([291d1b9](https://gitlab.com/mandomedio/vixonic/module-packager/commit/291d1b9d5dda24a220cf2eabfef6d31059ca3d4f))
52
+
53
+ ## [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)
54
+
55
+
56
+ ### Bug Fixes
57
+
58
+ * **release:** html-webpack-plugin was updated ([ae99388](https://gitlab.com/mandomedio/vixonic/module-packager/commit/ae99388e82ba7fe16ffca89f2f7cbc842dbb6739))
59
+
60
+ ## [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)
61
+
62
+
63
+ ### Bug Fixes
64
+
65
+ * **release:** exclude variable was updated ([a40d017](https://gitlab.com/mandomedio/vixonic/module-packager/commit/a40d017ad5744ecfae966e5e60edeaaa167a2265))
66
+
67
+ ## [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)
68
+
69
+
70
+ ### Bug Fixes
71
+
72
+ * **release:** __dirname was removed ([cad88bb](https://gitlab.com/mandomedio/vixonic/module-packager/commit/cad88bba27d41590fdecab04dddf511dc9fb1df1))
73
+
74
+ ## [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)
75
+
76
+
77
+ ### Bug Fixes
78
+
79
+ * **release:** exclude variable was updated ([6eca779](https://gitlab.com/mandomedio/vixonic/module-packager/commit/6eca7795b42e32e84afeffe74a98bb7e4b970dd1))
80
+
81
+ ## [2.7.0-test.7](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.6...v2.7.0-test.7) (2022-07-15)
82
+
83
+
84
+ ### Bug Fixes
85
+
86
+ * **Release:** revert __dirname changes ([bb25fe1](https://gitlab.com/mandomedio/vixonic/module-packager/commit/bb25fe10ed9a9368c145530aecdc91f539877a26))
87
+
88
+ ## [2.7.0-test.6](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.5...v2.7.0-test.6) (2022-07-15)
89
+
90
+
91
+ ### Bug Fixes
92
+
93
+ * **release:** contentBase porperty was removed ([8b364cc](https://gitlab.com/mandomedio/vixonic/module-packager/commit/8b364cc84298210491844856564ada198c356561))
94
+
95
+ ## [2.7.0-test.5](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.4...v2.7.0-test.5) (2022-07-15)
96
+
97
+
98
+ ### Bug Fixes
99
+
100
+ * **Release:** default value of config in options variable was reverted ([9c75fac](https://gitlab.com/mandomedio/vixonic/module-packager/commit/9c75fac9c189bfe5a7857c9a5f68ef50dcc3cc6b))
101
+
102
+ ## [2.7.0-test.4](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.3...v2.7.0-test.4) (2022-07-15)
103
+
104
+
105
+ ### Bug Fixes
106
+
107
+ * **release:** __dirname was added to path resolves and joins ([7312c9a](https://gitlab.com/mandomedio/vixonic/module-packager/commit/7312c9a316c4039dd63c979754d97733c6159a90))
108
+
109
+ ## [2.7.0-test.3](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.2...v2.7.0-test.3) (2022-07-15)
110
+
111
+ ## [2.7.0-test.2](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.1...v2.7.0-test.2) (2022-07-15)
112
+
113
+
114
+ ### Bug Fixes
115
+
116
+ * **Release:** ts-node and ts-loader versions were changed ([e108c3f](https://gitlab.com/mandomedio/vixonic/module-packager/commit/e108c3f4e1983ed59d932cfc5db0754a6500088a))
117
+
118
+ ## [2.7.0-test.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.0...v2.7.0-test.1) (2022-07-15)
119
+
120
+
121
+ ### Bug Fixes
122
+
123
+ * **release:** loaders module was changed by rules in webpack config ([5de2994](https://gitlab.com/mandomedio/vixonic/module-packager/commit/5de29944e6f1bb7e634bf9d6c1a0acb5b7c10ae5))
124
+
125
+ ## [2.7.0-test.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-dev.2...v2.7.0-test.0) (2022-07-15)
126
+
127
+ ## [2.7.0-dev.2](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-dev.1...v2.7.0-dev.2) (2022-07-15)
128
+
129
+
130
+ ### Features
131
+
132
+ * **release:** awesome-typescript-loader was replaced by ts-loader ([f0829ec](https://gitlab.com/mandomedio/vixonic/module-packager/commit/f0829ecd7640232be95ea029bd415ca9bfb83e10))
133
+
134
+ ## [2.7.0-dev.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.6.2...v2.7.0-dev.1) (2022-07-15)
135
+
136
+
137
+ ### Features
138
+
139
+ * **release:** a new vixoniccom/modules was added to the project ([d2cb117](https://gitlab.com/mandomedio/vixonic/module-packager/commit/d2cb117eb368391a1c4307602fd18741655943c6))
140
+
141
+ ## [2.7.0-dev.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.6.1...v2.7.0-dev.0) (2022-06-16)
142
+
143
+ ### Features
144
+
145
+ * **release:** a new vixoniccom/modules was added to the project ([0f4e503](https://gitlab.com/mandomedio/vixonic/module-packager/commit/0f4e50326d8c8e2582347f690705bc4ecb619c5a))
6
146
 
7
147
  ### [2.6.3-dev.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.6.2...v2.6.3-dev.0) (2022-07-13)
8
148
 
@@ -42,8 +182,6 @@ All notable changes to this project will be documented in this file. See [standa
42
182
 
43
183
  ### Bug Fixes
44
184
 
45
- * **Release:** typescript was upgrated to the last version - 4.7.3 ([43fb1e3](https://gitlab.com/mandomedio/vixonic/module-packager/commit/43fb1e375e9c3ffb8e79384ab67cb74957d9ea8a))
46
-
47
185
  ### [2.6.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.6.1-dev.0...v2.6.1) (2022-05-16)
48
186
 
49
187
  ### [2.6.1-dev.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.6.0...v2.6.1-dev.0) (2022-04-07)
package/main.js CHANGED
@@ -114,7 +114,7 @@ function zip (callback) {
114
114
 
115
115
  function watch () {
116
116
  var server = new WebpackDevServer(webpack(require(options.config)(options)), {
117
- contentBase: path.join(__dirname, options.src, '..')
117
+ static: path.join(__dirname, options.src, '..')
118
118
  })
119
119
  server.listen(options.port)
120
120
 
package/package.json CHANGED
@@ -54,7 +54,6 @@
54
54
  "@vixoniccom/module-controller": "^1.2.2",
55
55
  "@vixoniccom/modules": "^2.15.1-dev.0",
56
56
  "archiver": "^5.3.0",
57
- "awesome-typescript-loader": "^4.0.1",
58
57
  "babel-core": "^6.14.0",
59
58
  "babel-loader": "^6.2.5",
60
59
  "babel-polyfill": "^6.26.0",
@@ -63,24 +62,24 @@
63
62
  "clean-webpack-plugin": "^0.1.10",
64
63
  "cli-color": "^1.2.0",
65
64
  "command-line-args": "^3.0.1",
66
- "copy-webpack-plugin": "^3.0.1",
65
+ "copy-webpack-plugin": "^4.6.0",
67
66
  "css-loader": "^0.24.0",
68
67
  "electron": "^11.4.12",
69
68
  "electron-debug": "^3.2.0",
70
69
  "file-loader": "^0.9.0",
71
70
  "html-loader": "^0.4.3",
72
- "html-webpack-plugin": "^2.22.0",
73
- "json-loader": "^0.5.4",
71
+ "html-webpack-plugin": "^4.5.2",
74
72
  "lodash": "^4.17.21",
75
73
  "node-sass": "^6.0.1",
76
74
  "raw-loader": "^0.5.1",
77
75
  "sass-loader": "^4.0.2",
78
76
  "style-loader": "^0.13.1",
79
- "ts-node": "^10.8.1",
77
+ "ts-loader": "^8.2.0",
78
+ "ts-node": "^10.9.1",
80
79
  "typescript": "^4.7.3",
81
80
  "uglifyjs-webpack-plugin": "^1.3.0",
82
- "webpack": "^3.12.0",
83
- "webpack-dev-server": "^2.11.5"
81
+ "webpack": "^4.46.0",
82
+ "webpack-dev-server": "^4.9.3"
84
83
  },
85
84
  "directories": {},
86
85
  "dist": {
@@ -103,7 +102,7 @@
103
102
  "prerelease-test": "standard-version --prerelease test",
104
103
  "release": "standard-version"
105
104
  },
106
- "version": "2.8.1-dev.0",
105
+ "version": "2.8.1-dev.1",
107
106
  "devDependencies": {
108
107
  "standard-version": "^9.3.1"
109
108
  }
package/webpack.config.js CHANGED
@@ -7,28 +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'
20
-
21
- let exclude = options.mode === 'watch'
22
- ? [path.join(options.src, 'static'), path.join(options.src, 'test')]
23
- : [path.resolve(options.src, 'static'), path.resolve(options.src, 'test')]
16
+ let exclude = [path.resolve(options.src, 'static'), path.resolve(options.src, 'test')]
24
17
 
25
18
  let config = {
19
+ mode: 'production',
26
20
  context: __dirname,
27
21
  entry: ['babel-polyfill', path.resolve(options.src, 'main')],
28
22
  output: {
29
23
  path: path.resolve(options.build),
30
24
  filename: 'main.js'
31
25
  },
26
+ performance: {
27
+ maxAssetSize: 1000000,
28
+ maxEntrypointSize: 1000000
29
+ },
32
30
  node: {
33
31
  __dirname: options.mode === 'watch',
34
32
  fs: 'empty',
@@ -44,26 +42,19 @@ module.exports = (options) => {
44
42
  ]
45
43
  },
46
44
  module: {
47
- loaders: [
48
- {
49
- test: /\.json$/,
50
- exclude: exclude,
51
- loader: 'json-loader'
52
- },
45
+ rules: [
53
46
  {
54
47
  test: /\.(j|t)sx?$/,
55
48
  include: [path.resolve(options.src)],
56
49
  exclude: exclude,
57
- loaders: [
50
+ rules: [
58
51
  {
59
52
  loader: 'babel-loader?babelrc=false&extends=' + path.join(__dirname, '/.babelrc')
60
53
  },
61
54
  {
62
- loader: 'awesome-typescript-loader',
55
+ loader: 'ts-loader',
63
56
  options: {
64
- configFileName: tsconfigPath,
65
- transpileOnly: options.transpileOnly,
66
- compiler: typescript
57
+ transpileOnly: options.transpileOnly
67
58
  }
68
59
  }
69
60
  ]
@@ -89,7 +80,7 @@ module.exports = (options) => {
89
80
  }
90
81
  ]
91
82
  },
92
- externals: (context, request, callback) => {
83
+ externals: (_context, request, callback) => {
93
84
  if (_.indexOf(options.externals, request) !== -1) {
94
85
  if (options.mode !== 'watch' || request === 'electron') {
95
86
  return callback(null, "require('" + request + "')")
@@ -129,7 +120,7 @@ module.exports = (options) => {
129
120
  config.output.publicPath = `http://localhost:${options.port}/`
130
121
  config.devtool = 'source-map'
131
122
  config.devServer = {
132
- contentBase: path.resolve(options.src),
123
+ static: path.resolve(options.src),
133
124
  publicPath: `http://localhost:${options.port}/`,
134
125
  inline: true
135
126
  }