weboptimizer 2.0.1584 → 2.0.1586
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1586",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -40,8 +40,6 @@
|
|
|
40
40
|
"index.html.ejs",
|
|
41
41
|
"index.js",
|
|
42
42
|
"jest.json",
|
|
43
|
-
"jestEnvironmentBrowser.d.ts",
|
|
44
|
-
"jestEnvironmentBrowser.js",
|
|
45
43
|
"jestSetup.d.ts",
|
|
46
44
|
"jestSetup.js",
|
|
47
45
|
"plugins/HTMLTransformation.d.ts",
|
|
@@ -65,15 +63,15 @@
|
|
|
65
63
|
},
|
|
66
64
|
"scripts": {
|
|
67
65
|
"build": "yarn build:types; yarn build:lint; yarn build:plain",
|
|
68
|
-
"build:lint": " babel --extensions '.ts' --plugins @babel/plugin-proposal-class-properties,@babel/plugin-syntax-top-level-await,babel-plugin-transform-modern-regexp
|
|
69
|
-
"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
|
|
66
|
+
"build:lint": " babel --extensions '.ts' --plugins @babel/plugin-proposal-class-properties,@babel/plugin-syntax-top-level-await,babel-plugin-transform-modern-regexp --presets @babel/preset-typescript --out-file eslint.config.mjs eslint.config.ts",
|
|
67
|
+
"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 jestSetup.js jestSetup.ts && $command plugins/HTMLTransformation.js plugins/HTMLTransformation.ts && $command plugins/InPlaceAssetsIntoHTML.js plugins/InPlaceAssetsIntoHTML.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",
|
|
70
68
|
"build:copy-test-artefacts": "cd test/simple && shx touch yarn.lock && rimraf node_modules && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install; cd ../../ && cd test/scss && shx touch yarn.lock && rimraf node_modules && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install; 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 -r plugins *.ts *.js *.mjs *.json *.ejs' && $copyCommand node_modules/weboptimizer/ && $copyCommand test/simple/node_modules/weboptimizer/ && $copyCommand test/scss/node_modules/weboptimizer/",
|
|
71
69
|
"build:test": " yarn clear && yarn build && 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' && yarn build:copy-test-artefacts && $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",
|
|
72
70
|
"build:test:source-map": "yarn clear && yarn build && 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' && yarn build:copy-test-artefacts && $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",
|
|
73
71
|
"build:types": "tsc --declaration --emitDeclarationOnly",
|
|
74
72
|
"check": "yarn check:types; yarn lint",
|
|
75
73
|
"check:types": "tsc --noEmit",
|
|
76
|
-
"clear": "rimraf --glob apiDocumentation browser.d.ts configurator.d.ts ejsLoader.d.ts eslint.config.d.ts helper.d.ts index.d.ts jestSetup.d.ts
|
|
74
|
+
"clear": "rimraf --glob apiDocumentation browser.d.ts configurator.d.ts ejsLoader.d.ts eslint.config.d.ts helper.d.ts index.d.ts jestSetup.d.ts 'plugins/*.d.ts' 'plugins/*.js' stylelintConfigurator.d.ts 'test/*.js' 'test/*.compiled.*' 'test/*.d.ts' 'test/**/yarn.lock' 'test/**/node_modules' type.d.ts webpackConfigurator.d.ts '*.compiled.*' '*.compiled' '*.html' '*.js' '*.log' '*.mjs' node_modules/weboptimizer .coverage .nyc_output",
|
|
77
75
|
"document": "yarn build:plain && jsdoc --package ./package.json --readme ./readme.md --destination apiDocumentation *.js",
|
|
78
76
|
"lint": "yarn build:lint && yarn lint:base",
|
|
79
77
|
"lint:base": "eslint --no-warn-ignored *.ts */*.ts test/*/*.ts",
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// #!/usr/bin/env babel-node
|
|
2
|
-
// -*- coding: utf-8 -*-
|
|
3
|
-
/** @module jestEnvironmentBrowser */
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
/* !
|
|
7
|
-
region header
|
|
8
|
-
[Project page](https://torben.website/webOptimizer)
|
|
9
|
-
|
|
10
|
-
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
11
|
-
|
|
12
|
-
License
|
|
13
|
-
-------
|
|
14
|
-
|
|
15
|
-
This library written by Torben Sickert stand under a creative commons
|
|
16
|
-
naming 3.0 unported license.
|
|
17
|
-
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
18
|
-
endregion
|
|
19
|
-
*/
|
|
20
|
-
/**
|
|
21
|
-
* Implements the default browser environment to run script context in.
|
|
22
|
-
*/
|
|
23
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
24
|
-
Object.defineProperty(exports, "__esModule", {
|
|
25
|
-
value: true
|
|
26
|
-
});
|
|
27
|
-
exports["default"] = exports.BrowserEnvironment = void 0;
|
|
28
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
29
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
30
|
-
var BrowserEnvironment = exports.BrowserEnvironment = /*#__PURE__*/function () {
|
|
31
|
-
function BrowserEnvironment() {
|
|
32
|
-
(0, _classCallCheck2["default"])(this, BrowserEnvironment);
|
|
33
|
-
}
|
|
34
|
-
return (0, _createClass2["default"])(BrowserEnvironment, [{
|
|
35
|
-
key: "setup",
|
|
36
|
-
value: function setup() {
|
|
37
|
-
return Promise.resolve();
|
|
38
|
-
}
|
|
39
|
-
}, {
|
|
40
|
-
key: "teardown",
|
|
41
|
-
value: function teardown() {
|
|
42
|
-
// Stub method.
|
|
43
|
-
}
|
|
44
|
-
}, {
|
|
45
|
-
key: "runScript",
|
|
46
|
-
value: function runScript() {
|
|
47
|
-
return null;
|
|
48
|
-
}
|
|
49
|
-
}]);
|
|
50
|
-
}();
|
|
51
|
-
var _default = exports["default"] = BrowserEnvironment;
|