Rebuilt lock file and deps reduction
This commit is contained in:
parent
581367d1f6
commit
5e6502f25f
5 changed files with 1483 additions and 8412 deletions
14
.babelrc
14
.babelrc
|
|
@ -1,4 +1,8 @@
|
|||
{
|
||||
"assumptions": {
|
||||
"setPublicClassFields": true,
|
||||
"privateFieldsAsProperties": true
|
||||
},
|
||||
"presets": [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
|
|
@ -8,16 +12,10 @@
|
|||
},
|
||||
"exclude": [
|
||||
"@babel/transform-classes",
|
||||
"@babel/plugin-transform-class-properties",
|
||||
"@babel/plugin-transform-private-methods",
|
||||
"@babel/plugin-transform-private-property-in-object"
|
||||
"@babel/transform-regenerator",
|
||||
"@babel/transform-async-generator-functions"
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
"plugins": [
|
||||
["@babel/plugin-transform-class-properties", { "loose": true }],
|
||||
["@babel/plugin-transform-private-methods", { "loose": true }],
|
||||
["@babel/plugin-transform-private-property-in-object", { "loose": true }]
|
||||
]
|
||||
}
|
||||
|
|
|
|||
3
Makefile
3
Makefile
|
|
@ -160,10 +160,9 @@ docs-cleanup:
|
|||
|
||||
.PHONY: web-build
|
||||
# web-build: Build JS packages static/js
|
||||
# TODO need to upgrade to webpack 5 and remove -e NODE_OPTIONS=--openssl-legacy-provider
|
||||
web-build:
|
||||
rm -rf node_modules
|
||||
docker run -it --rm -e NODE_OPTIONS=--openssl-legacy-provider -v $(PWD):/project --workdir=/project rhodecode/static-files-build:24 -c "npm install && /project/node_modules/.bin/grunt"
|
||||
docker run -it --rm -v $(PWD):/project --workdir=/project rhodecode/static-files-build:24 -c "npm install && /project/node_modules/.bin/grunt"
|
||||
# run static file check
|
||||
./rhodecode/tests/scripts/static-file-check.sh rhodecode/public/
|
||||
rm -rf node_modules
|
||||
|
|
|
|||
9834
package-lock.json
generated
9834
package-lock.json
generated
File diff suppressed because it is too large
Load diff
17
rhodecode/public/js/rhodecode-components.js.LICENSE.txt
Normal file
17
rhodecode/public/js/rhodecode-components.js.LICENSE.txt
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2018 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
|
@ -12,6 +12,10 @@ if (process.env.RC_STATIC_DIR) {
|
|||
|
||||
// doing it this way because it seems that plugin via grunt does not pick up .babelrc
|
||||
let babelRCOptions = {
|
||||
"assumptions": {
|
||||
"setPublicClassFields": true,
|
||||
"privateFieldsAsProperties": true
|
||||
},
|
||||
"presets": [
|
||||
["@babel/preset-env", {
|
||||
"targets": {
|
||||
|
|
@ -20,17 +24,9 @@ let babelRCOptions = {
|
|||
"exclude": [
|
||||
"@babel/transform-classes",
|
||||
"@babel/transform-regenerator",
|
||||
"@babel/transform-async-generator-functions",
|
||||
"@babel/plugin-transform-class-properties",
|
||||
"@babel/plugin-transform-private-methods",
|
||||
"@babel/plugin-transform-private-property-in-object"
|
||||
"@babel/transform-async-generator-functions"
|
||||
]
|
||||
}]
|
||||
],
|
||||
"plugins": [
|
||||
["@babel/plugin-transform-class-properties", { "loose": true }],
|
||||
["@babel/plugin-transform-private-methods", { "loose": true }],
|
||||
["@babel/plugin-transform-private-property-in-object", { "loose": true }]
|
||||
]
|
||||
};
|
||||
|
||||
|
|
@ -57,8 +53,8 @@ module.exports = {
|
|||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /style-lit.css/,
|
||||
use: 'raw-loader'
|
||||
test: /style-lit\.css$/,
|
||||
type: 'asset/source'
|
||||
},
|
||||
{
|
||||
// Babel-loader for JS files
|
||||
|
|
@ -67,8 +63,13 @@ module.exports = {
|
|||
use: {loader: 'babel-loader', options: babelRCOptions}
|
||||
},
|
||||
{
|
||||
test: /intl-messageformat.min.js/,
|
||||
use: 'imports-loader?this=>window'
|
||||
test: /intl-messageformat\.min\.js$/,
|
||||
use: {
|
||||
loader: 'imports-loader',
|
||||
options: {
|
||||
wrapper: 'window'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue