mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #18167 from overleaf/em-simpler-typescript-backend
Simpler Typescript setup in the backend GitOrigin-RevId: 3a90f26a5ac8029d14203faa98008375ce933e7d
This commit is contained in:
@@ -48,10 +48,7 @@ lint:
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
build_types:
|
||||
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
|
||||
|
||||
typecheck: build_types
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: format lint typecheck test_unit test_acceptance
|
||||
|
||||
@@ -48,10 +48,7 @@ lint:
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
build_types:
|
||||
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
|
||||
|
||||
typecheck: build_types
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: format lint typecheck test_unit test_acceptance
|
||||
|
||||
@@ -48,10 +48,7 @@ lint:
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
build_types:
|
||||
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
|
||||
|
||||
typecheck: build_types
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: format lint typecheck test_unit test_acceptance
|
||||
|
||||
@@ -48,10 +48,7 @@ lint:
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
build_types:
|
||||
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
|
||||
|
||||
typecheck: build_types
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: format lint typecheck test_unit test_acceptance
|
||||
|
||||
@@ -48,10 +48,7 @@ lint:
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
build_types:
|
||||
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
|
||||
|
||||
typecheck: build_types
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: format lint typecheck test_unit test_acceptance
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TrackingPropsRawData } from 'overleaf-editor-core/types/lib/types'
|
||||
import { TrackingPropsRawData } from 'overleaf-editor-core/lib/types'
|
||||
|
||||
/**
|
||||
* An update coming from the editor
|
||||
|
||||
@@ -48,10 +48,7 @@ lint:
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
build_types:
|
||||
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
|
||||
|
||||
typecheck: build_types
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: format lint typecheck test_unit test_acceptance
|
||||
|
||||
@@ -48,10 +48,7 @@ lint:
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
build_types:
|
||||
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
|
||||
|
||||
typecheck: build_types
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: format lint typecheck test_unit test_acceptance
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// @ts-check
|
||||
'use strict'
|
||||
|
||||
/** @typedef {import('overleaf-editor-core/types').Snapshot} Snapshot */
|
||||
/** @typedef {import('overleaf-editor-core').Snapshot} Snapshot */
|
||||
|
||||
const Archive = require('archiver')
|
||||
const BPromise = require('bluebird')
|
||||
|
||||
@@ -48,10 +48,7 @@ lint:
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
build_types:
|
||||
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
|
||||
|
||||
typecheck: build_types
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: format lint typecheck test_unit test_acceptance
|
||||
|
||||
@@ -48,10 +48,7 @@ lint:
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
build_types:
|
||||
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
|
||||
|
||||
typecheck: build_types
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: format lint typecheck test_unit test_acceptance
|
||||
|
||||
@@ -48,10 +48,7 @@ lint:
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
build_types:
|
||||
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
|
||||
|
||||
typecheck: build_types
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: format lint typecheck test_unit test_acceptance
|
||||
|
||||
@@ -48,10 +48,7 @@ lint:
|
||||
lint_fix:
|
||||
$(RUN_LINTING) lint:fix
|
||||
|
||||
build_types:
|
||||
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
|
||||
|
||||
typecheck: build_types
|
||||
typecheck:
|
||||
$(RUN_LINTING) types:check
|
||||
|
||||
test: format lint typecheck test_unit test_acceptance
|
||||
|
||||
@@ -35,9 +35,7 @@ FROM deps-prod as deps
|
||||
ENV CYPRESS_INSTALL_BINARY=0
|
||||
|
||||
COPY tsconfig.backend.json /overleaf/
|
||||
RUN cd /overleaf \
|
||||
&& npm install \
|
||||
&& npm run --workspaces --if-present types:build
|
||||
RUN cd /overleaf && npm install
|
||||
|
||||
# the web image with only production dependencies but no webpack production build, for development
|
||||
FROM deps-prod as app-only
|
||||
|
||||
@@ -12,7 +12,9 @@
|
||||
"skipLibCheck": true /* Skip type checking of declaration files. */,
|
||||
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
|
||||
"paths": {
|
||||
"@/*": ["./frontend/js/*"]
|
||||
"@/*": ["./frontend/js/*"],
|
||||
"@overleaf/o-error": ["../../libraries/o-error"],
|
||||
"@overleaf/ranges-tracker": ["../../libraries/ranges-tracker"]
|
||||
},
|
||||
"types": ["cypress", "@testing-library/cypress"]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user