weboptimizer 2.0.1160 → 2.0.1163
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 +28 -0
- package/package.json +4 -2
- package/webpackConfigurator.js +1 -1
package/jest.json
CHANGED
package/jestSetup.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/jestSetup.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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 _clientnode = require("clientnode");
|
|
21
|
+
|
|
22
|
+
var _util = require("util");
|
|
23
|
+
|
|
24
|
+
_clientnode.globalContext.TextEncoder = _util.TextEncoder;
|
|
25
|
+
_clientnode.globalContext.TextDecoder = _util.TextDecoder; // region vim modline
|
|
26
|
+
// vim: set tabstop=4 shiftwidth=4 expandtab:
|
|
27
|
+
// vim: foldmethod=marker foldmarker=region,endregion:
|
|
28
|
+
// endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1163",
|
|
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",
|
package/webpackConfigurator.js
CHANGED
|
@@ -1282,7 +1282,7 @@ var webpackConfiguration = _clientnode["default"].extend(true, {
|
|
|
1282
1282
|
globalObject: configuration.exportFormat.globalObject,
|
|
1283
1283
|
hashFunction: configuration.hashAlgorithm,
|
|
1284
1284
|
library: {
|
|
1285
|
-
name: libraryName === '*' ?
|
|
1285
|
+
name: libraryName === '*' ? '[name]' : libraryName,
|
|
1286
1286
|
type: configuration.exportFormat.self,
|
|
1287
1287
|
umdNamedDefine: true
|
|
1288
1288
|
},
|