Procházet zdrojové kódy

[monorepo] migrate monorepo checks to Jenkins (#28765)

GitOrigin-RevId: ebc3db95cebe99226f8de0f66c1830eb5d78e26c
Jakob Ackermann před 10 měsíci
rodič
revize
5fe9d3d6e9

+ 2 - 0
package.json

@@ -43,6 +43,8 @@
   "scripts": {
   "scripts": {
     "format": "prettier --list-different $PWD/'**/*.js'",
     "format": "prettier --list-different $PWD/'**/*.js'",
     "format:fix": "prettier --write $PWD/'**/*.js'",
     "format:fix": "prettier --write $PWD/'**/*.js'",
+    "format:jenkins": "prettier --list-different $PWD/'**/Jenkinsfile'",
+    "format:jenkins:fix": "prettier --write $PWD/'**/Jenkinsfile'",
     "lint": "eslint --max-warnings 0 --format unix .",
     "lint": "eslint --max-warnings 0 --format unix .",
     "lint:fix": "eslint --fix .",
     "lint:fix": "eslint --fix .",
     "postinstall": "patch-package"
     "postinstall": "patch-package"

+ 2 - 2
server-ce/test/package.json

@@ -5,8 +5,8 @@
   "scripts": {
   "scripts": {
     "cypress:open": "cypress open --e2e --browser chrome",
     "cypress:open": "cypress open --e2e --browser chrome",
     "cypress:run": "cypress run --e2e --browser chrome",
     "cypress:run": "cypress run --e2e --browser chrome",
-    "format": "prettier --list-different $PWD/'**/{*.{js,mjs,ts,tsx,json},Jenkinsfile}'",
-    "format:fix": "prettier --write $PWD/'**/{*.{js,mjs,ts,tsx,json},Jenkinsfile}'"
+    "format": "prettier --list-different $PWD/'**/*.{js,mjs,ts,tsx,json}'",
+    "format:fix": "prettier --write $PWD/'**/*.{js,mjs,ts,tsx,json}'"
   },
   },
   "dependencies": {
   "dependencies": {
     "@isomorphic-git/lightning-fs": "^4.6.0",
     "@isomorphic-git/lightning-fs": "^4.6.0",

+ 2 - 2
services/chat/package.json

@@ -12,8 +12,8 @@
     "test:acceptance:_run": "mocha --recursive --reporter spec --timeout 15000 --exit $@ test/acceptance/js",
     "test:acceptance:_run": "mocha --recursive --reporter spec --timeout 15000 --exit $@ test/acceptance/js",
     "test:unit:_run": "mocha --recursive --reporter spec --exit $@ test/unit/js",
     "test:unit:_run": "mocha --recursive --reporter spec --exit $@ test/unit/js",
     "lint": "eslint --max-warnings 0 --format unix .",
     "lint": "eslint --max-warnings 0 --format unix .",
-    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
-    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
+    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts}'",
+    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts}'",
     "lint:fix": "eslint --fix .",
     "lint:fix": "eslint --fix .",
     "types:check": "tsc --noEmit"
     "types:check": "tsc --noEmit"
   },
   },

+ 2 - 2
services/clsi/package.json

@@ -11,8 +11,8 @@
     "test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
     "test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
     "nodemon": "node --watch app.js",
     "nodemon": "node --watch app.js",
     "lint": "eslint --max-warnings 0 --format unix .",
     "lint": "eslint --max-warnings 0 --format unix .",
-    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
-    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
+    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts}'",
+    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts}'",
     "lint:fix": "eslint --fix .",
     "lint:fix": "eslint --fix .",
     "types:check": "tsc --noEmit"
     "types:check": "tsc --noEmit"
   },
   },

+ 2 - 2
services/contacts/package.json

@@ -12,8 +12,8 @@
     "test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
     "test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
     "nodemon": "node --watch app.js",
     "nodemon": "node --watch app.js",
     "lint": "eslint --max-warnings 0 --format unix .",
     "lint": "eslint --max-warnings 0 --format unix .",
-    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
-    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
+    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts}'",
+    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts}'",
     "lint:fix": "eslint --fix .",
     "lint:fix": "eslint --fix .",
     "types:check": "tsc --noEmit"
     "types:check": "tsc --noEmit"
   },
   },

+ 2 - 2
services/docstore/package.json

@@ -11,8 +11,8 @@
     "test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
     "test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
     "nodemon": "node --watch app.js",
     "nodemon": "node --watch app.js",
     "lint": "eslint --max-warnings 0 --format unix .",
     "lint": "eslint --max-warnings 0 --format unix .",
-    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
-    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
+    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts}'",
+    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts}'",
     "lint:fix": "eslint --fix .",
     "lint:fix": "eslint --fix .",
     "types:check": "tsc --noEmit"
     "types:check": "tsc --noEmit"
   },
   },

+ 2 - 2
services/document-updater/package.json

