jsf.js_next_gen 4.0.2-beta.3 → 4.0.2-beta.4
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/dist/window/faces-development.js +23 -9
- package/dist/window/faces-development.js.map +1 -1
- package/dist/window/faces.js +1 -1
- package/dist/window/faces.js.map +1 -1
- package/dist/window/jsf-development.js +23 -9
- package/dist/window/jsf-development.js.map +1 -1
- package/dist/window/jsf.js +1 -1
- package/dist/window/jsf.js.map +1 -1
- package/package.json +7 -8
- package/src/main/typescript/impl/xhrCore/XhrRequest.ts +24 -10
- package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +28 -0
- package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +78 -1
- package/target/impl/xhrCore/XhrRequest.js +23 -9
- package/target/impl/xhrCore/XhrRequest.js.map +1 -1
- package/target/test/frameworkBase/_ext/shared/StandardInits.js +26 -0
- package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
- package/target/test/xhrCore/RequestTest.spec.js +68 -1
- package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
- package/webpack.config.ts +1 -23
- package/dist/window/faces-development.js.br +0 -0
- package/dist/window/faces-development.js.gz +0 -0
- package/dist/window/faces.js.br +0 -0
- package/dist/window/faces.js.gz +0 -0
- package/dist/window/jsf-development.js.br +0 -0
- package/dist/window/jsf-development.js.gz +0 -0
- package/dist/window/jsf.js.br +0 -0
- package/dist/window/jsf.js.gz +0 -0
- package/target/classes/application.properties +0 -1
- package/webpack.config.js +0 -71
- package/webpack.config.js.map +0 -1
package/webpack.config.ts
CHANGED
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
import * as webpack from 'webpack';
|
|
18
18
|
import * as path from 'path'
|
|
19
19
|
|
|
20
|
-
let CompressionPlugin = require('compression-webpack-plugin');
|
|
21
|
-
|
|
22
20
|
|
|
23
21
|
|
|
24
22
|
/**
|
|
@@ -70,27 +68,7 @@ function build(env: {[key:string]: string}, argv: {[key:string]: string}) {
|
|
|
70
68
|
}]
|
|
71
69
|
}
|
|
72
70
|
]
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
plugins: [
|
|
77
|
-
|
|
78
|
-
new CompressionPlugin({
|
|
79
|
-
filename: '[name].js.gz[query]',
|
|
80
|
-
algorithm: 'gzip',
|
|
81
|
-
test: /\.js$|\.css$|\.html$|\.eot?.+$|\.ttf?.+$|\.woff?.+$|\.svg?.+$/,
|
|
82
|
-
threshold: 10240,
|
|
83
|
-
minRatio: 0.3
|
|
84
|
-
|
|
85
|
-
}),
|
|
86
|
-
new CompressionPlugin({
|
|
87
|
-
filename: '[name].js.br[query]',
|
|
88
|
-
algorithm: 'brotliCompress',
|
|
89
|
-
test: /\.(js|css|html|svg)$/,
|
|
90
|
-
threshold: 10240,
|
|
91
|
-
minRatio: 0.8
|
|
92
|
-
})
|
|
93
|
-
]
|
|
71
|
+
}
|
|
94
72
|
}
|
|
95
73
|
return config;
|
|
96
74
|
}
|
|
Binary file
|
|
Binary file
|
package/dist/window/faces.js.br
DELETED
|
Binary file
|
package/dist/window/faces.js.gz
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/window/jsf.js.br
DELETED
|
Binary file
|
package/dist/window/jsf.js.gz
DELETED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/webpack.config.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
var path = require("path");
|
|
4
|
-
var CompressionPlugin = require('compression-webpack-plugin');
|
|
5
|
-
/**
|
|
6
|
-
* we need to define the export in a function
|
|
7
|
-
* because the mode parameter is passed down via the argv
|
|
8
|
-
*
|
|
9
|
-
* @param env the environment
|
|
10
|
-
* @param argv the arguments list
|
|
11
|
-
*/
|
|
12
|
-
function build(env, argv) {
|
|
13
|
-
var _a;
|
|
14
|
-
var libraryTarget = (_a = env.TARGET_TYPE) !== null && _a !== void 0 ? _a : "window";
|
|
15
|
-
var config = {
|
|
16
|
-
context: __dirname,
|
|
17
|
-
entry: {
|
|
18
|
-
jsf: "./src/main/typescript/api/jsf.ts",
|
|
19
|
-
faces: "./src/main/typescript/api/faces.ts"
|
|
20
|
-
},
|
|
21
|
-
devtool: "source-map",
|
|
22
|
-
output: {
|
|
23
|
-
path: path.resolve(__dirname, './dist/' + libraryTarget),
|
|
24
|
-
libraryTarget: libraryTarget,
|
|
25
|
-
filename: (argv.mode == "production") ? "[name].js" : "[name]-development.js"
|
|
26
|
-
},
|
|
27
|
-
resolve: {
|
|
28
|
-
extensions: [".tsx", ".ts", ".json"],
|
|
29
|
-
alias: {
|
|
30
|
-
/*we load the reduced core, because there are some parts we simply do not need*/
|
|
31
|
-
//"mona-dish": path.resolve(__dirname, "node_modules/mona-dish/dist/js/commonjs/index_core.js")
|
|
32
|
-
"mona-dish": path.resolve(__dirname, "node_modules/mona-dish/src/main/typescript/index_core.ts")
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
externals: {
|
|
36
|
-
"rxjs": "RxJS"
|
|
37
|
-
},
|
|
38
|
-
module: {
|
|
39
|
-
rules: [
|
|
40
|
-
// all files with a '.ts' or '.tsx' extension will be handled by 'ts-loader'
|
|
41
|
-
{
|
|
42
|
-
test: /\.tsx?$/, use: [{
|
|
43
|
-
loader: "ts-loader",
|
|
44
|
-
options: {
|
|
45
|
-
allowTsInNodeModules: true
|
|
46
|
-
}
|
|
47
|
-
}]
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
plugins: [
|
|
52
|
-
new CompressionPlugin({
|
|
53
|
-
filename: '[name].js.gz[query]',
|
|
54
|
-
algorithm: 'gzip',
|
|
55
|
-
test: /\.js$|\.css$|\.html$|\.eot?.+$|\.ttf?.+$|\.woff?.+$|\.svg?.+$/,
|
|
56
|
-
threshold: 10240,
|
|
57
|
-
minRatio: 0.3
|
|
58
|
-
}),
|
|
59
|
-
new CompressionPlugin({
|
|
60
|
-
filename: '[name].js.br[query]',
|
|
61
|
-
algorithm: 'brotliCompress',
|
|
62
|
-
test: /\.(js|css|html|svg)$/,
|
|
63
|
-
threshold: 10240,
|
|
64
|
-
minRatio: 0.8
|
|
65
|
-
})
|
|
66
|
-
]
|
|
67
|
-
};
|
|
68
|
-
return config;
|
|
69
|
-
}
|
|
70
|
-
exports["default"] = build;
|
|
71
|
-
//# sourceMappingURL=webpack.config.js.map
|
package/webpack.config.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webpack.config.js","sourceRoot":"","sources":["webpack.config.ts"],"names":[],"mappings":";;AAiBA,2BAA4B;AAE5B,IAAI,iBAAiB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAI9D;;;;;;GAMG;AACH,SAAS,KAAK,CAAC,GAA2B,EAAE,IAA4B;;IAEpE,IAAI,aAAa,GAAG,MAAA,GAAG,CAAC,WAAW,mCAAI,QAAQ,CAAC;IAEhD,IAAM,MAAM,GAA0B;QAClC,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE;YACH,GAAG,EAAE,kCAAkC;YACvC,KAAK,EAAE,oCAAoC;SAC9C;QACD,OAAO,EAAE,YAAY;QAErB,MAAM,EAAE;YACJ,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,GAAG,aAAa,CAAC;YACxD,aAAa,EAAE,aAAa;YAC5B,QAAQ,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,uBAAuB;SAChF;QAED,OAAO,EAAE;YACL,UAAU,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC;YACpC,KAAK,EAAE;gBACH,gFAAgF;gBAChF,+FAA+F;gBAC/F,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,0DAA0D,CAAC;aACnG;SACJ;QACD,S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