openmrs 3.2.0 → 3.2.1-pre.933
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/default-webpack-config.js +67 -23
- package/dist/cli.js +3 -3
- package/package.json +6 -5
- package/src/cli.ts +3 -3
|
@@ -4,7 +4,7 @@ const { CleanWebpackPlugin } = require("clean-webpack-plugin");
|
|
|
4
4
|
const { DefinePlugin, container } = require("webpack");
|
|
5
5
|
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
|
|
6
6
|
const { StatsWriterPlugin } = require("webpack-stats-plugin");
|
|
7
|
-
const { mergeWith, isArray } = require("lodash");
|
|
7
|
+
const { merge, mergeWith, isArray } = require("lodash");
|
|
8
8
|
|
|
9
9
|
const production = "production";
|
|
10
10
|
const { ModuleFederationPlugin } = container;
|
|
@@ -32,6 +32,10 @@ function makeIdent(name) {
|
|
|
32
32
|
|
|
33
33
|
const overrides = {};
|
|
34
34
|
const additionalConfig = {};
|
|
35
|
+
const scriptRuleConfig = {};
|
|
36
|
+
const cssRuleConfig = {};
|
|
37
|
+
const scssRuleConfig = {};
|
|
38
|
+
const assetRuleConfig = {};
|
|
35
39
|
|
|
36
40
|
module.exports = (env, argv = {}) => {
|
|
37
41
|
const root = process.cwd();
|
|
@@ -67,29 +71,41 @@ module.exports = (env, argv = {}) => {
|
|
|
67
71
|
target: "web",
|
|
68
72
|
module: {
|
|
69
73
|
rules: [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
merge(
|
|
75
|
+
{
|
|
76
|
+
test: /\.m?(js|ts|tsx)$/,
|
|
77
|
+
exclude: /(node_modules|bower_components)/,
|
|
78
|
+
use: {
|
|
79
|
+
loader: require.resolve("babel-loader"),
|
|
80
|
+
},
|
|
75
81
|
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
82
|
+
scriptRuleConfig
|
|
83
|
+
),
|
|
84
|
+
merge(
|
|
85
|
+
{
|
|
86
|
+
test: /\.css$/,
|
|
87
|
+
use: [require.resolve("style-loader"), cssLoader],
|
|
88
|
+
},
|
|
89
|
+
cssRuleConfig
|
|
90
|
+
),
|
|
91
|
+
merge(
|
|
92
|
+
{
|
|
93
|
+
test: /\.s[ac]ss$/i,
|
|
94
|
+
use: [
|
|
95
|
+
require.resolve("style-loader"),
|
|
96
|
+
cssLoader,
|
|
97
|
+
{ loader: require.resolve("sass-loader") },
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
scssRuleConfig
|
|
101
|
+
),
|
|
102
|
+
merge(
|
|
103
|
+
{
|
|
104
|
+
test: /\.(png|jpe?g|gif|svg)$/i,
|
|
105
|
+
type: "asset/resource",
|
|
106
|
+
},
|
|
107
|
+
assetRuleConfig
|
|
108
|
+
),
|
|
93
109
|
],
|
|
94
110
|
},
|
|
95
111
|
mode,
|
|
@@ -164,3 +180,31 @@ module.exports.additionalConfig = additionalConfig;
|
|
|
164
180
|
* Make sure to modify this object and not reassign it.
|
|
165
181
|
*/
|
|
166
182
|
module.exports.overrides = overrides;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* This object will be merged into the webpack rule governing
|
|
186
|
+
* the loading of JS, JSX, TS, etc. files.
|
|
187
|
+
* Make sure to modify this object and not reassign it.
|
|
188
|
+
*/
|
|
189
|
+
module.exports.scriptRuleConfig = scriptRuleConfig;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* This object will be merged into the webpack rule governing
|
|
193
|
+
* the loading of CSS files.
|
|
194
|
+
* Make sure to modify this object and not reassign it.
|
|
195
|
+
*/
|
|
196
|
+
module.exports.cssRuleConfig = cssRuleConfig;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* This object will be merged into the webpack rule governing
|
|
200
|
+
* the loading of SCSS files.
|
|
201
|
+
* Make sure to modify this object and not reassign it.
|
|
202
|
+
*/
|
|
203
|
+
module.exports.scssRuleConfig = scssRuleConfig;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* This object will be merged into the webpack rule governing
|
|
207
|
+
* the loading of static asset files.
|
|
208
|
+
* Make sure to modify this object and not reassign it.
|
|
209
|
+
*/
|
|
210
|
+
module.exports.assetRuleConfig = assetRuleConfig;
|
package/dist/cli.js
CHANGED
|
@@ -51,7 +51,7 @@ yargs.command("debug", "Starts a new debugging session of the OpenMRS app shell.
|
|
|
51
51
|
.default("host", "localhost")
|
|
52
52
|
.describe("host", "The host name or IP for the server to use.")
|
|
53
53
|
.string("backend")
|
|
54
|
-
.default("backend", "https://openmrs
|
|
54
|
+
.default("backend", "https://dev3.openmrs.org/")
|
|
55
55
|
.describe("backend", "The backend to proxy API requests to.")
|
|
56
56
|
.string("add-cookie")
|
|
57
57
|
.default("add-cookie", "")
|
|
@@ -94,7 +94,7 @@ yargs.command("develop", "Starts a new frontend module development session with
|
|
|
94
94
|
.default("host", "localhost")
|
|
95
95
|
.describe("host", "The host name or IP for the server to use.")
|
|
96
96
|
.string("backend")
|
|
97
|
-
.default("backend", "https://openmrs
|
|
97
|
+
.default("backend", "https://dev3.openmrs.org/")
|
|
98
98
|
.describe("backend", "The backend to proxy API requests to.")
|
|
99
99
|
.string("add-cookie")
|
|
100
100
|
.default("add-cookie", "")
|
|
@@ -184,7 +184,7 @@ yargs.command(["start", "$0"], "Starts the app shell using the provided configur
|
|
|
184
184
|
.default("host", "localhost")
|
|
185
185
|
.describe("host", "The host name or IP for the server to use.")
|
|
186
186
|
.string("backend")
|
|
187
|
-
.default("backend", "https://openmrs
|
|
187
|
+
.default("backend", "https://dev3.openmrs.org/")
|
|
188
188
|
.describe("backend", "The backend to proxy API requests to.")
|
|
189
189
|
.string("add-cookie")
|
|
190
190
|
.default("add-cookie", "")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openmrs",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1-pre.933",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -35,23 +35,24 @@
|
|
|
35
35
|
"@babel/preset-env": "^7.11.0",
|
|
36
36
|
"@babel/preset-react": "^7.10.4",
|
|
37
37
|
"@babel/preset-typescript": "^7.10.4",
|
|
38
|
-
"@openmrs/esm-app-shell": "3.2.
|
|
38
|
+
"@openmrs/esm-app-shell": "3.2.1-pre.933",
|
|
39
39
|
"@types/react": "^16.9.46",
|
|
40
40
|
"@types/systemjs": "^6.1.0",
|
|
41
|
-
"autoprefixer": "^
|
|
41
|
+
"autoprefixer": "^10.4.2",
|
|
42
42
|
"axios": "^0.21.1",
|
|
43
43
|
"babel-loader": "^8.2.2",
|
|
44
44
|
"browserslist-config-openmrs": "^1.0.1",
|
|
45
45
|
"clean-webpack-plugin": "^4.0.0",
|
|
46
46
|
"copy-webpack-plugin": "^10.0.0",
|
|
47
47
|
"css-loader": "^5.2.4",
|
|
48
|
-
"cssnano": "^
|
|
48
|
+
"cssnano": "^5.0.16",
|
|
49
49
|
"ejs": "^2.6.2",
|
|
50
50
|
"fork-ts-checker-webpack-plugin": "^6.5.0",
|
|
51
51
|
"glob": "^7.1.3",
|
|
52
52
|
"html-webpack-plugin": "^5.5.0",
|
|
53
53
|
"inquirer": "^7.3.3",
|
|
54
54
|
"mini-css-extract-plugin": "^2.4.5",
|
|
55
|
+
"postcss": "^8.4.6",
|
|
55
56
|
"postcss-loader": "^6.2.1",
|
|
56
57
|
"rimraf": "^3.0.2",
|
|
57
58
|
"sass": "^1.44.0",
|
|
@@ -78,5 +79,5 @@
|
|
|
78
79
|
"@types/rimraf": "^2.0.2",
|
|
79
80
|
"@types/tar": "^4.0.3"
|
|
80
81
|
},
|
|
81
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "1b80ed23aaf71ecd7744adaee5e0a885ed643683"
|
|
82
83
|
}
|
package/src/cli.ts
CHANGED
|
@@ -45,7 +45,7 @@ yargs.command(
|
|
|
45
45
|
.default("host", "localhost")
|
|
46
46
|
.describe("host", "The host name or IP for the server to use.")
|
|
47
47
|
.string("backend")
|
|
48
|
-
.default("backend", "https://openmrs
|
|
48
|
+
.default("backend", "https://dev3.openmrs.org/")
|
|
49
49
|
.describe("backend", "The backend to proxy API requests to.")
|
|
50
50
|
.string("add-cookie")
|
|
51
51
|
.default("add-cookie", "")
|
|
@@ -139,7 +139,7 @@ yargs.command(
|
|
|
139
139
|
.default("host", "localhost")
|
|
140
140
|
.describe("host", "The host name or IP for the server to use.")
|
|
141
141
|
.string("backend")
|
|
142
|
-
.default("backend", "https://openmrs
|
|
142
|
+
.default("backend", "https://dev3.openmrs.org/")
|
|
143
143
|
.describe("backend", "The backend to proxy API requests to.")
|
|
144
144
|
.string("add-cookie")
|
|
145
145
|
.default("add-cookie", "")
|
|
@@ -337,7 +337,7 @@ yargs.command(
|
|
|
337
337
|
.default("host", "localhost")
|
|
338
338
|
.describe("host", "The host name or IP for the server to use.")
|
|
339
339
|
.string("backend")
|
|
340
|
-
.default("backend", "https://openmrs
|
|
340
|
+
.default("backend", "https://dev3.openmrs.org/")
|
|
341
341
|
.describe("backend", "The backend to proxy API requests to.")
|
|
342
342
|
.string("add-cookie")
|
|
343
343
|
.default("add-cookie", "")
|