weboptimizer 2.0.1235 → 2.0.1237
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/browser.js +20 -62
- package/configurator.js +53 -126
- package/ejsLoader.js +8 -52
- package/helper.js +53 -198
- package/index.js +31 -167
- package/jestEnvironmentBrowser.js +1 -12
- package/jestSetup.js +5 -7
- package/package.json +9 -2
- package/stylelintConfigurator.js +1 -6
- package/type.js +4 -4
- package/webpackConfigurator.js +99 -244
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// #!/usr/bin/env babel-node
|
|
2
2
|
// -*- coding: utf-8 -*-
|
|
3
|
-
|
|
4
3
|
/** @module jestEnvironmentBrowser */
|
|
5
4
|
'use strict';
|
|
5
|
+
|
|
6
6
|
/* !
|
|
7
7
|
region header
|
|
8
8
|
[Project page](https://torben.website/webOptimizer)
|
|
@@ -17,27 +17,20 @@
|
|
|
17
17
|
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
18
18
|
endregion
|
|
19
19
|
*/
|
|
20
|
-
|
|
21
20
|
/**
|
|
22
21
|
* Implements the default browser environment to run script context in.
|
|
23
22
|
*/
|
|
24
|
-
|
|
25
23
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
26
|
-
|
|
27
24
|
Object.defineProperty(exports, "__esModule", {
|
|
28
25
|
value: true
|
|
29
26
|
});
|
|
30
27
|
exports["default"] = exports.BrowserEnvironment = void 0;
|
|
31
|
-
|
|
32
28
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
33
|
-
|
|
34
29
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
35
|
-
|
|
36
30
|
var BrowserEnvironment = /*#__PURE__*/function () {
|
|
37
31
|
function BrowserEnvironment() {
|
|
38
32
|
(0, _classCallCheck2["default"])(this, BrowserEnvironment);
|
|
39
33
|
}
|
|
40
|
-
|
|
41
34
|
(0, _createClass2["default"])(BrowserEnvironment, [{
|
|
42
35
|
key: "setup",
|
|
43
36
|
value:
|
|
@@ -50,7 +43,6 @@ var BrowserEnvironment = /*#__PURE__*/function () {
|
|
|
50
43
|
/**
|
|
51
44
|
* @returns Nothing.
|
|
52
45
|
*/
|
|
53
|
-
|
|
54
46
|
}, {
|
|
55
47
|
key: "teardown",
|
|
56
48
|
value: function teardown() {
|
|
@@ -59,7 +51,6 @@ var BrowserEnvironment = /*#__PURE__*/function () {
|
|
|
59
51
|
/**
|
|
60
52
|
* @returns Null.
|
|
61
53
|
*/
|
|
62
|
-
|
|
63
54
|
}, {
|
|
64
55
|
key: "runScript",
|
|
65
56
|
value: function runScript() {
|
|
@@ -68,11 +59,9 @@ var BrowserEnvironment = /*#__PURE__*/function () {
|
|
|
68
59
|
}]);
|
|
69
60
|
return BrowserEnvironment;
|
|
70
61
|
}();
|
|
71
|
-
|
|
72
62
|
exports.BrowserEnvironment = BrowserEnvironment;
|
|
73
63
|
var _default = BrowserEnvironment; // region vim modline
|
|
74
64
|
// vim: set tabstop=4 shiftwidth=4 expandtab:
|
|
75
65
|
// vim: foldmethod=marker foldmarker=region,endregion:
|
|
76
66
|
// endregion
|
|
77
|
-
|
|
78
67
|
exports["default"] = _default;
|
package/jestSetup.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// #!/usr/bin/env babel-node
|
|
2
2
|
// -*- coding: utf-8 -*-
|
|
3
|
-
|
|
4
3
|
/** @module webpackConfigurator */
|
|
5
4
|
'use strict';
|
|
5
|
+
|
|
6
6
|
/* !
|
|
7
7
|
region header
|
|
8
8
|
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
@@ -16,18 +16,16 @@
|
|
|
16
16
|
endregion
|
|
17
17
|
*/
|
|
18
18
|
// region imports
|
|
19
|
-
|
|
20
19
|
var _clientnode = require("clientnode");
|
|
21
|
-
|
|
22
20
|
var _util = require("util");
|
|
23
|
-
|
|
24
21
|
_clientnode.globalContext.TextEncoder = _util.TextEncoder;
|
|
25
22
|
_clientnode.globalContext.TextDecoder = _util.TextDecoder;
|
|
26
|
-
|
|
27
23
|
try {
|
|
28
24
|
if (eval('require')('jest-canvas-mock')) console.info('Canvas mocking module loaded.');
|
|
29
|
-
} catch (error) {
|
|
30
|
-
|
|
25
|
+
} catch (error) {
|
|
26
|
+
// Do nothing.
|
|
27
|
+
}
|
|
28
|
+
// region vim modline
|
|
31
29
|
// vim: set tabstop=4 shiftwidth=4 expandtab:
|
|
32
30
|
// vim: foldmethod=marker foldmarker=region,endregion:
|
|
33
31
|
// endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1237",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -151,6 +151,7 @@
|
|
|
151
151
|
"style-loader": "*",
|
|
152
152
|
"stylelint": "*",
|
|
153
153
|
"stylelint-config-standard": "*",
|
|
154
|
+
"stylelint-config-standard-scss": "*",
|
|
154
155
|
"typescript-plugin-css-modules": "*",
|
|
155
156
|
"workbox-webpack-plugin": "*"
|
|
156
157
|
},
|
|
@@ -189,6 +190,7 @@
|
|
|
189
190
|
"style-loader": "*",
|
|
190
191
|
"stylelint": "*",
|
|
191
192
|
"stylelint-config-standard": "*",
|
|
193
|
+
"stylelint-config-standard-scss": "*",
|
|
192
194
|
"typescript-plugin-css-modules": "*",
|
|
193
195
|
"webpack-dev-server": "*",
|
|
194
196
|
"workbox-webpack-plugin": "*"
|
|
@@ -287,6 +289,9 @@
|
|
|
287
289
|
"stylelint-config-standard": {
|
|
288
290
|
"optional": true
|
|
289
291
|
},
|
|
292
|
+
"stylelint-config-standard-scss": {
|
|
293
|
+
"optional": true
|
|
294
|
+
},
|
|
290
295
|
"typescript-plugin-css-modules": {
|
|
291
296
|
"optional": true
|
|
292
297
|
},
|
|
@@ -1418,7 +1423,9 @@
|
|
|
1418
1423
|
"customSyntax": {
|
|
1419
1424
|
"__evaluate__": "optionalRequire('postcss-scss') ? 'postcss-scss' : null"
|
|
1420
1425
|
},
|
|
1421
|
-
"extends":
|
|
1426
|
+
"extends": {
|
|
1427
|
+
"__evaluate__": "optionalRequire('stylelint-config-standard-scss') ? 'stylelint-config-standard-scss' : 'stylelint-config-standard'"
|
|
1428
|
+
},
|
|
1422
1429
|
"ignoreFiles": "**/node_modules/*",
|
|
1423
1430
|
"rules": {
|
|
1424
1431
|
"at-rule-empty-line-before": [
|
package/stylelintConfigurator.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// #!/usr/bin/env babel-node
|
|
2
2
|
// -*- coding: utf-8 -*-
|
|
3
|
-
|
|
4
3
|
/** @module stylelintConfigurator */
|
|
5
4
|
'use strict';
|
|
5
|
+
|
|
6
6
|
/* !
|
|
7
7
|
region header
|
|
8
8
|
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
@@ -16,16 +16,12 @@
|
|
|
16
16
|
endregion
|
|
17
17
|
*/
|
|
18
18
|
// region imports
|
|
19
|
-
|
|
20
19
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
21
|
-
|
|
22
20
|
Object.defineProperty(exports, "__esModule", {
|
|
23
21
|
value: true
|
|
24
22
|
});
|
|
25
23
|
exports["default"] = void 0;
|
|
26
|
-
|
|
27
24
|
var _configurator = _interopRequireDefault(require("./configurator"));
|
|
28
|
-
|
|
29
25
|
// endregion
|
|
30
26
|
var configuration = (0, _configurator["default"])();
|
|
31
27
|
module.exports = configuration.stylelint;
|
|
@@ -33,5 +29,4 @@ var _default = module.exports; // region vim modline
|
|
|
33
29
|
// vim: set tabstop=4 shiftwidth=4 expandtab:
|
|
34
30
|
// vim: foldmethod=marker foldmarker=region,endregion:
|
|
35
31
|
// endregion
|
|
36
|
-
|
|
37
32
|
exports["default"] = _default;
|
package/type.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// #!/usr/bin/env babel-node
|
|
2
2
|
// -*- coding: utf-8 -*-
|
|
3
|
-
|
|
4
3
|
/** @module type */
|
|
5
4
|
'use strict';
|
|
5
|
+
|
|
6
6
|
/* !
|
|
7
7
|
region header
|
|
8
8
|
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
endregion
|
|
17
17
|
*/
|
|
18
18
|
// region imports
|
|
19
|
-
|
|
20
19
|
Object.defineProperty(exports, "__esModule", {
|
|
21
20
|
value: true
|
|
22
21
|
});
|
|
@@ -33,12 +32,13 @@ exports.TaskTypes = exports.SubConfigurationTypes = void 0;
|
|
|
33
32
|
//// region build
|
|
34
33
|
var SubConfigurationTypes = ['debug', 'document', 'test', 'test:browser'];
|
|
35
34
|
exports.SubConfigurationTypes = SubConfigurationTypes;
|
|
36
|
-
var TaskTypes = ['build', 'serve'].concat(SubConfigurationTypes);
|
|
35
|
+
var TaskTypes = ['build', 'serve'].concat(SubConfigurationTypes);
|
|
36
|
+
//// endregion
|
|
37
37
|
//// region loader
|
|
38
|
+
|
|
38
39
|
// endregion
|
|
39
40
|
// region vim modline
|
|
40
41
|
// vim: set tabstop=4 shiftwidth=4 expandtab:
|
|
41
42
|
// vim: foldmethod=marker foldmarker=region,endregion:
|
|
42
43
|
// endregion
|
|
43
|
-
|
|
44
44
|
exports.TaskTypes = TaskTypes;
|