weboptimizer 2.0.1158 → 2.0.1161
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/jest.json +1 -0
- package/jestSetup.d.ts +1 -0
- package/jestSetup.js +52 -0
- package/package.json +5 -10
package/jest.json
CHANGED
package/jestSetup.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/jestSetup.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// #!/usr/bin/env babel-node
|
|
2
|
+
// -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
/** @module webpackConfigurator */
|
|
5
|
+
'use strict';
|
|
6
|
+
/* !
|
|
7
|
+
region header
|
|
8
|
+
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
9
|
+
|
|
10
|
+
License
|
|
11
|
+
-------
|
|
12
|
+
|
|
13
|
+
This library written by Torben Sickert stand under a creative commons
|
|
14
|
+
naming 3.0 unported license.
|
|
15
|
+
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
16
|
+
endregion
|
|
17
|
+
*/
|
|
18
|
+
// region imports
|
|
19
|
+
|
|
20
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
21
|
+
|
|
22
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
23
|
+
|
|
24
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
25
|
+
|
|
26
|
+
var _util = require("util");
|
|
27
|
+
|
|
28
|
+
// endregion
|
|
29
|
+
module.exports = /*#__PURE__*/function () {
|
|
30
|
+
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(globalConfig, projectConfig) {
|
|
31
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
32
|
+
while (1) {
|
|
33
|
+
switch (_context.prev = _context.next) {
|
|
34
|
+
case 0:
|
|
35
|
+
global.TextEncoder = _util.TextEncoder;
|
|
36
|
+
global.TextDecoder = _util.TextDecoder;
|
|
37
|
+
|
|
38
|
+
case 2:
|
|
39
|
+
case "end":
|
|
40
|
+
return _context.stop();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}, _callee);
|
|
44
|
+
}));
|
|
45
|
+
|
|
46
|
+
return function (_x, _x2) {
|
|
47
|
+
return _ref.apply(this, arguments);
|
|
48
|
+
};
|
|
49
|
+
}(); // region vim modline
|
|
50
|
+
// vim: set tabstop=4 shiftwidth=4 expandtab:
|
|
51
|
+
// vim: foldmethod=marker foldmarker=region,endregion:
|
|
52
|
+
// endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1161",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
"jest.json",
|
|
41
41
|
"jestEnvironmentBrowser.d.ts",
|
|
42
42
|
"jestEnvironmentBrowser.js",
|
|
43
|
+
"jestSetup.d.ts",
|
|
44
|
+
"jestSetup.js",
|
|
43
45
|
"stylelintConfigurator.d.ts",
|
|
44
46
|
"stylelintConfigurator.js",
|
|
45
47
|
"tsconfig.json",
|
|
@@ -59,7 +61,7 @@
|
|
|
59
61
|
},
|
|
60
62
|
"scripts": {
|
|
61
63
|
"build": "yarn build:types; yarn build:plain",
|
|
62
|
-
"build:plain": "command=\"babel --extensions '.ts' --plugins @babel/plugin-proposal-class-properties,@babel/plugin-syntax-top-level-await,@babel/plugin-transform-runtime,babel-plugin-transform-modern-regexp --presets @babel/preset-env,@babel/preset-typescript --out-file\" && $command browser.js browser.ts && $command configurator.js configurator.ts && $command ejsLoader.js ejsLoader.ts && $command helper.js helper.ts && $command index.js index.ts && $command jestEnvironmentBrowser.js jestEnvironmentBrowser.ts && $command stylelintConfigurator.js stylelintConfigurator.ts && $command type.js type.ts && $command webpackConfigurator.js webpackConfigurator.ts && shx chmod +x index.js && shx sed -i 's/(#!\\\\/usr\\\\/bin\\\\/env )babel-(node)/$1$2/' index.js 1>/dev/null",
|
|
64
|
+
"build:plain": "command=\"babel --extensions '.ts' --plugins @babel/plugin-proposal-class-properties,@babel/plugin-syntax-top-level-await,@babel/plugin-transform-runtime,babel-plugin-transform-modern-regexp --presets @babel/preset-env,@babel/preset-typescript --out-file\" && $command browser.js browser.ts && $command configurator.js configurator.ts && $command ejsLoader.js ejsLoader.ts && $command helper.js helper.ts && $command index.js index.ts && $command jestEnvironmentBrowser.js jestEnvironmentBrowser.ts && $command jestSetup.js jestSetup.ts && $command stylelintConfigurator.js stylelintConfigurator.ts && $command type.js type.ts && $command webpackConfigurator.js webpackConfigurator.ts && shx chmod +x index.js && shx sed -i 's/(#!\\\\/usr\\\\/bin\\\\/env )babel-(node)/$1$2/' index.js 1>/dev/null",
|
|
63
65
|
"build:test": "yarn clear && yarn build:plain && command='babel --extensions '.ts' --plugins @babel/plugin-proposal-class-properties,@babel/plugin-syntax-top-level-await,@babel/plugin-transform-runtime --presets @babel/preset-env,@babel/preset-typescript --source-root ../ --out-file' && cd test/simple && yarn; cd ../../ && cd test/scss && yarn; cd ../../ && rimraf node_modules/weboptimizer test/simple/node_modules/weboptimizer test/scss/node_modules/weboptimizer && shx mkdir -p node_modules/weboptimizer test/simple/node_modules/weboptimizer test/scss/node_modules/weboptimizer && copyCommand='shx cp *.ts *.js *.json *.ejs' && $copyCommand node_modules/weboptimizer/ && $copyCommand test/simple/node_modules/weboptimizer/ && $copyCommand test/scss/node_modules/weboptimizer/ && $command test/browser.js test/browser.ts && $command test/configurator.js test/configurator.ts && $command test/helper.js test/helper.ts && $command test/ejsLoader.js test/ejsLoader.ts && $command test/stylelintConfigurator.js test/stylelintConfigurator.ts && $command test/index.js test/index.ts && $command test/webpackConfigurator.js test/webpackConfigurator.ts",
|
|
64
66
|
"build:test:source-map": "yarn clear && yarn build:plain && command='babel --extensions '.ts' --plugins @babel/plugin-proposal-class-properties,@babel/plugin-syntax-top-level-await,@babel/plugin-transform-runtime --presets @babel/preset-env,@babel/preset-typescript --source-maps inline --source-root ../ --out-file' && rimraf node_modules/weboptimizer && shx mkdir -p node_modules/weboptimizer && shx cp *.ts *.js *.json *.ejs node_modules/weboptimizer/ && $command test/browser.js test/browser.ts && $command test/configurator.js test/configurator.ts && $command test/helper.js test/helper.ts && $command test/ejsLoader.js test/ejsLoader.ts && $command test/stylelintConfigurator.js test/stylelintConfigurator.ts && $command test/index.js test/index.ts && $command test/webpackConfigurator.js test/webpackConfigurator.ts",
|
|
65
67
|
"build:types": "tsc --emitDeclarationOnly",
|
|
@@ -98,7 +100,7 @@
|
|
|
98
100
|
"html-minifier": "*",
|
|
99
101
|
"html-webpack-plugin": "*",
|
|
100
102
|
"imports-loader": "*",
|
|
101
|
-
"jsdom": "
|
|
103
|
+
"jest-environment-jsdom": "*",
|
|
102
104
|
"rimraf": "*",
|
|
103
105
|
"script-loader": "*",
|
|
104
106
|
"typescript": "*",
|
|
@@ -116,8 +118,6 @@
|
|
|
116
118
|
"@types/html-minifier-terser": "*",
|
|
117
119
|
"@types/imagemin": "*",
|
|
118
120
|
"@types/jest": "*",
|
|
119
|
-
"@types/jsdom": "*",
|
|
120
|
-
"@types/mini-css-extract-plugin": "*",
|
|
121
121
|
"@types/node": "*",
|
|
122
122
|
"@types/postcss-import": "*",
|
|
123
123
|
"@types/postcss-url": "*",
|
|
@@ -162,8 +162,6 @@
|
|
|
162
162
|
"@types/html-minifier": "*",
|
|
163
163
|
"@types/imagemin": "*",
|
|
164
164
|
"@types/jest": "*",
|
|
165
|
-
"@types/jsdom": "*",
|
|
166
|
-
"@types/mini-css-extract-plugin": "*",
|
|
167
165
|
"@types/node": "*",
|
|
168
166
|
"@types/webpack-env": "*",
|
|
169
167
|
"@typescript-eslint/eslint-plugin": "*",
|
|
@@ -213,9 +211,6 @@
|
|
|
213
211
|
"@types/jest": {
|
|
214
212
|
"optional": true
|
|
215
213
|
},
|
|
216
|
-
"@types/jsdom": {
|
|
217
|
-
"optional": true
|
|
218
|
-
},
|
|
219
214
|
"@types/node": {
|
|
220
215
|
"optional": true
|
|
221
216
|
},
|