Enhanced Phased build (#4599)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-02-12 23:57:11 +07:00
committed by GitHub
parent cc5da22af3
commit c23af625f6
283 changed files with 3283 additions and 2904 deletions
+2 -14
View File
@@ -75,7 +75,7 @@ jobs:
- name: Building...
run: node common/scripts/install-run-rush.js build
- name: Bundle
- name: Building...
run: node common/scripts/install-run-rush.js bundle
- name: Cache build results
@@ -156,16 +156,12 @@ jobs:
path: ${{ env.CacheFolders}}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
- name: Docker build
run: node common/scripts/install-run-rush.js docker:build
env:
DOCKER_CLI_HINTS: false
- name: Prepare server
run: |
cd ./tests
./prepare-tests.sh
- name: Testing...
run: node common/scripts/install-run-rush.js test --verbose
run: node common/scripts/install-run-rush.js test
env:
ELASTIC_URL: 'http://localhost:9201'
MONGO_URL: 'mongodb://localhost:27018'
@@ -282,15 +278,7 @@ jobs:
- name: Model version from git tags
run: node common/scripts/install-run-rush.js model-version
- name: Building...
run: node common/scripts/install-run-rush.js build
- name: Print model version
run: node common/scripts/install-run-rush.js model-version
- name: Bundle
run: node common/scripts/install-run-rush.js bundle
- name: Docker build
run: node common/scripts/install-run-rush.js docker:build
env:
+2 -1
View File
@@ -73,8 +73,9 @@ common/temp/
common/autoinstallers/*/.npmrc
**/.rush/temp/
bundle.js
bundle/*.js
dist
dist_cache
.build
tsconfig.tsbuildinfo
ingest-attachment-*.zip
tsdoc-metadata.json
+138 -236
View File
@@ -5,200 +5,76 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/command-line.schema.json",
/**
* Custom "commands" introduce new verbs for the command-line. To see the help for these
* example commands, try "rush --help", "rush my-bulk-command --help", or
* "rush my-global-command --help".
*/
"commands": [
// {
// /**
// * (Required) Determines the type of custom command.
// * Rush's "bulk" commands are invoked separately for each project. Rush will look in
// * each project's package.json file for a "scripts" entry whose name matches the
// * command name. By default, the command will run for every project in the repo,
// * according to the dependency graph (similar to how "rush build" works).
// * The set of projects can be restricted e.g. using the "--to" or "--from" parameters.
// */
// "commandKind": "bulk",
//
// /**
// * (Required) The name that will be typed as part of the command line. This is also the name
// * of the "scripts" hook in the project's package.json file.
// * The name should be comprised of lower case words separated by hyphens or colons. The name should include an
// * English verb (e.g. "deploy"). Use a hyphen to separate words (e.g. "upload-docs"). A group of related commands
// * can be prefixed with a colon (e.g. "docs:generate", "docs:deploy", "docs:serve", etc).
// *
// * Note that if the "rebuild" command is overridden here, it becomes separated from the "build" command
// * and will call the "rebuild" script instead of the "build" script.
// */
// "name": "my-bulk-command",
//
// /**
// * (Required) A short summary of the custom command to be shown when printing command line
// * help, e.g. "rush --help".
// */
// "summary": "Example bulk custom command",
//
// /**
// * A detailed description of the command to be shown when printing command line
// * help (e.g. "rush --help my-command").
// * If omitted, the "summary" text will be shown instead.
// *
// * Whenever you introduce commands/parameters, taking a little time to write meaningful
// * documentation can make a big difference for the developer experience in your repo.
// */
// "description": "This is an example custom command that runs separately for each project",
//
// /**
// * By default, Rush operations acquire a lock file which prevents multiple commands from executing simultaneously
// * in the same repo folder. (For example, it would be a mistake to run "rush install" and "rush build" at the
// * same time.) If your command makes sense to run concurrently with other operations,
// * set "safeForSimultaneousRushProcesses" to true to disable this protection.
// *
// * In particular, this is needed for custom scripts that invoke other Rush commands.
// */
// "safeForSimultaneousRushProcesses": false,
//
// /**
// * (Required) If true, then this command is safe to be run in parallel, i.e. executed
// * simultaneously for multiple projects. Similar to "rush build", regardless of parallelism
// * projects will not start processing until their dependencies have completed processing.
// */
// "enableParallelism": false,
//
// /**
// * Normally projects will be processed according to their dependency order: a given project will not start
// * processing the command until all of its dependencies have completed. This restriction doesn't apply for
// * certain operations, for example a "clean" task that deletes output files. In this case
// * you can set "ignoreDependencyOrder" to true to increase parallelism.
// */
// "ignoreDependencyOrder": false,
//
// /**
// * Normally Rush requires that each project's package.json has a "scripts" entry matching
// * the custom command name. To disable this check, set "ignoreMissingScript" to true;
// * projects with a missing definition will be skipped.
// */
// "ignoreMissingScript": false,
//
// /**
// * When invoking shell scripts, Rush uses a heuristic to distinguish errors from warnings:
// * - If the shell script returns a nonzero process exit code, Rush interprets this as "one or more errors".
// * Error output is displayed in red, and it prevents Rush from attempting to process any downstream projects.
// * - If the shell script returns a zero process exit code but writes something to its stderr stream,
// * Rush interprets this as "one or more warnings". Warning output is printed in yellow, but does NOT prevent
// * Rush from processing downstream projects.
// *
// * Thus, warnings do not interfere with local development, but they will cause a CI job to fail, because
// * the Rush process itself returns a nonzero exit code if there are any warnings or errors. This is by design.
// * In an active monorepo, we've found that if you allow any warnings in your master branch, it inadvertently
// * teaches developers to ignore warnings, which quickly leads to a situation where so many "expected" warnings
// * have accumulated that warnings no longer serve any useful purpose.
// *
// * Sometimes a poorly behaved task will write output to stderr even though its operation was successful.
// * In that case, it's strongly recommended to fix the task. However, as a workaround you can set
// * allowWarningsInSuccessfulBuild=true, which causes Rush to return a nonzero exit code for errors only.
// *
// * Note: The default value is false. In Rush 5.7.x and earlier, the default value was true.
// */
// "allowWarningsInSuccessfulBuild": false,
//
// /**
// * If true then this command will be incremental like the built-in "build" command
// */
// "incremental": false,
//
// /**
// * (EXPERIMENTAL) Normally Rush terminates after the command finishes. If this option is set to "true" Rush
// * will instead enter a loop where it watches the file system for changes to the selected projects. Whenever a
// * change is detected, the command will be invoked again for the changed project and any selected projects that
// * directly or indirectly depend on it.
// *
// * For details, refer to the website article "Using watch mode".
// */
// "watchForChanges": false,
//
// /**
// * (EXPERIMENTAL) Disable cache for this action. This may be useful if this command affects state outside of
// * projects' own folders.
// */
// "disableBuildCache": false
// },
//
// {
// /**
// * (Required) Determines the type of custom command.
// * Rush's "global" commands are invoked once for the entire repo.
// */
// "commandKind": "global",
//
// "name": "my-global-command",
// "summary": "Example global custom command",
// "description": "This is an example custom command that runs once for the entire repo",
//
// "safeForSimultaneousRushProcesses": false,
//
// /**
// * (Required) A script that will be invoked using the OS shell. The working directory will be
// * the folder that contains rush.json. If custom parameters are associated with this command, their
// * values will be appended to the end of this string.
// */
// "shellCommand": "node common/scripts/my-global-command.js",
//
// /**
// * If your "shellCommand" script depends on NPM packages, the recommended best practice is
// * to make it into a regular Rush project that builds using your normal toolchain. In cases where
// * the command needs to work without first having to run "rush build", the recommended practice
// * is to publish the project to an NPM registry and use common/scripts/install-run.js to launch it.
// *
// * Autoinstallers offer another possibility: They are folders under "common/autoinstallers" with
// * a package.json file and shrinkwrap file. Rush will automatically invoke the package manager to
// * install these dependencies before an associated command is invoked. Autoinstallers have the
// * advantage that they work even in a branch where "rush install" is broken, which makes them a
// * good solution for Git hook scripts. But they have the disadvantages of not being buildable
// * projects, and of increasing the overall installation footprint for your monorepo.
// *
// * The "autoinstallerName" setting must not contain a path and must be a valid NPM package name.
// * For example, the name "my-task" would map to "common/autoinstallers/my-task/package.json", and
// * the "common/autoinstallers/my-task/node_modules/.bin" folder would be added to the shell PATH when
// * invoking the "shellCommand".
// */
// // "autoinstallerName": "my-task"
// }
"phases": [
{
"commandKind": "bulk",
"name": "lint:fix",
"summary": "Lint&Fix",
"description": "Lint and autofix linting issues",
"enableParallelism": true,
"incremental": true,
"ignoreDependencyOrder": false,
"name": "_phase:build",
"dependencies": {
"upstream": ["_phase:build"]
},
"ignoreMissingScript": true,
"disableBuildCache": true
"allowWarningsOnSuccess": false
},
{
"commandKind": "bulk",
"name": "lint",
"summary": "Lint",
"description": "Lint",
"enableParallelism": true,
"incremental": true,
"ignoreDependencyOrder": true,
"name": "_phase:test",
"dependencies": {
"self": ["_phase:build"]
},
"ignoreMissingScript": true,
"disableBuildCache": true
"allowWarningsOnSuccess": true
},
{
"commandKind": "bulk",
"name": "format",
"summary": "format",
"description": "Format and autofix linting issues",
"enableParallelism": true,
"incremental": false,
"ignoreDependencyOrder": true,
"name": "_phase:lint",
"dependencies": {
"self": ["_phase:build"]
},
"ignoreMissingScript": true,
"disableBuildCache": true
"allowWarningsOnSuccess": false
},
{
"name": "_phase:bundle",
"dependencies": {
"self": ["_phase:build"]
},
"ignoreMissingScript": true,
"allowWarningsOnSuccess": false
},
{
"name": "_phase:svelte-check",
"dependencies": {
"self": ["_phase:build"]
},
"ignoreMissingScript": true,
"allowWarningsOnSuccess": true
},
{
"name": "_phase:package",
"dependencies": {
"self": ["_phase:build"],
"upstream": ["_phase:package"]
},
"ignoreMissingScript": true,
"allowWarningsOnSuccess": false
},
{
"name": "_phase:docker-build",
"dependencies": {
"self": ["_phase:build", "_phase:package", "_phase:bundle"],
"upstream": ["_phase:build", "_phase:bundle", "_phase:package"]
},
"ignoreMissingScript": true,
"allowWarningsOnSuccess": true
},
{
"name": "_phase:docker-staging",
"dependencies": {
"self": ["_phase:build", "_phase:package", "_phase:bundle"]
},
"ignoreMissingScript": true,
"allowWarningsOnSuccess": false
}
],
"commands": [
{
"commandKind": "bulk",
"name": "build:watch",
@@ -213,50 +89,95 @@
},
{
"commandKind": "bulk",
"name": "svelte-check",
"summary": "svelte-check",
"description": "Perform svelte-check",
"name": "format",
"summary": "Format",
"description": "Perform a formatting",
"enableParallelism": true,
"incremental": true,
"ignoreDependencyOrder": true,
"incremental": false,
"ignoreMissingScript": true,
"disableBuildCache": false
"safeForSimultaneousRushProcesses": true,
"disableBuildCache": true
},
{
"summary": "svelte-check",
"commandKind": "phased",
"name": "svelte-check",
"phases": ["_phase:build", "_phase:svelte-check"],
"enableParallelism": true,
"incremental": true
},
{
"commandKind": "bulk",
"name": "test",
"summary": "test",
"description": "Perform testing",
"commandKind": "phased",
"name": "build",
"phases": ["_phase:build"],
"enableParallelism": true,
"allowWarningsInSuccessfulBuild": true,
"incremental": true,
"ignoreDependencyOrder": false,
"ignoreMissingScript": true
"incremental": true
},
{
"commandKind": "phased",
"name": "rebuild",
"summary": "ReBuild and test all projects.",
"phases": ["_phase:build"],
"enableParallelism": true,
"incremental": false
},
{
"commandKind": "phased",
"summary": "Do testing",
"name": "test",
"phases": ["_phase:build", "_phase:test"],
"enableParallelism": true,
"incremental": true
},
{
"commandKind": "phased",
"name": "retest",
"summary": "Build and test all projects.",
"phases": ["_phase:build", "_phase:test"],
"enableParallelism": true,
"incremental": false
},
{
"commandKind": "bulk",
"name": "docker:build",
"summary": "docker:build",
"description": "Build and make docker containers",
"commandKind": "phased",
"summary": "Do bundle",
"name": "bundle",
"phases": ["_phase:build", "_phase:bundle"],
"enableParallelism": true,
"incremental": false,
"ignoreDependencyOrder": false,
"ignoreMissingScript": true,
"disableBuildCache": true,
"allowWarningsInSuccessfulBuild": true
"incremental": true
},
{
"commandKind": "bulk",
"name": "docker:staging",
"summary": "docker:staging",
"description": "Push docker staging images",
"commandKind": "phased",
"summary": "Do packaging",
"name": "package",
"phases": ["_phase:build", "_phase:package"],
"enableParallelism": true,
"incremental": false,
"ignoreDependencyOrder": false,
"ignoreMissingScript": true,
"disableBuildCache": true,
"allowWarningsInSuccessfulBuild": true
"incremental": true
},
{
"summary": "docker:build",
"commandKind": "phased",
"name": "docker:build",
"phases": ["_phase:build", "_phase:bundle", "_phase:package", "_phase:docker-build"],
"enableParallelism": true,
"incremental": true
},
{
"summary": "docker:rebuild",
"commandKind": "phased",
"name": "docker:rebuild",
"phases": ["_phase:build", "_phase:bundle", "_phase:package", "_phase:docker-build"],
"enableParallelism": true,
"incremental": false
},
{
"summary": "docker:staging",
"commandKind": "phased",
"name": "docker-staging",
"phases": ["_phase:build", "_phase:bundle", "_phase:package", "_phase:docker-staging"],
"enableParallelism": true,
"incremental": true
},
{
"commandKind": "bulk",
@@ -270,17 +191,6 @@
"disableBuildCache": true,
"allowWarningsInSuccessfulBuild": true
},
{
"commandKind": "bulk",
"name": "bundle",
"summary": "bundle",
"description": "Build bundles",
"enableParallelism": true,
"incremental": false,
"ignoreDependencyOrder": false,
"ignoreMissingScript": true,
"disableBuildCache": true
},
{
"commandKind": "global",
"name": "apply-templates",
@@ -320,14 +230,6 @@
"description": "Format and autofix linting issues in changed projects",
"safeForSimultaneousRushProcesses": true,
"shellCommand": "./common/scripts/each-diff.sh rushx format"
},
{
"commandKind": "global",
"name": "bump-packages",
"summary": "Bump and publish packages from last tag",
"description": "Bump and publish packages from last tag",
"safeForSimultaneousRushProcesses": true,
"shellCommand": "node common/scripts/bump.js"
}
],
+1343 -1343
View File
File diff suppressed because it is too large Load Diff
+10 -5
View File
@@ -42,12 +42,13 @@ __webpack_require__.r(__webpack_exports__);
*/
// create a global _combinedNpmrc for cache purpose
const _combinedNpmrcMap = new Map();
function _trimNpmrcFile(sourceNpmrcPath) {
function _trimNpmrcFile(sourceNpmrcPath, extraLines = []) {
const combinedNpmrcFromCache = _combinedNpmrcMap.get(sourceNpmrcPath);
if (combinedNpmrcFromCache !== undefined) {
return combinedNpmrcFromCache;
}
let npmrcFileLines = fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(sourceNpmrcPath).toString().split('\n');
npmrcFileLines.push(...extraLines);
npmrcFileLines = npmrcFileLines.map((line) => (line || '').trim());
const resultLines = [];
// This finds environment variable tokens that look like "${VAR_NAME}"
@@ -106,10 +107,10 @@ function _trimNpmrcFile(sourceNpmrcPath) {
* @returns
* The text of the the .npmrc with lines containing undefined variables commented out.
*/
function _copyAndTrimNpmrcFile(logger, sourceNpmrcPath, targetNpmrcPath) {
function _copyAndTrimNpmrcFile(logger, sourceNpmrcPath, targetNpmrcPath, extraLines) {
logger.info(`Transforming ${sourceNpmrcPath}`); // Verbose
logger.info(` --> "${targetNpmrcPath}"`);
const combinedNpmrc = _trimNpmrcFile(sourceNpmrcPath);
const combinedNpmrc = _trimNpmrcFile(sourceNpmrcPath, extraLines);
fs__WEBPACK_IMPORTED_MODULE_0__.writeFileSync(targetNpmrcPath, combinedNpmrc);
return combinedNpmrc;
}
@@ -127,12 +128,16 @@ function syncNpmrc(sourceNpmrcFolder, targetNpmrcFolder, useNpmrcPublish, logger
info: console.log,
// eslint-disable-next-line no-console
error: console.error
}) {
}, extraLines) {
const sourceNpmrcPath = path__WEBPACK_IMPORTED_MODULE_1__.join(sourceNpmrcFolder, !useNpmrcPublish ? '.npmrc' : '.npmrc-publish');
const targetNpmrcPath = path__WEBPACK_IMPORTED_MODULE_1__.join(targetNpmrcFolder, '.npmrc');
try {
if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(sourceNpmrcPath)) {
return _copyAndTrimNpmrcFile(logger, sourceNpmrcPath, targetNpmrcPath);
// Ensure the target folder exists
if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(targetNpmrcFolder)) {
fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(targetNpmrcFolder, { recursive: true });
}
return _copyAndTrimNpmrcFile(logger, sourceNpmrcPath, targetNpmrcPath, extraLines);
}
else if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(targetNpmrcPath)) {
// If the source .npmrc doesn't exist and there is one in the target, delete the one in the target
+7 -6
View File
@@ -5,12 +5,13 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"build": "compile",
"build:watch": "compile",
"format": "format src",
"test": "jest --passWithNoTests --silent"
"test": "jest --passWithNoTests --silent",
"_phase:build": "compile",
"_phase:test": "jest --passWithNoTests --silent",
"_phase:format": "format src"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
@@ -24,7 +25,7 @@
"eslint-config-standard-with-typescript": "^40.0.0",
"prettier": "^3.1.0",
"prettier-plugin-svelte": "^3.1.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
+7 -6
View File
@@ -5,12 +5,13 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"build": "compile",
"build:watch": "compile",
"format": "format src",
"test": "jest --passWithNoTests --silent"
"test": "jest --passWithNoTests --silent",
"_phase:build": "compile",
"_phase:test": "jest --passWithNoTests --silent",
"_phase:format": "format src"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
@@ -22,7 +23,7 @@
"@typescript-eslint/parser": "^6.11.0",
"eslint-config-standard-with-typescript": "^40.0.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5",
+1 -1
View File
@@ -2,6 +2,6 @@ FROM node
WORKDIR /usr/src/app
COPY bundle.js ./
COPY bundle/bundle.js ./
CMD [ "bash" ]
+9 -7
View File
@@ -5,15 +5,17 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"build": "compile",
"build:watch": "compile",
"start": "ts-node src/index.ts",
"bundle": "esbuild src/index.ts --bundle --minify --platform=node > bundle.js",
"bundle": "mkdir -p bundle && esbuild src/index.ts --bundle --minify --platform=node > bundle/bundle.js",
"_phase:bundle": "rushx bundle",
"run-local": "TRANSACTOR_URL=ws://localhost:3333 MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin MINIO_ENDPOINT=localhost ts-node ./src/index.ts",
"lint": "eslint src",
"format": "format src",
"test": "jest --passWithNoTests --silent"
"test": "jest --passWithNoTests --silent",
"_phase:build": "compile",
"_phase:test": "jest --passWithNoTests --silent",
"_phase:format": "format src"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
@@ -28,7 +30,7 @@
"@typescript-eslint/parser": "^6.11.0",
"eslint-config-standard-with-typescript": "^40.0.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"@types/ws": "^8.5.3",
"@types/faker": "~5.5.9",
"jest": "^29.7.0",
+4 -1
View File
@@ -4,7 +4,10 @@
"license": "EPL-2.0",
"template": "@hcengineering/webpack-package",
"scripts": {
"build": "rm -rf ./dist && cross-env NODE_ENV=production webpack --stats-error-details && echo 'done'",
"_phase:build": "compile ui",
"_phase:package": "rushx package",
"build": "compile ui",
"package": "rm -rf ./dist && cross-env NODE_ENV=production webpack --stats-error-details && echo 'done'",
"analyze": "cross-env NODE_ENV=production webpack --json > stats.json",
"show": "webpack-bundle-analyzer stats.json dist",
"dev-server": "cross-env CLIENT_TYPE=dev-server webpack serve",
+7 -6
View File
@@ -5,13 +5,14 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"build": "compile",
"build:watch": "compile",
"start": "ts-node src/__start.ts",
"lint": "eslint src",
"format": "format src",
"test": "jest --passWithNoTests --silent"
"test": "jest --passWithNoTests --silent",
"_phase:build": "compile",
"_phase:test": "jest --passWithNoTests --silent",
"_phase:format": "format src"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
@@ -24,7 +25,7 @@
"@typescript-eslint/parser": "^6.11.0",
"eslint-config-standard-with-typescript": "^40.0.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5",
+7 -6
View File
@@ -5,12 +5,13 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"build": "compile",
"build:watch": "compile",
"format": "format src",
"test": "jest --passWithNoTests --silent"
"test": "jest --passWithNoTests --silent",
"_phase:build": "compile",
"_phase:test": "jest --passWithNoTests --silent",
"_phase:format": "format src"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
@@ -22,7 +23,7 @@
"@typescript-eslint/parser": "^6.11.0",
"eslint-config-standard-with-typescript": "^40.0.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5",
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/node/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
+1 -1
View File
@@ -2,6 +2,6 @@ FROM node:20
WORKDIR /usr/src/app
COPY bundle.js ./
COPY bundle/bundle.js ./
CMD [ "bash" ]
+2 -1
View File
@@ -1,4 +1,5 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
"rigPackageName": "@hcengineering/platform-rig"
"rigPackageName": "@hcengineering/platform-rig",
"rigProfile": "node"
}
+12 -7
View File
@@ -4,21 +4,26 @@
"main": "lib/index.js",
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"template": "@hcengineering/node-package",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"build": "compile",
"build:watch": "compile",
"start": "ts-node src/__start.ts",
"bundle": "esbuild src/__start.ts --bundle --minify --platform=node --define:process.env.MODEL_VERSION=$(node ../../common/scripts/show_version.js) --define:process.env.GIT_REVISION=$(../../common/scripts/git_version.sh) > bundle.js",
"_phase:bundle": "rushx bundle",
"_phase:docker-build": "rushx docker:build",
"_phase:docker-staging": "rushx docker:staging",
"bundle": "mkdir -p bundle && esbuild src/__start.ts --bundle --minify --platform=node --define:process.env.MODEL_VERSION=$(node ../../common/scripts/show_version.js) --define:process.env.GIT_REVISION=$(../../common/scripts/git_version.sh) > bundle/bundle.js",
"docker:build": "docker build -t hardcoreeng/tool .",
"docker:staging": "../../common/scripts/docker_tag.sh hardcoreeng/tool staging",
"docker:push": "../../common/scripts/docker_tag.sh hardcoreeng/tool",
"run-local": "cross-env SERVER_SECRET=secret MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin MINIO_ENDPOINT=localhost MONGO_URL=mongodb://localhost:27017 TRANSACTOR_URL=ws://localhost:3333 TELEGRAM_DATABASE=telegram-service ELASTIC_URL=http://localhost:9200 REKONI_URL=http://localhost:4004 MODEL_VERSION=$(node ../../common/scripts/show_version.js) GIT_REVISION=$(git describe --all --long) node -r ts-node/register --max-old-space-size=18000 ./src/__start.ts",
"run": "cross-env node -r ts-node/register --max-old-space-size=8000 MODEL_VERSION=$(node ../../common/scripts/show_version.js) ./src/__start.ts",
"upgrade": "rushx run-local upgrade",
"lint": "eslint src",
"format": "format src",
"test": "jest --passWithNoTests --silent"
"test": "jest --passWithNoTests --silent --forceExit",
"_phase:build": "compile",
"_phase:test": "jest --passWithNoTests --silent --forceExit",
"_phase:format": "format src"
},
"devDependencies": {
"cross-env": "~7.0.3",
@@ -35,7 +40,7 @@
"@typescript-eslint/parser": "^6.11.0",
"eslint-config-standard-with-typescript": "^40.0.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"@types/ws": "^8.5.3",
"@types/xml2js": "~0.4.9",
"@types/mime-types": "~2.1.1",
+3 -3
View File
@@ -15,9 +15,9 @@
import { prepareTools as prepareToolsRaw } from '@hcengineering/server-tool'
import { Data, Tx, Version } from '@hcengineering/core'
import { MinioService } from '@hcengineering/minio'
import { MigrateOperation } from '@hcengineering/model'
import { type Data, type Tx, type Version } from '@hcengineering/core'
import { type MinioService } from '@hcengineering/minio'
import { type MigrateOperation } from '@hcengineering/model'
import builder, { migrateOperations, getModelVersion } from '@hcengineering/model-all'
import { devTool } from '.'
+8 -8
View File
@@ -15,18 +15,18 @@
import contact from '@hcengineering/contact'
import core, {
Account,
BackupClient,
type Account,
type BackupClient,
ClassifierKind,
Client,
type Client,
DOMAIN_TX,
Doc,
DocumentUpdate,
type Doc,
type DocumentUpdate,
MeasureMetricsContext,
Metrics,
Ref,
type Metrics,
type Ref,
TxOperations,
WorkspaceId,
type WorkspaceId,
generateId,
metricsToString,
newMetrics,
+10 -10
View File
@@ -17,28 +17,28 @@ import attachment from '@hcengineering/attachment'
import contact from '@hcengineering/contact'
import { deepEqual } from 'fast-equals'
import core, {
BackupClient,
Client as CoreClient,
type BackupClient,
type Client as CoreClient,
DOMAIN_TX,
Doc,
Domain,
Ref,
type Doc,
type Domain,
type Ref,
SortingOrder,
TxCreateDoc,
type TxCreateDoc,
TxOperations,
TxProcessor,
WorkspaceId,
type WorkspaceId,
generateId,
getObjectValue
} from '@hcengineering/core'
import { MinioService } from '@hcengineering/minio'
import { type MinioService } from '@hcengineering/minio'
import { getWorkspaceDB } from '@hcengineering/mongo'
import recruit from '@hcengineering/recruit'
import { connect } from '@hcengineering/server-tool'
import tracker from '@hcengineering/tracker'
import tags, { TagCategory, TagElement, TagReference } from '@hcengineering/tags'
import tags, { type TagCategory, type TagElement, type TagReference } from '@hcengineering/tags'
import { MongoClient } from 'mongodb'
import chunter, { ChatMessage } from '@hcengineering/chunter'
import chunter, { type ChatMessage } from '@hcengineering/chunter'
export const DOMAIN_ACTIVITY = 'activity' as Domain
+1 -1
View File
@@ -13,7 +13,7 @@
// limitations under the License.
//
import core, { BackupClient, Client as CoreClient, TxFactory, WorkspaceId } from '@hcengineering/core'
import core, { type BackupClient, type Client as CoreClient, TxFactory, type WorkspaceId } from '@hcengineering/core'
import { connect } from '@hcengineering/server-tool'
function toLen (val: string, sep: string, len: number): string {
+2 -2
View File
@@ -14,8 +14,8 @@
//
import { Client as ElasticClient } from '@elastic/elasticsearch'
import core, { DOMAIN_DOC_INDEX_STATE, toWorkspaceString, WorkspaceId } from '@hcengineering/core'
import { MinioService } from '@hcengineering/minio'
import core, { DOMAIN_DOC_INDEX_STATE, toWorkspaceString, type WorkspaceId } from '@hcengineering/core'
import { type MinioService } from '@hcengineering/minio'
import { getWorkspaceDB } from '@hcengineering/mongo'
import { MongoClient } from 'mongodb'
+6 -6
View File
@@ -30,7 +30,7 @@ import {
setAccountAdmin,
setRole,
upgradeWorkspace,
WorkspaceInfo
type WorkspaceInfo
} from '@hcengineering/account'
import { setMetadata } from '@hcengineering/platform'
import {
@@ -43,14 +43,14 @@ import {
import serverToken, { decodeToken, generateToken } from '@hcengineering/server-token'
import toolPlugin, { FileModelLogger } from '@hcengineering/server-tool'
import { Command, program } from 'commander'
import { Db, MongoClient } from 'mongodb'
import { type Command, program } from 'commander'
import { type Db, MongoClient } from 'mongodb'
import { clearTelegramHistory } from './telegram'
import { diffWorkspace, updateField } from './workspace'
import { Data, getWorkspaceId, RateLimitter, Tx, Version } from '@hcengineering/core'
import { MinioService } from '@hcengineering/minio'
import { consoleModelLogger, MigrateOperation } from '@hcengineering/model'
import { type Data, getWorkspaceId, RateLimitter, type Tx, type Version } from '@hcengineering/core'
import { type MinioService } from '@hcengineering/minio'
import { consoleModelLogger, type MigrateOperation } from '@hcengineering/model'
import { openAIConfigDefaults } from '@hcengineering/openai'
import path from 'path'
import { benchmark } from './benchmark'
+11 -1
View File
@@ -1,4 +1,14 @@
import core, { Attribute, Data, Doc, DocumentUpdate, Hierarchy, ModelDb, Ref, Tx, Type } from '@hcengineering/core'
import core, {
type Attribute,
type Data,
type Doc,
type DocumentUpdate,
Hierarchy,
ModelDb,
type Ref,
type Tx,
type Type
} from '@hcengineering/core'
import { deepEqual } from 'fast-equals'
/**
+9 -9
View File
@@ -14,18 +14,18 @@
//
import core, {
AnyAttribute,
BackupClient,
Class,
type AnyAttribute,
type BackupClient,
type Class,
ClassifierKind,
Client as CoreClient,
Doc,
Domain,
type Client as CoreClient,
type Doc,
type Domain,
Hierarchy,
Obj,
Ref,
type Obj,
type Ref,
SortingOrder,
WorkspaceId
type WorkspaceId
} from '@hcengineering/core'
import { getWorkspaceDB } from '@hcengineering/mongo'
import { connect } from '@hcengineering/server-tool'
+4 -4
View File
@@ -14,14 +14,14 @@
// limitations under the License.
//
import { DOMAIN_TX, Ref, WorkspaceId } from '@hcengineering/core'
import { MinioService } from '@hcengineering/minio'
import { DOMAIN_TX, type Ref, type WorkspaceId } from '@hcengineering/core'
import { type MinioService } from '@hcengineering/minio'
import { DOMAIN_ATTACHMENT } from '@hcengineering/model-attachment'
import contact, { DOMAIN_CHANNEL } from '@hcengineering/model-contact'
import { DOMAIN_TELEGRAM } from '@hcengineering/model-telegram'
import { getWorkspaceDB } from '@hcengineering/mongo'
import telegram, { SharedTelegramMessage, SharedTelegramMessages } from '@hcengineering/telegram'
import { Document, MongoClient, UpdateFilter } from 'mongodb'
import telegram, { type SharedTelegramMessage, type SharedTelegramMessages } from '@hcengineering/telegram'
import { type Document, MongoClient, type UpdateFilter } from 'mongodb'
const LastMessages = 'last-msgs'
+10 -1
View File
@@ -1,4 +1,13 @@
import { AttachedData, AttachedDoc, Class, Doc, DocumentUpdate, Ref, Space, TxOperations } from '@hcengineering/core'
import {
type AttachedData,
type AttachedDoc,
type Class,
type Doc,
type DocumentUpdate,
type Ref,
type Space,
type TxOperations
} from '@hcengineering/core'
export async function findOrUpdateAttached<T extends AttachedDoc> (
client: TxOperations,
+4 -4
View File
@@ -16,11 +16,11 @@
import contact from '@hcengineering/contact'
import core, {
Client as CoreClient,
BackupClient,
type Client as CoreClient,
type BackupClient,
DOMAIN_TX,
Tx,
WorkspaceId,
type Tx,
type WorkspaceId,
type Ref,
type Doc
} from '@hcengineering/core'
+1 -1
View File
@@ -1,5 +1,5 @@
{
"extends": "./node_modules/@hcengineering/platform-rig/profiles/default/tsconfig.json",
"extends": "./node_modules/@hcengineering/platform-rig/profiles/node/tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+5 -5
View File
@@ -5,11 +5,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build": "compile",
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:format": "format src"
},
"template": "@hcengineering/model-package",
"devDependencies": {
+7 -6
View File
@@ -5,12 +5,13 @@
"author": "Hardcore Engineering Inc.",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"build": "compile",
"build:watch": "compile",
"format": "format src",
"test": ""
"test": "jest --passWithNoTests --silent",
"_phase:build": "compile",
"_phase:test": "jest --passWithNoTests --silent",
"_phase:format": "format src"
},
"devDependencies": {
"cross-env": "~7.0.3",
@@ -25,7 +26,7 @@
"@typescript-eslint/parser": "^6.11.0",
"eslint-config-standard-with-typescript": "^40.0.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5",
+7 -6
View File
@@ -5,12 +5,13 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"build": "compile",
"build:watch": "compile",
"test": "jest --passWithNoTests --silent",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"format": "format src",
"_phase:build": "compile",
"_phase:test": "jest --passWithNoTests --silent",
"_phase:format": "format src"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
@@ -23,7 +24,7 @@
"@typescript-eslint/parser": "^6.11.0",
"eslint-config-standard-with-typescript": "^40.0.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5",
+7 -6
View File
@@ -5,13 +5,14 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc --noEmit --outDir ./dist_cache && echo build",
"build": "compile ui",
"build:docs": "api-extractor run --local",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "format src",
"svelte-check": "svelte-check --output human && mkdir -p .rush/temp/.svelte-check",
"build:watch": "tsc --noEmit --outDir ./dist_cache"
"svelte-check": "do-svelte-check",
"_phase:svelte-check": "do-svelte-check",
"build:watch": "compile ui",
"_phase:build": "compile ui",
"_phase:format": "format src"
},
"devDependencies": {
"svelte-loader": "^3.1.9",
@@ -29,7 +30,7 @@
"prettier-plugin-svelte": "^3.1.0",
"eslint": "^8.54.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5",
+7 -6
View File
@@ -5,12 +5,13 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"build": "compile",
"build:watch": "compile",
"format": "format src",
"test": "jest --passWithNoTests --silent"
"test": "jest --passWithNoTests --silent",
"_phase:build": "compile",
"_phase:test": "jest --passWithNoTests --silent",
"_phase:format": "format src"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
@@ -23,7 +24,7 @@
"@typescript-eslint/parser": "^6.11.0",
"eslint-config-standard-with-typescript": "^40.0.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5",
+7 -6
View File
@@ -5,13 +5,14 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc --noEmit --outDir ./dist_cache && echo build",
"build": "compile ui",
"build:docs": "api-extractor run --local",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "format src",
"svelte-check": "svelte-check --output human && mkdir -p .rush/temp/.svelte-check",
"build:watch": "tsc --noEmit --outDir ./dist_cache"
"svelte-check": "do-svelte-check",
"_phase:svelte-check": "do-svelte-check",
"build:watch": "compile ui",
"_phase:build": "compile ui",
"_phase:format": "format src"
},
"devDependencies": {
"svelte-loader": "^3.1.9",
@@ -29,7 +30,7 @@
"prettier-plugin-svelte": "^3.1.0",
"eslint": "^8.54.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5",
+100
View File
@@ -0,0 +1,100 @@
const { join, dirname } = require("path")
const { readFileSync, existsSync, mkdirSync, createWriteStream } = require('fs')
const { spawn } = require('child_process')
async function execProcess(cmd, logFile, args) {
let compileRoot = dirname(dirname(process.argv[1]))
console.log('Running from',)
console.log("Compiling...\n", process.cwd(), args)
if (!existsSync(join(process.cwd(), '.build'))) {
mkdirSync(join(process.cwd(), '.build'))
}
const compileOut = spawn(cmd, args)
const stdoutFilePath = `.build/${logFile}.log`
const stderrFilePath = `.build/${logFile}-err.log`
const outPromise = new Promise((resolve) => {
if (compileOut.stdout != null) {
let outPipe = createWriteStream(stdoutFilePath)
compileOut.stdout.pipe(outPipe)
compileOut.stdout.on('end', function (data) {
outPipe.close()
resolve()
})
} else {
resolve()
}
})
const errPromise = new Promise((resolve) => {
if (compileOut.stderr != null) {
let outPipe = createWriteStream(stderrFilePath)
compileOut.stderr.pipe(outPipe)
compileOut.stderr.on('end', function (data) {
outPipe.close()
resolve()
})
} else {
resolve()
}
})
let editCode = 0
const closePromise = new Promise(resolve => {
compileOut.on('close', (code) => {
editCode = code
resolve()
})
compileOut.on('error', (err) => {
console.error(err)
resolve()
})
})
await Promise.all([outPromise, errPromise, closePromise])
if (editCode !== 0) {
const data = readFileSync(stdoutFilePath)
const errData = readFileSync(stderrFilePath)
console.error('\n' + data.toString() + '\n' + errData.toString())
process.exit(editCode)
}
}
let args = process.argv.splice(2)
switch (args[0]) {
case 'ui': {
let st = Date.now()
execProcess(
'tsc',
'tsc',
[
'-pretty',
"--outDir",
"./.build/dist",
...args.splice(1)
])
.then(() => {
console.log("Compile time: ", Date.now() - st)
})
break
}
default: {
let st = Date.now()
execProcess(
'tsc',
'tsc', [
'-pretty',
...process.argv.splice(2)
])
.then(() => {
console.log("Compile time: ", Date.now() - st)
})
break
}
}
+78
View File
@@ -0,0 +1,78 @@
const { join, dirname } = require("path")
const { readFileSync, existsSync, mkdirSync, createWriteStream } = require('fs')
const { spawn } = require('child_process')
async function execProcess(cmd, logFile, args) {
let compileRoot = dirname(dirname(process.argv[1]))
console.log("Svelte check...\n", process.cwd(), args)
if (!existsSync(join(process.cwd(), '.svelte-check'))) {
mkdirSync(join(process.cwd(), '.svelte-check'))
}
const compileOut = spawn(cmd, args)
const stdoutFilePath = `.svelte-check/${logFile}.log`
const stderrFilePath = `.svelte-check/${logFile}-err.log`
const outPromise = new Promise((resolve) => {
if (compileOut.stdout != null) {
let outPipe = createWriteStream(stdoutFilePath)
compileOut.stdout.pipe(outPipe)
compileOut.stdout.on('end', function (data) {
outPipe.close()
resolve()
})
} else {
resolve()
}
})
const errPromise = new Promise((resolve) => {
if (compileOut.stderr != null) {
let outPipe = createWriteStream(stderrFilePath)
compileOut.stderr.pipe(outPipe)
compileOut.stderr.on('end', function (data) {
outPipe.close()
resolve()
})
} else {
resolve()
}
})
let editCode = 0
const closePromise = new Promise(resolve => {
compileOut.on('close', (code) => {
editCode = code
resolve()
})
compileOut.on('error', (err) => {
console.error(err)
resolve()
})
})
await Promise.all([outPromise, errPromise, closePromise])
if (editCode !== 0) {
const data = readFileSync(stdoutFilePath)
const errData = readFileSync(stderrFilePath)
console.error('\n' + data.toString() + '\n' + errData.toString())
process.exit(editCode)
}
}
let args = process.argv.splice(2)
let st = Date.now()
execProcess(
'svelte-check',
'svelte-check', [
'--output', 'human',
...process.argv.splice(2)
])
.then(() => {
console.log("Svelte check time: ", Date.now() - st)
})
+3 -1
View File
@@ -7,6 +7,8 @@
},
"bin": {
"format": "./bin/format.js",
"compile": "./bin/compile.js",
"do-svelte-check": "./bin/do-svelte-check.js",
"bump-package-version": "./bin/bump-package-version.js"
},
"devDependencies": {
@@ -18,6 +20,6 @@
"eslint": "^8.54.0"
},
"dependencies": {
"typescript": "^5.2.2"
"typescript": "^5.3.3"
}
}
@@ -22,7 +22,19 @@
},
{
"operationName": "format",
"outputFolderNames": [".rush/temp/.format"]
"outputFolderNames": [".format"]
},
{
"operationName": "_phase:build",
"outputFolderNames": ["lib", ".build"]
},
{
"operationName": "_phase:bundle",
"outputFolderNames": ["bundle"]
},
{
"operationName": "_phase:test",
"outputFolderNames": ["coverage"]
}
]
}
@@ -23,7 +23,19 @@
},
{
"operationName": "format",
"outputFolderNames": [".rush/temp/.format"]
"outputFolderNames": [".format"]
},
{
"operationName": "_phase:build",
"outputFolderNames": ["lib", ".build"]
},
{
"operationName": "_phase:bundle",
"outputFolderNames": ["bundle"]
},
{
"operationName": "_phase:test",
"outputFolderNames": ["coverage"]
}
]
}
@@ -19,6 +19,18 @@
{
"operationName": "format",
"outputFolderNames": [".rush/temp/.format"]
},
{
"operationName": "_phase:build",
"outputFolderNames": ["lib", ".build"]
},
{
"operationName": "_phase:bundle",
"outputFolderNames": ["bundle"]
},
{
"operationName": "_phase:test",
"outputFolderNames": ["coverage"]
}
]
}
@@ -23,6 +23,22 @@
{
"operationName": "format",
"outputFolderNames": [".rush/temp/.format"]
},
{
"operationName": "_phase:build",
"outputFolderNames": ["lib", ".build"]
},
{
"operationName": "_phase:bundle",
"outputFolderNames": ["bundle"]
},
{
"operationName": "_phase:package",
"outputFolderNames": ["dist"]
},
{
"operationName": "_phase:test",
"outputFolderNames": ["coverage"]
}
]
}
@@ -6,13 +6,14 @@
"strict": true,
"sourceMap": true,
"resolveJsonModule": true,
"types": ["node", "jest"],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"declarationMap": true,
"experimentalDecorators": true,
"esModuleInterop": true,
"rootDir": "./src",
"outDir": "./lib",
"types": ["node", "jest"],
"incremental": true
}
}
@@ -13,6 +13,10 @@
"operationName": "build",
"outputFolderNames": ["dist", ".build"]
},
{
"operationName": "package",
"outputFolderNames": ["dist", ".build"]
},
{
"operationName": "test",
"outputFolderNames": ["coverage"]
@@ -24,6 +28,22 @@
{
"operationName": "format",
"outputFolderNames": [".rush/temp/.format"]
},
{
"operationName": "_phase:build",
"outputFolderNames": ["lib", ".build"]
},
{
"operationName": "_phase:bundle",
"outputFolderNames": ["bundle"]
},
{
"operationName": "_phase:package",
"outputFolderNames": ["dist"]
},
{
"operationName": "_phase:test",
"outputFolderNames": ["coverage"]
}
]
}
@@ -1,7 +1,7 @@
{
"incrementalBuildIgnoredGlobs": [
"temp/**",
"dist_cache/**",
".build/**",
"coverage/**",
"**/*.svelte",
".build/**"
@@ -11,7 +11,7 @@
"operationSettings": [
{
"operationName": "build",
"outputFolderNames": ["lib", "dist_cache"]
"outputFolderNames": ["lib", ".build"]
},
{
"operationName": "test",
@@ -19,7 +19,23 @@
},
{
"operationName": "build:watch",
"outputFolderNames": ["lib", "dist_cache"]
}
"outputFolderNames": ["lib", ".build"]
},
{
"operationName": "_phase:build",
"outputFolderNames": ["lib", ".build"]
},
{
"operationName": "_phase:bundle",
"outputFolderNames": ["bundle"]
},
{
"operationName": "_phase:svelte-check",
"outputFolderNames": [".svelte-check"]
},
{
"operationName": "_phase:test",
"outputFolderNames": ["coverage"]
}
]
}
+7 -6
View File
@@ -11,12 +11,13 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build:watch": "tsc",
"build": "compile",
"build:watch": "compile",
"test": "jest --passWithNoTests --silent",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"format": "format src",
"_phase:build": "compile",
"_phase:test": "jest --passWithNoTests --silent",
"_phase:format": "format src"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
@@ -32,7 +33,7 @@
"prettier": "^3.1.0",
"prettier-plugin-svelte": "^3.1.0",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
"typescript": "^5.3.3"
},
"dependencies": {
"intl-messageformat": "^9.7.1"
+7 -6
View File
@@ -5,13 +5,14 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc --noEmit --outDir ./dist_cache && echo build",
"build": "compile ui",
"build:docs": "api-extractor run --local",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "format src",
"svelte-check": "svelte-check --output human && mkdir -p .rush/temp/.svelte-check",
"build:watch": "tsc --noEmit --outDir ./dist_cache"
"svelte-check": "do-svelte-check",
"_phase:svelte-check": "do-svelte-check",
"build:watch": "compile ui",
"_phase:build": "compile ui",
"_phase:format": "format src"
},
"devDependencies": {
"svelte-loader": "^3.1.9",
@@ -29,7 +30,7 @@
"eslint": "^8.54.0",
"prettier": "^3.1.0",
"svelte-check": "^3.6.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5",
+7 -6
View File
@@ -5,12 +5,13 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build": "compile",
"test": "jest --passWithNoTests --silent",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:test": "jest --passWithNoTests --silent",
"_phase:format": "format src"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
@@ -23,7 +24,7 @@
"@typescript-eslint/parser": "^6.11.0",
"eslint-config-standard-with-typescript": "^40.0.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5",
+7 -6
View File
@@ -5,13 +5,14 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build": "compile",
"build:docs": "api-extractor run --local",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "format src",
"build:watch": "tsc",
"test": "jest --passWithNoTests --silent"
"build:watch": "compile",
"test": "jest --passWithNoTests --silent",
"_phase:build": "compile",
"_phase:test": "jest --passWithNoTests --silent",
"_phase:format": "format src"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
@@ -24,7 +25,7 @@
"prettier-plugin-svelte": "^3.1.0",
"eslint": "^8.54.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
+5 -5
View File
@@ -5,12 +5,12 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc --noEmit --outDir ./dist_cache && echo build",
"build": "compile ui",
"build:docs": "api-extractor run --local",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "format src",
"build:watch": "tsc --noEmit --outDir ./dist_cache"
"build:watch": "compile ui",
"_phase:build": "compile ui",
"_phase:format": "format src"
},
"devDependencies": {
"svelte-loader": "^3.1.9",
@@ -28,7 +28,7 @@
"eslint": "^8.54.0",
"prettier": "^3.1.0",
"svelte-check": "^3.6.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"@types/diff": "~5.0.2",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
+7 -6
View File
@@ -5,12 +5,13 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc",
"build": "compile",
"test": "jest --passWithNoTests --silent",
"build:watch": "tsc",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "format src"
"build:watch": "compile",
"format": "format src",
"_phase:build": "compile",
"_phase:test": "jest --passWithNoTests --silent",
"_phase:format": "format src"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
@@ -22,7 +23,7 @@
"@typescript-eslint/parser": "^6.11.0",
"eslint-config-standard-with-typescript": "^40.0.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5",
+5 -5
View File
@@ -6,11 +6,11 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc --noEmit --outDir ./dist_cache && echo build",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"build": "compile ui",
"format": "format src",
"build:watch": "tsc --noEmit --outDir ./dist_cache"
"build:watch": "compile ui",
"_phase:build": "compile ui",
"_phase:format": "format src"
},
"devDependencies": {
"svelte-loader": "^3.1.9",
@@ -28,7 +28,7 @@
"eslint": "^8.54.0",
"prettier": "^3.1.0",
"svelte-check": "^3.6.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5",

Some files were not shown because too many files have changed in this diff Show More