@vixoniccom/module-packager 2.8.1-dev.0 → 2.8.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,149 @@
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](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.8.1-dev.1...v2.8.1) (2022-08-10)
6
+
7
+ ### [2.8.1-dev.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0...v2.8.1-dev.1) (2022-07-21)
8
+
9
+ ## [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)
10
+
11
+ ## [2.7.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.17...v2.7.0) (2022-07-21)
12
+
13
+ ## [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)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **release:** json-loader package was removed ([52e59eb](https://gitlab.com/mandomedio/vixonic/module-packager/commit/52e59ebde04e7186433c891adbd53c17348108fd))
19
+
20
+ ## [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)
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * **release:** json-loader was added to modules loaders ([55fc98f](https://gitlab.com/mandomedio/vixonic/module-packager/commit/55fc98fb8638b4ea796007345045b4ca3efb7db2))
26
+
27
+ ## [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)
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * **release:** some comments and console.logs were removed ([d717b11](https://gitlab.com/mandomedio/vixonic/module-packager/commit/d717b1177718410498ad60fe933cb28675cd5373))
33
+
34
+ ## [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)
35
+
36
+
37
+ ### Bug Fixes
38
+
39
+ * **reease:** imports changes were reverted ([a449420](https://gitlab.com/mandomedio/vixonic/module-packager/commit/a449420bc9e48695aba99576caa592e209ba33ca))
40
+
41
+ ## [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)
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * **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))
47
+
48
+ ## [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)
49
+
50
+
51
+ ### Bug Fixes
52
+
53
+ * **release:** copy-webpack-plugin was upgrated ([291d1b9](https://gitlab.com/mandomedio/vixonic/module-packager/commit/291d1b9d5dda24a220cf2eabfef6d31059ca3d4f))
54
+
55
+ ## [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)
56
+
57
+
58
+ ### Bug Fixes
59
+
60
+ * **release:** html-webpack-plugin was updated ([ae99388](https://gitlab.com/mandomedio/vixonic/module-packager/commit/ae99388e82ba7fe16ffca89f2f7cbc842dbb6739))
61
+
62
+ ## [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)
63
+
64
+
65
+ ### Bug Fixes
66
+
67
+ * **release:** exclude variable was updated ([a40d017](https://gitlab.com/mandomedio/vixonic/module-packager/commit/a40d017ad5744ecfae966e5e60edeaaa167a2265))
68
+
69
+ ## [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)
70
+
71
+
72
+ ### Bug Fixes
73
+
74
+ * **release:** __dirname was removed ([cad88bb](https://gitlab.com/mandomedio/vixonic/module-packager/commit/cad88bba27d41590fdecab04dddf511dc9fb1df1))
75
+
76
+ ## [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)
77
+
78
+
79
+ ### Bug Fixes
80
+
81
+ * **release:** exclude variable was updated ([6eca779](https://gitlab.com/mandomedio/vixonic/module-packager/commit/6eca7795b42e32e84afeffe74a98bb7e4b970dd1))
82
+
83
+ ## [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)
84
+
85
+
86
+ ### Bug Fixes
87
+
88
+ * **Release:** revert __dirname changes ([bb25fe1](https://gitlab.com/mandomedio/vixonic/module-packager/commit/bb25fe10ed9a9368c145530aecdc91f539877a26))
89
+
90
+ ## [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)
91
+
92
+
93
+ ### Bug Fixes
94
+
95
+ * **release:** contentBase porperty was removed ([8b364cc](https://gitlab.com/mandomedio/vixonic/module-packager/commit/8b364cc84298210491844856564ada198c356561))
96
+
97
+ ## [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)
98
+
99
+
100
+ ### Bug Fixes
101
+
102
+ * **Release:** default value of config in options variable was reverted ([9c75fac](https://gitlab.com/mandomedio/vixonic/module-packager/commit/9c75fac9c189bfe5a7857c9a5f68ef50dcc3cc6b))
103
+
104
+ ## [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)
105
+
106
+
107
+ ### Bug Fixes
108
+
109
+ * **release:** __dirname was added to path resolves and joins ([7312c9a](https://gitlab.com/mandomedio/vixonic/module-packager/commit/7312c9a316c4039dd63c979754d97733c6159a90))
110
+
111
+ ## [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)
112
+
113
+ ## [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)
114
+
115
+
116
+ ### Bug Fixes
117
+
118
+ * **Release:** ts-node and ts-loader versions were changed ([e108c3f](https://gitlab.com/mandomedio/vixonic/module-packager/commit/e108c3f4e1983ed59d932cfc5db0754a6500088a))
119
+
120
+ ## [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)
121
+
122
+
123
+ ### Bug Fixes
124
+
125
+ * **release:** loaders module was changed by rules in webpack config ([5de2994](https://gitlab.com/mandomedio/vixonic/module-packager/commit/5de29944e6f1bb7e634bf9d6c1a0acb5b7c10ae5))
126
+
127
+ ## [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)
128
+
129
+ ## [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)
130
+
131
+
132
+ ### Features
133
+
134
+ * **release:** awesome-typescript-loader was replaced by ts-loader ([f0829ec](https://gitlab.com/mandomedio/vixonic/module-packager/commit/f0829ecd7640232be95ea029bd415ca9bfb83e10))
135
+
136
+ ## [2.7.0-dev.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.6.2...v2.7.0-dev.1) (2022-07-15)
137
+
138
+
139
+ ### Features
140
+
141
+ * **release:** a new vixoniccom/modules was added to the project ([d2cb117](https://gitlab.com/mandomedio/vixonic/module-packager/commit/d2cb117eb368391a1c4307602fd18741655943c6))
142
+
143
+ ## [2.7.0-dev.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.6.1...v2.7.0-dev.0) (2022-06-16)
144
+
145
+ ### Features
146
+
147
+ * **release:** a new vixoniccom/modules was added to the project ([0f4e503](https://gitlab.com/mandomedio/vixonic/module-packager/commit/0f4e50326d8c8e2582347f690705bc4ecb619c5a))
6
148
 
7
149
  ### [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
150
 
@@ -42,8 +184,6 @@ All notable changes to this project will be documented in this file. See [standa
42
184
 
43
185
  ### Bug Fixes
44
186
 
45
- * **Release:** typescript was upgrated to the last version - 4.7.3 ([43fb1e3](https://gitlab.com/mandomedio/vixonic/module-packager/commit/43fb1e375e9c3ffb8e79384ab67cb74957d9ea8a))
46
-
47
187
  ### [2.6.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.6.1-dev.0...v2.6.1) (2022-05-16)
48
188
 
49
189
  ### [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
@@ -52,9 +52,8 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@vixoniccom/module-controller": "^1.2.2",
55
- "@vixoniccom/modules": "^2.15.1-dev.0",
55
+ "@vixoniccom/modules": "^2.15.1",
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",
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
  }