weboptimizer 2.0.1160 → 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 CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "forceCoverageMatch": ["**/testBundle.js"],
3
+ "globalSetup": "./jestSetup.js",
3
4
  "moduleNameMapper": {
4
5
  "\\.((css)|(less)|(sass)|(scss))$": "identity-obj-proxy"
5
6
  },
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.1160",
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",