-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade node dependencies and node to 22
Issue: BB-585
- Loading branch information
Showing
9 changed files
with
2,382 additions
and
3,751 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:16 | ||
FROM node:22 | ||
|
||
RUN mkdir /app | ||
COPY package.json /app | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,8 @@ NODE_PATH=${NODE_PATH:-node_modules} | |
# port for cloudserver | ||
PORT=8000 | ||
|
||
git clone --branch 8.6.8 [email protected]:scality/cloudserver | ||
|
||
if [ ! -d "${NODE_PATH}/@zenko/cloudserver" ]; then | ||
echo "cloudserver module was not found!" | ||
exit 1 | ||
|
@@ -19,6 +21,6 @@ killandsleep () { | |
sleep 10 | ||
} | ||
|
||
cd ${NODE_PATH}/@zenko/cloudserver && yarn run mem_backend & bash tests/utils/wait_for_local_port.bash $PORT 40 | ||
cd cloudserver && yarn run mem_backend & bash tests/utils/wait_for_local_port.bash $PORT 40 | ||
./node_modules/.bin/nyc --clean --silent yarn run $1 | ||
./node_modules/.bin/nyc report --report-dir "./coverage/$1" --reporter=lcov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import mocha from "eslint-plugin-mocha"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import js from "@eslint/js"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all | ||
}); | ||
|
||
export default [...compat.extends("scality"), { | ||
plugins: { | ||
mocha, | ||
}, | ||
|
||
languageOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: "script", | ||
}, | ||
|
||
settings: { | ||
"import/resolver": { | ||
node: { | ||
paths: ["/backbeat/node_modules", "node_modules"], | ||
}, | ||
}, | ||
}, | ||
|
||
rules: { | ||
"object-curly-newline": "off", | ||
"import/newline-after-import": "off", | ||
"import/order": "off", | ||
"prefer-destructuring": "off", | ||
"operator-linebreak": "off", | ||
"no-underscore-dangle": "off", | ||
indent: "off", | ||
"function-paren-newline": "off", | ||
"implicit-arrow-linebreak": "off", | ||
"no-bitwise": "off", | ||
"comma-dangle": "off", | ||
"padded-blocks": "off", | ||
"lines-around-directive": "off", | ||
"global-require": "off", | ||
"import/no-dynamic-require": "off", | ||
"object-property-newline": "off", | ||
"no-plusplus": "off", | ||
"class-methods-use-this": "off", | ||
"no-lonely-if": "off", | ||
"no-else-return": "off", | ||
"dot-location": "off", | ||
"no-restricted-properties": "off", | ||
"no-buffer-constructor": "off", | ||
"no-restricted-globals": "off", | ||
"no-useless-return": "off", | ||
"no-multi-spaces": "off", | ||
"space-unary-ops": "off", | ||
"no-undef-init": "off", | ||
"newline-per-chained-call": "off", | ||
"no-useless-escape": "off", | ||
"mocha/no-exclusive-tests": "error", | ||
}, | ||
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.