@vixoniccom/module-packager 2.7.0-test.9 → 2.8.1-dev.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 +4 -77
- package/main.js +1 -1
- package/package.json +6 -7
- package/webpack.config.js +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -2,85 +2,10 @@
|
|
|
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
|
-
|
|
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)
|
|
6
6
|
|
|
7
|
+
### [2.6.3-dev.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.6.2...v2.6.3-dev.0) (2022-07-13)
|
|
7
8
|
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
* **release:** __dirname was removed ([cad88bb](https://gitlab.com/mandomedio/vixonic/module-packager/commit/cad88bba27d41590fdecab04dddf511dc9fb1df1))
|
|
11
|
-
|
|
12
|
-
## [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)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Bug Fixes
|
|
16
|
-
|
|
17
|
-
* **release:** exclude variable was updated ([6eca779](https://gitlab.com/mandomedio/vixonic/module-packager/commit/6eca7795b42e32e84afeffe74a98bb7e4b970dd1))
|
|
18
|
-
|
|
19
|
-
## [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)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
### Bug Fixes
|
|
23
|
-
|
|
24
|
-
* **Release:** revert __dirname changes ([bb25fe1](https://gitlab.com/mandomedio/vixonic/module-packager/commit/bb25fe10ed9a9368c145530aecdc91f539877a26))
|
|
25
|
-
|
|
26
|
-
## [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)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
### Bug Fixes
|
|
30
|
-
|
|
31
|
-
* **release:** contentBase porperty was removed ([8b364cc](https://gitlab.com/mandomedio/vixonic/module-packager/commit/8b364cc84298210491844856564ada198c356561))
|
|
32
|
-
|
|
33
|
-
## [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)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
### Bug Fixes
|
|
37
|
-
|
|
38
|
-
* **Release:** default value of config in options variable was reverted ([9c75fac](https://gitlab.com/mandomedio/vixonic/module-packager/commit/9c75fac9c189bfe5a7857c9a5f68ef50dcc3cc6b))
|
|
39
|
-
|
|
40
|
-
## [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)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
### Bug Fixes
|
|
44
|
-
|
|
45
|
-
* **release:** __dirname was added to path resolves and joins ([7312c9a](https://gitlab.com/mandomedio/vixonic/module-packager/commit/7312c9a316c4039dd63c979754d97733c6159a90))
|
|
46
|
-
|
|
47
|
-
## [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)
|
|
48
|
-
|
|
49
|
-
## [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)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
### Bug Fixes
|
|
53
|
-
|
|
54
|
-
* **Release:** ts-node and ts-loader versions were changed ([e108c3f](https://gitlab.com/mandomedio/vixonic/module-packager/commit/e108c3f4e1983ed59d932cfc5db0754a6500088a))
|
|
55
|
-
|
|
56
|
-
## [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)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
### Bug Fixes
|
|
60
|
-
|
|
61
|
-
* **release:** loaders module was changed by rules in webpack config ([5de2994](https://gitlab.com/mandomedio/vixonic/module-packager/commit/5de29944e6f1bb7e634bf9d6c1a0acb5b7c10ae5))
|
|
62
|
-
|
|
63
|
-
## [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)
|
|
64
|
-
|
|
65
|
-
## [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)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
### Features
|
|
69
|
-
|
|
70
|
-
* **release:** awesome-typescript-loader was replaced by ts-loader ([f0829ec](https://gitlab.com/mandomedio/vixonic/module-packager/commit/f0829ecd7640232be95ea029bd415ca9bfb83e10))
|
|
71
|
-
|
|
72
|
-
## [2.7.0-dev.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.6.2...v2.7.0-dev.1) (2022-07-15)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
### Features
|
|
76
|
-
|
|
77
|
-
* **release:** a new vixoniccom/modules was added to the project ([d2cb117](https://gitlab.com/mandomedio/vixonic/module-packager/commit/d2cb117eb368391a1c4307602fd18741655943c6))
|
|
78
|
-
|
|
79
|
-
## [2.7.0-dev.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.6.1...v2.7.0-dev.0) (2022-06-16)
|
|
80
|
-
|
|
81
|
-
### Features
|
|
82
|
-
|
|
83
|
-
* **release:** a new vixoniccom/modules was added to the project ([0f4e503](https://gitlab.com/mandomedio/vixonic/module-packager/commit/0f4e50326d8c8e2582347f690705bc4ecb619c5a))
|
|
84
9
|
### [2.6.2](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.6.1...v2.6.2) (2022-06-24)
|
|
85
10
|
|
|
86
11
|
|
|
@@ -117,6 +42,8 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
117
42
|
|
|
118
43
|
### Bug Fixes
|
|
119
44
|
|
|
45
|
+
* **Release:** typescript was upgrated to the last version - 4.7.3 ([43fb1e3](https://gitlab.com/mandomedio/vixonic/module-packager/commit/43fb1e375e9c3ffb8e79384ab67cb74957d9ea8a))
|
|
46
|
+
|
|
120
47
|
### [2.6.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.6.1-dev.0...v2.6.1) (2022-05-16)
|
|
121
48
|
|
|
122
49
|
### [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
|
-
|
|
117
|
+
contentBase: path.join(__dirname, options.src, '..')
|
|
118
118
|
})
|
|
119
119
|
server.listen(options.port)
|
|
120
120
|
|
package/package.json
CHANGED
|
@@ -52,8 +52,9 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@vixoniccom/module-controller": "^1.2.2",
|
|
55
|
-
"@vixoniccom/modules": "^2.
|
|
55
|
+
"@vixoniccom/modules": "^2.15.1-dev.0",
|
|
56
56
|
"archiver": "^5.3.0",
|
|
57
|
+
"awesome-typescript-loader": "^4.0.1",
|
|
57
58
|
"babel-core": "^6.14.0",
|
|
58
59
|
"babel-loader": "^6.2.5",
|
|
59
60
|
"babel-polyfill": "^6.26.0",
|
|
@@ -75,12 +76,11 @@
|
|
|
75
76
|
"raw-loader": "^0.5.1",
|
|
76
77
|
"sass-loader": "^4.0.2",
|
|
77
78
|
"style-loader": "^0.13.1",
|
|
78
|
-
"ts-
|
|
79
|
-
"ts-node": "^10.9.1",
|
|
79
|
+
"ts-node": "^10.8.1",
|
|
80
80
|
"typescript": "^4.7.3",
|
|
81
81
|
"uglifyjs-webpack-plugin": "^1.3.0",
|
|
82
|
-
"webpack": "^
|
|
83
|
-
"webpack-dev-server": "^
|
|
82
|
+
"webpack": "^3.12.0",
|
|
83
|
+
"webpack-dev-server": "^2.11.5"
|
|
84
84
|
},
|
|
85
85
|
"directories": {},
|
|
86
86
|
"dist": {
|
|
@@ -95,7 +95,6 @@
|
|
|
95
95
|
}
|
|
96
96
|
],
|
|
97
97
|
"name": "@vixoniccom/module-packager",
|
|
98
|
-
"optionalDependencies": {},
|
|
99
98
|
"readme": "ERROR: No README data found!",
|
|
100
99
|
"scripts": {
|
|
101
100
|
"start": "electron",
|
|
@@ -104,7 +103,7 @@
|
|
|
104
103
|
"prerelease-test": "standard-version --prerelease test",
|
|
105
104
|
"release": "standard-version"
|
|
106
105
|
},
|
|
107
|
-
"version": "2.
|
|
106
|
+
"version": "2.8.1-dev.0",
|
|
108
107
|
"devDependencies": {
|
|
109
108
|
"standard-version": "^9.3.1"
|
|
110
109
|
}
|
package/webpack.config.js
CHANGED
|
@@ -14,16 +14,14 @@ module.exports = (options) => {
|
|
|
14
14
|
options.externals = [...(options.externals || []), 'electron']
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
20
|
|
|
21
21
|
let exclude = options.mode === 'watch'
|
|
22
22
|
? [path.join(options.src, 'static'), path.join(options.src, 'test')]
|
|
23
23
|
: [path.resolve(options.src, 'static'), path.resolve(options.src, 'test')]
|
|
24
24
|
|
|
25
|
-
console.log('exclude ', exclude)
|
|
26
|
-
console.log('Options: ', options, options.src)
|
|
27
25
|
let config = {
|
|
28
26
|
context: __dirname,
|
|
29
27
|
entry: ['babel-polyfill', path.resolve(options.src, 'main')],
|
|
@@ -46,7 +44,7 @@ module.exports = (options) => {
|
|
|
46
44
|
]
|
|
47
45
|
},
|
|
48
46
|
module: {
|
|
49
|
-
|
|
47
|
+
loaders: [
|
|
50
48
|
{
|
|
51
49
|
test: /\.json$/,
|
|
52
50
|
exclude: exclude,
|
|
@@ -56,14 +54,16 @@ module.exports = (options) => {
|
|
|
56
54
|
test: /\.(j|t)sx?$/,
|
|
57
55
|
include: [path.resolve(options.src)],
|
|
58
56
|
exclude: exclude,
|
|
59
|
-
|
|
57
|
+
loaders: [
|
|
60
58
|
{
|
|
61
59
|
loader: 'babel-loader?babelrc=false&extends=' + path.join(__dirname, '/.babelrc')
|
|
62
60
|
},
|
|
63
61
|
{
|
|
64
|
-
loader: '
|
|
62
|
+
loader: 'awesome-typescript-loader',
|
|
65
63
|
options: {
|
|
66
|
-
|
|
64
|
+
configFileName: tsconfigPath,
|
|
65
|
+
transpileOnly: options.transpileOnly,
|
|
66
|
+
compiler: typescript
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
]
|
|
@@ -89,7 +89,7 @@ module.exports = (options) => {
|
|
|
89
89
|
}
|
|
90
90
|
]
|
|
91
91
|
},
|
|
92
|
-
externals: (
|
|
92
|
+
externals: (context, request, callback) => {
|
|
93
93
|
if (_.indexOf(options.externals, request) !== -1) {
|
|
94
94
|
if (options.mode !== 'watch' || request === 'electron') {
|
|
95
95
|
return callback(null, "require('" + request + "')")
|
|
@@ -129,7 +129,7 @@ module.exports = (options) => {
|
|
|
129
129
|
config.output.publicPath = `http://localhost:${options.port}/`
|
|
130
130
|
config.devtool = 'source-map'
|
|
131
131
|
config.devServer = {
|
|
132
|
-
|
|
132
|
+
contentBase: path.resolve(options.src),
|
|
133
133
|
publicPath: `http://localhost:${options.port}/`,
|
|
134
134
|
inline: true
|
|
135
135
|
}
|