@openedx/frontend-build 13.0.15 → 13.0.16
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/README.md +11 -11
- package/bin/fedx-scripts.js +1 -1
- package/config/getLocalAliases.js +2 -2
- package/coverage/clover.xml +2 -2
- package/coverage/lcov-report/index.html +1 -1
- package/example/dist/report.html +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://travis-ci.com/edx/frontend-build)
|
|
5
|
-

|
|
6
6
|
[](https://codecov.io/gh/edx/frontend-build)
|
|
7
|
-
[](https://github.com/edx-unsupported/frontend-base/blob/master/LICENSE)
|
|
8
8
|
|
|
9
9
|
## Purpose
|
|
10
10
|
|
|
@@ -62,7 +62,7 @@ package.json:
|
|
|
62
62
|
...
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@
|
|
65
|
+
"@openedx/frontend-build": "1.0.0"
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -84,14 +84,14 @@ files or supplying your own wholesale.
|
|
|
84
84
|
|
|
85
85
|
Method 1: Extend base config (babel.config.js):
|
|
86
86
|
|
|
87
|
-
const { createConfig } = require('@
|
|
87
|
+
const { createConfig } = require('@openedx/frontend-build');
|
|
88
88
|
module.exports = createConfig('babel', {
|
|
89
89
|
/* option overrides or extensions */
|
|
90
90
|
});
|
|
91
91
|
|
|
92
92
|
Method 2: Custom manipulations (babel.config.js):
|
|
93
93
|
|
|
94
|
-
const { getBaseConfig } = require('@
|
|
94
|
+
const { getBaseConfig } = require('@openedx/frontend-build');
|
|
95
95
|
const config = getBaseConfig('babel');
|
|
96
96
|
|
|
97
97
|
/* Custom config manipulations */
|
|
@@ -133,7 +133,7 @@ if you need to do this and are running into problems.
|
|
|
133
133
|
The development webpack configuration allows engineers to create a
|
|
134
134
|
\"module.config.js\" file containing local module overrides. This means
|
|
135
135
|
that if you\'re developing a new feature in a shared library
|
|
136
|
-
(\@edx/frontend-platform, \@
|
|
136
|
+
(\@edx/frontend-platform, \@openedx/paragon, etc.), you can add the local
|
|
137
137
|
location of that repository to your module.config.js file and the
|
|
138
138
|
webpack build for your application will automatically pick it up and use
|
|
139
139
|
it, rather than its node\_modules version of the file.
|
|
@@ -155,10 +155,10 @@ frontend-platform:
|
|
|
155
155
|
dist: The sub-directory of the source code where it puts its build artifact. Often "dist".
|
|
156
156
|
*/
|
|
157
157
|
localModules: [
|
|
158
|
-
{ moduleName: '@
|
|
159
|
-
{ moduleName: '@
|
|
160
|
-
{ moduleName: '@
|
|
161
|
-
{ moduleName: '@
|
|
158
|
+
{ moduleName: '@openedx/brand', dir: '../src/brand-openedx' }, // replace with your brand checkout
|
|
159
|
+
{ moduleName: '@openedx/paragon/scss/core', dir: '../src/paragon', dist: 'scss/core' },
|
|
160
|
+
{ moduleName: '@openedx/paragon/icons', dir: '../src/paragon', dist: 'icons' },
|
|
161
|
+
{ moduleName: '@openedx/paragon', dir: '../src/paragon', dist: 'dist' },
|
|
162
162
|
{ moduleName: '@edx/frontend-platform', dir: '../src/frontend-platform', dist: 'dist' },
|
|
163
163
|
],
|
|
164
164
|
};
|
|
@@ -232,7 +232,7 @@ project you can do the following:
|
|
|
232
232
|
modules folder
|
|
233
233
|
`mv ../frontend-build ./ && rm -rf frontend-build/node_modules`
|
|
234
234
|
3. Install the development version of frontend-build
|
|
235
|
-
`npm i --save-dev @
|
|
235
|
+
`npm i --save-dev @openedx/frontend-build@file:./frontend-build`.
|
|
236
236
|
|
|
237
237
|
## License
|
|
238
238
|
|
package/bin/fedx-scripts.js
CHANGED
|
@@ -70,7 +70,7 @@ switch (commandName) {
|
|
|
70
70
|
break;
|
|
71
71
|
case 'formatjs': {
|
|
72
72
|
const commonArgs = [
|
|
73
|
-
'--format', 'node_modules/@
|
|
73
|
+
'--format', 'node_modules/@openedx/frontend-build/lib/formatter.js',
|
|
74
74
|
'--ignore', 'src/**/*.json',
|
|
75
75
|
'--out-file', './temp/babel-plugin-formatjs/Default.messages.json',
|
|
76
76
|
'--', 'src/**/*.js*',
|
|
@@ -20,8 +20,8 @@ The module.config.js file should have the form:
|
|
|
20
20
|
|
|
21
21
|
Some working examples, as of the time of this writing:
|
|
22
22
|
|
|
23
|
-
{ moduleName: '@
|
|
24
|
-
{ moduleName: '@
|
|
23
|
+
{ moduleName: '@openedx/paragon/scss', dir: '../paragon', dist: 'scss' }
|
|
24
|
+
{ moduleName: '@openedx/paragon', dir: '../paragon', dist: 'dist' }
|
|
25
25
|
{ moduleName: '@edx/frontend-platform', dir: '../frontend-platform', dist: 'dist' }
|
|
26
26
|
|
|
27
27
|
*/
|
package/coverage/clover.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
2
|
+
<coverage generated="1702659749074" clover="3.2.0">
|
|
3
|
+
<project timestamp="1702659749074" name="All files">
|
|
4
4
|
<metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0" elements="0" coveredelements="0" complexity="0" loc="0" ncloc="0" packages="0" files="0" classes="0"/>
|
|
5
5
|
</project>
|
|
6
6
|
</coverage>
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
87
87
|
Code coverage generated by
|
|
88
88
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
89
|
-
at 2023-12-
|
|
89
|
+
at 2023-12-15T17:02:29.072Z
|
|
90
90
|
</div>
|
|
91
91
|
<script src="prettify.js"></script>
|
|
92
92
|
<script>
|
package/example/dist/report.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8"/>
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
6
|
-
<title>example [15 Dec 2023 at
|
|
6
|
+
<title>example [15 Dec 2023 at 17:02]</title>
|
|
7
7
|
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQE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