mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
[monorepo] fix running make lint from root (#33559)
* [monorepo] remove spurious package-name field from buildscript.txt * [monorepo] align variables/paths across build script variants * [monorepo] align linting/test setup for jobs/libraries * [monorepo] fix "make lint/lint_fix" from root * [wiki-algolia] integrate with yarn workspace GitOrigin-RevId: a0954f2936d03cd4a69b3f2c8098d9ee2e361993
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
# Run the test commands in the scope of the monorepo.
|
||||
# Eslint and prettier (plus some configs) are on the root.
|
||||
RUN_LINTING = ../../bin/run -w /overleaf/libraries/access-token-encryptor monorepo yarn run --silent
|
||||
RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent
|
||||
|
||||
WITH_CACHE_FOLDER = \
|
||||
lint \
|
||||
lint_ci \
|
||||
lint_fix \
|
||||
format \
|
||||
format_ci \
|
||||
format_fix \
|
||||
typecheck \
|
||||
typecheck_ci \
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/
|
||||
../../node_modules/.cache/prettier/:
|
||||
mkdir -p $@
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/
|
||||
../../node_modules/.cache/eslint/:
|
||||
mkdir -p $@
|
||||
|
||||
format:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/access-token-encryptor
|
||||
|
||||
format_ci:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/access-token-encryptor
|
||||
|
||||
format_fix:
|
||||
$(RUN_LINTING_MONOREPO) format:fix libraries/access-token-encryptor
|
||||
|
||||
lint:
|
||||
$(RUN_LINTING) lint
|
||||
|
||||
lint_ci:
|
||||
-$(RUN_LINTING) lint --format json --output-file reports/eslint.json
|
||||
sed -i 's_"filePath":"/overleaf_"filePath":"$(MONOREPO)_g' reports/eslint.json
|
||||
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
typecheck_ci:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: test_unit
|
||||
test_unit:
|
||||
ifneq (,$(wildcard test/unit))
|
||||
$(RUN_LINTING) test:unit
|
||||
endif
|
||||
|
||||
test: test_acceptance
|
||||
test_acceptance:
|
||||
ifneq (,$(wildcard test/acceptance))
|
||||
$(RUN_LINTING) test:acceptance
|
||||
endif
|
||||
@@ -5,6 +5,5 @@ access-token-encryptor
|
||||
--esmock-loader=False
|
||||
--is-library=True
|
||||
--node-version=24.14.1
|
||||
--package-name=@overleaf/access-token-encryptor
|
||||
--pipeline-owner=32
|
||||
--public-repo=False
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
# Run the test commands in the scope of the monorepo.
|
||||
# Eslint and prettier (plus some configs) are on the root.
|
||||
RUN_LINTING = ../../bin/run -w /overleaf/libraries/fetch-utils monorepo yarn run --silent
|
||||
RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent
|
||||
|
||||
WITH_CACHE_FOLDER = \
|
||||
lint \
|
||||
lint_ci \
|
||||
lint_fix \
|
||||
format \
|
||||
format_ci \
|
||||
format_fix \
|
||||
typecheck \
|
||||
typecheck_ci \
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/
|
||||
../../node_modules/.cache/prettier/:
|
||||
mkdir -p $@
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/
|
||||
../../node_modules/.cache/eslint/:
|
||||
mkdir -p $@
|
||||
|
||||
format:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/fetch-utils
|
||||
|
||||
format_ci:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/fetch-utils
|
||||
|
||||
format_fix:
|
||||
$(RUN_LINTING_MONOREPO) format:fix libraries/fetch-utils
|
||||
|
||||
lint:
|
||||
$(RUN_LINTING) lint
|
||||
|
||||
lint_ci:
|
||||
-$(RUN_LINTING) lint --format json --output-file reports/eslint.json
|
||||
sed -i 's_"filePath":"/overleaf_"filePath":"$(MONOREPO)_g' reports/eslint.json
|
||||
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
typecheck_ci:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: test_unit
|
||||
test_unit:
|
||||
ifneq (,$(wildcard test/unit))
|
||||
$(RUN_LINTING) test:unit
|
||||
endif
|
||||
|
||||
test: test_acceptance
|
||||
test_acceptance:
|
||||
ifneq (,$(wildcard test/acceptance))
|
||||
$(RUN_LINTING) test:acceptance
|
||||
endif
|
||||
@@ -5,6 +5,5 @@ fetch-utils
|
||||
--esmock-loader=False
|
||||
--is-library=True
|
||||
--node-version=24.14.1
|
||||
--package-name=@overleaf/fetch-utils
|
||||
--pipeline-owner=32
|
||||
--public-repo=False
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
# Run the test commands in the scope of the monorepo.
|
||||
# Eslint and prettier (plus some configs) are on the root.
|
||||
RUN_LINTING = ../../bin/run -w /overleaf/libraries/logger monorepo yarn run --silent
|
||||
RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent
|
||||
|
||||
WITH_CACHE_FOLDER = \
|
||||
lint \
|
||||
lint_ci \
|
||||
lint_fix \
|
||||
format \
|
||||
format_ci \
|
||||
format_fix \
|
||||
typecheck \
|
||||
typecheck_ci \
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/
|
||||
../../node_modules/.cache/prettier/:
|
||||
mkdir -p $@
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/
|
||||
../../node_modules/.cache/eslint/:
|
||||
mkdir -p $@
|
||||
|
||||
format:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/logger
|
||||
|
||||
format_ci:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/logger
|
||||
|
||||
format_fix:
|
||||
$(RUN_LINTING_MONOREPO) format:fix libraries/logger
|
||||
|
||||
lint:
|
||||
$(RUN_LINTING) lint
|
||||
|
||||
lint_ci:
|
||||
-$(RUN_LINTING) lint --format json --output-file reports/eslint.json
|
||||
sed -i 's_"filePath":"/overleaf_"filePath":"$(MONOREPO)_g' reports/eslint.json
|
||||
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
typecheck_ci:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: test_unit
|
||||
test_unit:
|
||||
ifneq (,$(wildcard test/unit))
|
||||
$(RUN_LINTING) test:unit
|
||||
endif
|
||||
|
||||
test: test_acceptance
|
||||
test_acceptance:
|
||||
ifneq (,$(wildcard test/acceptance))
|
||||
$(RUN_LINTING) test:acceptance
|
||||
endif
|
||||
@@ -5,6 +5,5 @@ logger
|
||||
--esmock-loader=False
|
||||
--is-library=True
|
||||
--node-version=24.14.1
|
||||
--package-name=@overleaf/logger
|
||||
--pipeline-owner=32
|
||||
--public-repo=False
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
# Run the test commands in the scope of the monorepo.
|
||||
# Eslint and prettier (plus some configs) are on the root.
|
||||
RUN_LINTING = ../../bin/run -w /overleaf/libraries/metrics monorepo yarn run --silent
|
||||
RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent
|
||||
|
||||
WITH_CACHE_FOLDER = \
|
||||
lint \
|
||||
lint_ci \
|
||||
lint_fix \
|
||||
format \
|
||||
format_ci \
|
||||
format_fix \
|
||||
typecheck \
|
||||
typecheck_ci \
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/
|
||||
../../node_modules/.cache/prettier/:
|
||||
mkdir -p $@
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/
|
||||
../../node_modules/.cache/eslint/:
|
||||
mkdir -p $@
|
||||
|
||||
format:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/metrics
|
||||
|
||||
format_ci:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/metrics
|
||||
|
||||
format_fix:
|
||||
$(RUN_LINTING_MONOREPO) format:fix libraries/metrics
|
||||
|
||||
lint:
|
||||
$(RUN_LINTING) lint
|
||||
|
||||
lint_ci:
|
||||
-$(RUN_LINTING) lint --format json --output-file reports/eslint.json
|
||||
sed -i 's_"filePath":"/overleaf_"filePath":"$(MONOREPO)_g' reports/eslint.json
|
||||
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
typecheck_ci:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: test_unit
|
||||
test_unit:
|
||||
ifneq (,$(wildcard test/unit))
|
||||
$(RUN_LINTING) test:unit
|
||||
endif
|
||||
|
||||
test: test_acceptance
|
||||
test_acceptance:
|
||||
ifneq (,$(wildcard test/acceptance))
|
||||
$(RUN_LINTING) test:acceptance
|
||||
endif
|
||||
@@ -5,6 +5,5 @@ metrics
|
||||
--esmock-loader=False
|
||||
--is-library=True
|
||||
--node-version=24.14.1
|
||||
--package-name=@overleaf/metrics
|
||||
--pipeline-owner=32
|
||||
--public-repo=False
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
# Run the test commands in the scope of the monorepo.
|
||||
# Eslint and prettier (plus some configs) are on the root.
|
||||
RUN_LINTING = ../../bin/run -w /overleaf/libraries/mongo-utils monorepo yarn run --silent
|
||||
RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent
|
||||
|
||||
WITH_CACHE_FOLDER = \
|
||||
lint \
|
||||
lint_ci \
|
||||
lint_fix \
|
||||
format \
|
||||
format_ci \
|
||||
format_fix \
|
||||
typecheck \
|
||||
typecheck_ci \
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/
|
||||
../../node_modules/.cache/prettier/:
|
||||
mkdir -p $@
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/
|
||||
../../node_modules/.cache/eslint/:
|
||||
mkdir -p $@
|
||||
|
||||
format:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/mongo-utils
|
||||
|
||||
format_ci:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/mongo-utils
|
||||
|
||||
format_fix:
|
||||
$(RUN_LINTING_MONOREPO) format:fix libraries/mongo-utils
|
||||
|
||||
lint:
|
||||
$(RUN_LINTING) lint
|
||||
|
||||
lint_ci:
|
||||
-$(RUN_LINTING) lint --format json --output-file reports/eslint.json
|
||||
sed -i 's_"filePath":"/overleaf_"filePath":"$(MONOREPO)_g' reports/eslint.json
|
||||
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
typecheck_ci:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: test_unit
|
||||
test_unit:
|
||||
ifneq (,$(wildcard test/unit))
|
||||
$(RUN_LINTING) test:unit
|
||||
endif
|
||||
|
||||
test: test_acceptance
|
||||
test_acceptance:
|
||||
ifneq (,$(wildcard test/acceptance))
|
||||
$(RUN_LINTING) test:acceptance
|
||||
endif
|
||||
@@ -5,7 +5,6 @@ mongo-utils
|
||||
--esmock-loader=False
|
||||
--is-library=True
|
||||
--node-version=24.14.1
|
||||
--package-name=@overleaf/mongo-utils
|
||||
--pipeline-owner=32
|
||||
--public-repo=False
|
||||
--tsconfig-no-implicit-any=True
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
# Run the test commands in the scope of the monorepo.
|
||||
# Eslint and prettier (plus some configs) are on the root.
|
||||
RUN_LINTING = ../../bin/run -w /overleaf/libraries/o-error monorepo yarn run --silent
|
||||
RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent
|
||||
|
||||
WITH_CACHE_FOLDER = \
|
||||
lint \
|
||||
lint_ci \
|
||||
lint_fix \
|
||||
format \
|
||||
format_ci \
|
||||
format_fix \
|
||||
typecheck \
|
||||
typecheck_ci \
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/
|
||||
../../node_modules/.cache/prettier/:
|
||||
mkdir -p $@
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/
|
||||
../../node_modules/.cache/eslint/:
|
||||
mkdir -p $@
|
||||
|
||||
format:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/o-error
|
||||
|
||||
format_ci:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/o-error
|
||||
|
||||
format_fix:
|
||||
$(RUN_LINTING_MONOREPO) format:fix libraries/o-error
|
||||
|
||||
lint:
|
||||
$(RUN_LINTING) lint
|
||||
|
||||
lint_ci:
|
||||
-$(RUN_LINTING) lint --format json --output-file reports/eslint.json
|
||||
sed -i 's_"filePath":"/overleaf_"filePath":"$(MONOREPO)_g' reports/eslint.json
|
||||
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
typecheck_ci:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: test_unit
|
||||
test_unit:
|
||||
ifneq (,$(wildcard test/unit))
|
||||
$(RUN_LINTING) test:unit
|
||||
endif
|
||||
|
||||
test: test_acceptance
|
||||
test_acceptance:
|
||||
ifneq (,$(wildcard test/acceptance))
|
||||
$(RUN_LINTING) test:acceptance
|
||||
endif
|
||||
@@ -5,6 +5,5 @@ o-error
|
||||
--esmock-loader=False
|
||||
--is-library=True
|
||||
--node-version=24.14.1
|
||||
--package-name=@overleaf/o-error
|
||||
--pipeline-owner=32
|
||||
--public-repo=False
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
# Run the test commands in the scope of the monorepo.
|
||||
# Eslint and prettier (plus some configs) are on the root.
|
||||
RUN_LINTING = ../../bin/run -w /overleaf/libraries/object-persistor monorepo yarn run --silent
|
||||
RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent
|
||||
|
||||
WITH_CACHE_FOLDER = \
|
||||
lint \
|
||||
lint_ci \
|
||||
lint_fix \
|
||||
format \
|
||||
format_ci \
|
||||
format_fix \
|
||||
typecheck \
|
||||
typecheck_ci \
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/
|
||||
../../node_modules/.cache/prettier/:
|
||||
mkdir -p $@
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/
|
||||
../../node_modules/.cache/eslint/:
|
||||
mkdir -p $@
|
||||
|
||||
format:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/object-persistor
|
||||
|
||||
format_ci:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/object-persistor
|
||||
|
||||
format_fix:
|
||||
$(RUN_LINTING_MONOREPO) format:fix libraries/object-persistor
|
||||
|
||||
lint:
|
||||
$(RUN_LINTING) lint
|
||||
|
||||
lint_ci:
|
||||
-$(RUN_LINTING) lint --format json --output-file reports/eslint.json
|
||||
sed -i 's_"filePath":"/overleaf_"filePath":"$(MONOREPO)_g' reports/eslint.json
|
||||
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
typecheck_ci:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: test_unit
|
||||
test_unit:
|
||||
ifneq (,$(wildcard test/unit))
|
||||
$(RUN_LINTING) test:unit
|
||||
endif
|
||||
|
||||
test: test_acceptance
|
||||
test_acceptance:
|
||||
ifneq (,$(wildcard test/acceptance))
|
||||
$(RUN_LINTING) test:acceptance
|
||||
endif
|
||||
@@ -5,7 +5,6 @@ object-persistor
|
||||
--esmock-loader=False
|
||||
--is-library=True
|
||||
--node-version=24.14.1
|
||||
--package-name=@overleaf/object-persistor
|
||||
--pipeline-owner=32
|
||||
--public-repo=False
|
||||
--tsconfig-no-implicit-any=True
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
# Run the test commands in the scope of the monorepo.
|
||||
# Eslint and prettier (plus some configs) are on the root.
|
||||
RUN_LINTING = ../../bin/run -w /overleaf/libraries/overleaf-editor-core monorepo yarn run --silent
|
||||
RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent
|
||||
|
||||
WITH_CACHE_FOLDER = \
|
||||
lint \
|
||||
lint_ci \
|
||||
lint_fix \
|
||||
format \
|
||||
format_ci \
|
||||
format_fix \
|
||||
typecheck \
|
||||
typecheck_ci \
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/
|
||||
../../node_modules/.cache/prettier/:
|
||||
mkdir -p $@
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/
|
||||
../../node_modules/.cache/eslint/:
|
||||
mkdir -p $@
|
||||
|
||||
format:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/overleaf-editor-core
|
||||
|
||||
format_ci:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/overleaf-editor-core
|
||||
|
||||
format_fix:
|
||||
$(RUN_LINTING_MONOREPO) format:fix libraries/overleaf-editor-core
|
||||
|
||||
lint:
|
||||
$(RUN_LINTING) lint
|
||||
|
||||
lint_ci:
|
||||
-$(RUN_LINTING) lint --format json --output-file reports/eslint.json
|
||||
sed -i 's_"filePath":"/overleaf_"filePath":"$(MONOREPO)_g' reports/eslint.json
|
||||
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
typecheck_ci:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: test_unit
|
||||
test_unit:
|
||||
ifneq (,$(wildcard test/unit))
|
||||
$(RUN_LINTING) test:unit
|
||||
endif
|
||||
|
||||
test: test_acceptance
|
||||
test_acceptance:
|
||||
ifneq (,$(wildcard test/acceptance))
|
||||
$(RUN_LINTING) test:acceptance
|
||||
endif
|
||||
@@ -5,6 +5,5 @@ overleaf-editor-core
|
||||
--esmock-loader=False
|
||||
--is-library=True
|
||||
--node-version=24.14.1
|
||||
--package-name=overleaf-editor-core
|
||||
--pipeline-owner=44
|
||||
--public-repo=False
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
# Run the test commands in the scope of the monorepo.
|
||||
# Eslint and prettier (plus some configs) are on the root.
|
||||
RUN_LINTING = ../../bin/run -w /overleaf/libraries/promise-utils monorepo yarn run --silent
|
||||
RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent
|
||||
|
||||
WITH_CACHE_FOLDER = \
|
||||
lint \
|
||||
lint_ci \
|
||||
lint_fix \
|
||||
format \
|
||||
format_ci \
|
||||
format_fix \
|
||||
typecheck \
|
||||
typecheck_ci \
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/
|
||||
../../node_modules/.cache/prettier/:
|
||||
mkdir -p $@
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/
|
||||
../../node_modules/.cache/eslint/:
|
||||
mkdir -p $@
|
||||
|
||||
format:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/promise-utils
|
||||
|
||||
format_ci:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/promise-utils
|
||||
|
||||
format_fix:
|
||||
$(RUN_LINTING_MONOREPO) format:fix libraries/promise-utils
|
||||
|
||||
lint:
|
||||
$(RUN_LINTING) lint
|
||||
|
||||
lint_ci:
|
||||
-$(RUN_LINTING) lint --format json --output-file reports/eslint.json
|
||||
sed -i 's_"filePath":"/overleaf_"filePath":"$(MONOREPO)_g' reports/eslint.json
|
||||
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
typecheck_ci:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: test_unit
|
||||
test_unit:
|
||||
ifneq (,$(wildcard test/unit))
|
||||
$(RUN_LINTING) test:unit
|
||||
endif
|
||||
|
||||
test: test_acceptance
|
||||
test_acceptance:
|
||||
ifneq (,$(wildcard test/acceptance))
|
||||
$(RUN_LINTING) test:acceptance
|
||||
endif
|
||||
@@ -5,6 +5,5 @@ promise-utils
|
||||
--esmock-loader=False
|
||||
--is-library=True
|
||||
--node-version=24.14.1
|
||||
--package-name=@overleaf/promise-utils
|
||||
--pipeline-owner=32
|
||||
--public-repo=False
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
# Run the test commands in the scope of the monorepo.
|
||||
# Eslint and prettier (plus some configs) are on the root.
|
||||
RUN_LINTING = ../../bin/run -w /overleaf/libraries/ranges-tracker monorepo yarn run --silent
|
||||
RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent
|
||||
|
||||
WITH_CACHE_FOLDER = \
|
||||
lint \
|
||||
lint_ci \
|
||||
lint_fix \
|
||||
format \
|
||||
format_ci \
|
||||
format_fix \
|
||||
typecheck \
|
||||
typecheck_ci \
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/
|
||||
../../node_modules/.cache/prettier/:
|
||||
mkdir -p $@
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/
|
||||
../../node_modules/.cache/eslint/:
|
||||
mkdir -p $@
|
||||
|
||||
format:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/ranges-tracker
|
||||
|
||||
format_ci:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/ranges-tracker
|
||||
|
||||
format_fix:
|
||||
$(RUN_LINTING_MONOREPO) format:fix libraries/ranges-tracker
|
||||
|
||||
lint:
|
||||
$(RUN_LINTING) lint
|
||||
|
||||
lint_ci:
|
||||
-$(RUN_LINTING) lint --format json --output-file reports/eslint.json
|
||||
sed -i 's_"filePath":"/overleaf_"filePath":"$(MONOREPO)_g' reports/eslint.json
|
||||
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
typecheck_ci:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: test_unit
|
||||
test_unit:
|
||||
ifneq (,$(wildcard test/unit))
|
||||
$(RUN_LINTING) test:unit
|
||||
endif
|
||||
|
||||
test: test_acceptance
|
||||
test_acceptance:
|
||||
ifneq (,$(wildcard test/acceptance))
|
||||
$(RUN_LINTING) test:acceptance
|
||||
endif
|
||||
@@ -5,6 +5,5 @@ ranges-tracker
|
||||
--esmock-loader=False
|
||||
--is-library=True
|
||||
--node-version=24.14.1
|
||||
--package-name=@overleaf/ranges-tracker
|
||||
--pipeline-owner=44
|
||||
--public-repo=False
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
# Run the test commands in the scope of the monorepo.
|
||||
# Eslint and prettier (plus some configs) are on the root.
|
||||
RUN_LINTING = ../../bin/run -w /overleaf/libraries/redis-wrapper monorepo yarn run --silent
|
||||
RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent
|
||||
|
||||
WITH_CACHE_FOLDER = \
|
||||
lint \
|
||||
lint_ci \
|
||||
lint_fix \
|
||||
format \
|
||||
format_ci \
|
||||
format_fix \
|
||||
typecheck \
|
||||
typecheck_ci \
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/
|
||||
../../node_modules/.cache/prettier/:
|
||||
mkdir -p $@
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/
|
||||
../../node_modules/.cache/eslint/:
|
||||
mkdir -p $@
|
||||
|
||||
format:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/redis-wrapper
|
||||
|
||||
format_ci:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/redis-wrapper
|
||||
|
||||
format_fix:
|
||||
$(RUN_LINTING_MONOREPO) format:fix libraries/redis-wrapper
|
||||
|
||||
lint:
|
||||
$(RUN_LINTING) lint
|
||||
|
||||
lint_ci:
|
||||
-$(RUN_LINTING) lint --format json --output-file reports/eslint.json
|
||||
sed -i 's_"filePath":"/overleaf_"filePath":"$(MONOREPO)_g' reports/eslint.json
|
||||
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
typecheck_ci:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: test_unit
|
||||
test_unit:
|
||||
ifneq (,$(wildcard test/unit))
|
||||
$(RUN_LINTING) test:unit
|
||||
endif
|
||||
|
||||
test: test_acceptance
|
||||
test_acceptance:
|
||||
ifneq (,$(wildcard test/acceptance))
|
||||
$(RUN_LINTING) test:acceptance
|
||||
endif
|
||||
@@ -5,6 +5,5 @@ redis-wrapper
|
||||
--esmock-loader=False
|
||||
--is-library=True
|
||||
--node-version=24.14.1
|
||||
--package-name=@overleaf/redis-wrapper
|
||||
--pipeline-owner=32
|
||||
--public-repo=False
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
# Run the test commands in the scope of the monorepo.
|
||||
# Eslint and prettier (plus some configs) are on the root.
|
||||
RUN_LINTING = ../../bin/run -w /overleaf/libraries/settings monorepo yarn run --silent
|
||||
RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent
|
||||
|
||||
WITH_CACHE_FOLDER = \
|
||||
lint \
|
||||
lint_ci \
|
||||
lint_fix \
|
||||
format \
|
||||
format_ci \
|
||||
format_fix \
|
||||
typecheck \
|
||||
typecheck_ci \
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/
|
||||
../../node_modules/.cache/prettier/:
|
||||
mkdir -p $@
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/
|
||||
../../node_modules/.cache/eslint/:
|
||||
mkdir -p $@
|
||||
|
||||
format:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/settings
|
||||
|
||||
format_ci:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/settings
|
||||
|
||||
format_fix:
|
||||
$(RUN_LINTING_MONOREPO) format:fix libraries/settings
|
||||
|
||||
lint:
|
||||
$(RUN_LINTING) lint
|
||||
|
||||
lint_ci:
|
||||
-$(RUN_LINTING) lint --format json --output-file reports/eslint.json
|
||||
sed -i 's_"filePath":"/overleaf_"filePath":"$(MONOREPO)_g' reports/eslint.json
|
||||
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
typecheck_ci:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: test_unit
|
||||
test_unit:
|
||||
ifneq (,$(wildcard test/unit))
|
||||
$(RUN_LINTING) test:unit
|
||||
endif
|
||||
|
||||
test: test_acceptance
|
||||
test_acceptance:
|
||||
ifneq (,$(wildcard test/acceptance))
|
||||
$(RUN_LINTING) test:acceptance
|
||||
endif
|
||||
@@ -5,6 +5,5 @@ settings
|
||||
--esmock-loader=False
|
||||
--is-library=True
|
||||
--node-version=24.14.1
|
||||
--package-name=@overleaf/settings
|
||||
--pipeline-owner=32
|
||||
--public-repo=False
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
# Run the test commands in the scope of the monorepo.
|
||||
# Eslint and prettier (plus some configs) are on the root.
|
||||
RUN_LINTING = ../../bin/run -w /overleaf/libraries/stream-utils monorepo yarn run --silent
|
||||
RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent
|
||||
|
||||
WITH_CACHE_FOLDER = \
|
||||
lint \
|
||||
lint_ci \
|
||||
lint_fix \
|
||||
format \
|
||||
format_ci \
|
||||
format_fix \
|
||||
typecheck \
|
||||
typecheck_ci \
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/
|
||||
../../node_modules/.cache/prettier/:
|
||||
mkdir -p $@
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/
|
||||
../../node_modules/.cache/eslint/:
|
||||
mkdir -p $@
|
||||
|
||||
format:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/stream-utils
|
||||
|
||||
format_ci:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/stream-utils
|
||||
|
||||
format_fix:
|
||||
$(RUN_LINTING_MONOREPO) format:fix libraries/stream-utils
|
||||
|
||||
lint:
|
||||
$(RUN_LINTING) lint
|
||||
|
||||
lint_ci:
|
||||
-$(RUN_LINTING) lint --format json --output-file reports/eslint.json
|
||||
sed -i 's_"filePath":"/overleaf_"filePath":"$(MONOREPO)_g' reports/eslint.json
|
||||
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
typecheck_ci:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: test_unit
|
||||
test_unit:
|
||||
ifneq (,$(wildcard test/unit))
|
||||
$(RUN_LINTING) test:unit
|
||||
endif
|
||||
|
||||
test: test_acceptance
|
||||
test_acceptance:
|
||||
ifneq (,$(wildcard test/acceptance))
|
||||
$(RUN_LINTING) test:acceptance
|
||||
endif
|
||||
@@ -5,6 +5,5 @@ stream-utils
|
||||
--esmock-loader=False
|
||||
--is-library=True
|
||||
--node-version=24.14.1
|
||||
--package-name=@overleaf/stream-utils
|
||||
--pipeline-owner=32
|
||||
--public-repo=False
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
# Run the test commands in the scope of the monorepo.
|
||||
# Eslint and prettier (plus some configs) are on the root.
|
||||
RUN_LINTING = ../../bin/run -w /overleaf/libraries/validation-tools monorepo yarn run --silent
|
||||
RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent
|
||||
|
||||
WITH_CACHE_FOLDER = \
|
||||
lint \
|
||||
lint_ci \
|
||||
lint_fix \
|
||||
format \
|
||||
format_ci \
|
||||
format_fix \
|
||||
typecheck \
|
||||
typecheck_ci \
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/
|
||||
../../node_modules/.cache/prettier/:
|
||||
mkdir -p $@
|
||||
|
||||
$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/
|
||||
../../node_modules/.cache/eslint/:
|
||||
mkdir -p $@
|
||||
|
||||
format:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/validation-tools
|
||||
|
||||
format_ci:
|
||||
$(RUN_LINTING_MONOREPO) format libraries/validation-tools
|
||||
|
||||
format_fix:
|
||||
$(RUN_LINTING_MONOREPO) format:fix libraries/validation-tools
|
||||
|
||||
lint:
|
||||
$(RUN_LINTING) lint
|
||||
|
||||
lint_ci:
|
||||
-$(RUN_LINTING) lint --format json --output-file reports/eslint.json
|
||||
sed -i 's_"filePath":"/overleaf_"filePath":"$(MONOREPO)_g' reports/eslint.json
|
||||
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
typecheck_ci:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: test_unit
|
||||
test_unit:
|
||||
ifneq (,$(wildcard test/unit))
|
||||
$(RUN_LINTING) test:unit
|
||||
endif
|
||||
|
||||
test: test_acceptance
|
||||
test_acceptance:
|
||||
ifneq (,$(wildcard test/acceptance))
|
||||
$(RUN_LINTING) test:acceptance
|
||||
endif
|
||||
@@ -5,7 +5,6 @@ validation-tools
|
||||
--esmock-loader=False
|
||||
--is-library=True
|
||||
--node-version=24.14.1
|
||||
--package-name=@overleaf/validation-tools
|
||||
--public-repo=False
|
||||
--test-acceptance-vitest=True
|
||||
--test-unit-vitest=True
|
||||
|
||||
Reference in New Issue
Block a user