@@ -12,8 +12,8 @@
     "nodemon": "node --watch app.js",
     "nodemon": "node --watch app.js",
     "benchmark:apply": "node benchmarks/apply",
     "benchmark:apply": "node benchmarks/apply",
     "lint": "eslint --max-warnings 0 --format unix .",
     "lint": "eslint --max-warnings 0 --format unix .",
-    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
-    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
+    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts}'",
+    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts}'",
     "lint:fix": "eslint --fix .",
     "lint:fix": "eslint --fix .",
     "types:check": "tsc --noEmit"
     "types:check": "tsc --noEmit"
   },
   },

+ 2 - 2
services/filestore/package.json

@@ -11,8 +11,8 @@
     "start": "node app.js",
     "start": "node app.js",
     "nodemon": "node --watch app.js",
     "nodemon": "node --watch app.js",
     "lint": "eslint --max-warnings 0 --format unix .",
     "lint": "eslint --max-warnings 0 --format unix .",
-    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
-    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
+    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts}'",
+    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts}'",
     "test:acceptance:_run": "mocha --recursive --reporter spec --timeout 15000 --exit $@ test/acceptance/js",
     "test:acceptance:_run": "mocha --recursive --reporter spec --timeout 15000 --exit $@ test/acceptance/js",
     "test:unit:_run": "mocha --recursive --reporter spec --exit $@ test/unit/js",
     "test:unit:_run": "mocha --recursive --reporter spec --exit $@ test/unit/js",
     "lint:fix": "eslint --fix .",
     "lint:fix": "eslint --fix .",

+ 2 - 2
services/history-v1/package.json

@@ -62,8 +62,8 @@
     "start": "node app.js",
     "start": "node app.js",
     "lint": "eslint --max-warnings 0 --format unix .",
     "lint": "eslint --max-warnings 0 --format unix .",
     "lint:fix": "eslint --fix .",
     "lint:fix": "eslint --fix .",
-    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
-    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
+    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts}'",
+    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts}'",
     "test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
     "test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
     "test:acceptance": "npm run test:acceptance:_run -- --grep=$MOCHA_GREP",
     "test:acceptance": "npm run test:acceptance:_run -- --grep=$MOCHA_GREP",
     "test:unit:_run": "mocha --recursive --reporter spec --exit $@ test/unit/js",
     "test:unit:_run": "mocha --recursive --reporter spec --exit $@ test/unit/js",

+ 2 - 2
services/notifications/package.json

@@ -11,8 +11,8 @@
     "test:unit:_run": "vitest --config ./vitest.config.unit.cjs",
     "test:unit:_run": "vitest --config ./vitest.config.unit.cjs",
     "test:unit": "npm run test:unit:_run",
     "test:unit": "npm run test:unit:_run",
     "lint": "eslint --max-warnings 0 --format unix .",
     "lint": "eslint --max-warnings 0 --format unix .",
-    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
-    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
+    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts}'",
+    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts}'",
     "lint:fix": "eslint --fix .",
     "lint:fix": "eslint --fix .",
     "types:check": "tsc --noEmit",
     "types:check": "tsc --noEmit",
     "nodemon": "node --watch app.js"
     "nodemon": "node --watch app.js"

+ 2 - 2
services/project-history/package.json

@@ -12,8 +12,8 @@
     "test:acceptance:_run": "mocha --loader=esmock --recursive --reporter spec --timeout 15000 --exit $@ test/acceptance/js",
     "test:acceptance:_run": "mocha --loader=esmock --recursive --reporter spec --timeout 15000 --exit $@ test/acceptance/js",
     "test:unit:_run": "mocha --loader=esmock --recursive --reporter spec --exit $@ test/unit/js",
     "test:unit:_run": "mocha --loader=esmock --recursive --reporter spec --exit $@ test/unit/js",
     "lint": "eslint --max-warnings 0 --format unix .",
     "lint": "eslint --max-warnings 0 --format unix .",
-    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
-    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
+    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts}'",
+    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts}'",
     "lint:fix": "eslint --fix .",
     "lint:fix": "eslint --fix .",
     "types:check": "tsc --noEmit"
     "types:check": "tsc --noEmit"
   },
   },

+ 2 - 2
services/real-time/package.json

@@ -11,8 +11,8 @@
     "test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
     "test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
     "nodemon": "node --watch app.js",
     "nodemon": "node --watch app.js",
     "lint": "eslint --max-warnings 0 --format unix .",
     "lint": "eslint --max-warnings 0 --format unix .",
-    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
-    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts,Jenkinsfile}'",
+    "format": "prettier --list-different $PWD/'**/{*.*js,*.ts}'",
+    "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts}'",
     "lint:fix": "eslint --fix .",
     "lint:fix": "eslint --fix .",
     "types:check": "tsc --noEmit"
     "types:check": "tsc --noEmit"
   },
   },