:Apply templates (#3799)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-10-07 16:38:21 +06:00
committed by GitHub
parent 96b0cae268
commit 9075e300ca
1014 changed files with 6848 additions and 8091 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/assets/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/assets/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
roots: ["./src"],
coverageReporters: ["text-summary", "html"]
}
+8 -7
View File
@@ -6,12 +6,12 @@
"template": "@hcengineering/assets-package",
"license": "EPL-2.0",
"scripts": {
"build": "heft build",
"test": "heft test",
"build": "tsc --outDir ./lib",
"test": "jest --passWithNoTests --silent",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc",
"build:watch": "tsc --outDir ./lib",
"build:docs": ""
},
"devDependencies": {
@@ -24,10 +24,11 @@
"eslint-plugin-promise": "^6.1.1",
"eslint": "^8.26.0",
"prettier": "^2.7.1",
"@types/heft-jest": "^1.0.3",
"@rushstack/heft": "^0.47.9",
"typescript": "^4.3.5",
"@types/node": "~16.11.12"
"typescript": "4.8.4",
"@types/node": "~16.11.12",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/platform": "^0.6.9",
+4 -13
View File
@@ -1,18 +1,9 @@
{
"extends": "./node_modules/@hcengineering/platform-rig/profiles/assets/tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"rootDir": "./src",
"outDir": "./lib",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": [
"esnext",
"dom"
]
"types": ["node", "jest"],
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/eslint.config.json'],
parserOptions: { tsconfigRootDir: __dirname },
settings: {
'svelte3/ignore-styles': () => true
+1 -1
View File
@@ -1,4 +1,4 @@
{
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
"rigPackageName": "@hcengineering/platform-rig",
"rigProfile": "ui"
@@ -0,0 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)']
}
+7 -4
View File
@@ -5,12 +5,12 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc --incremental --noEmit --outDir ./dist_cache && echo build",
"build": "tsc --noEmit --outDir ./dist_cache && echo build",
"lint": "svelte-check && eslint",
"lint:fix": "eslint --fix src",
"format": "prettier --write --plugin-search-dir=. src && eslint --fix src",
"svelte-check": "svelte-check --output human",
"build:watch": "tsc --incremental --noEmit --outDir ./dist_cache"
"build:watch": "tsc --noEmit --outDir ./dist_cache"
},
"devDependencies": {
"svelte-loader": "^3.1.3",
@@ -27,8 +27,11 @@
"prettier-plugin-svelte": "^2.8.0",
"eslint": "^8.26.0",
"prettier": "^2.7.1",
"svelte-check": "3.2.0",
"typescript": "^4.3.5"
"svelte-check": "3.5.2",
"typescript": "4.8.4",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/core": "^0.6.27",
+4 -13
View File
@@ -1,17 +1,8 @@
{
"extends": "./node_modules/@hcengineering/platform-rig/profiles/ui/tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"declaration": true,
"outDir": "./lib",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"noImplicitAny": false,
"lib": [
"esnext",
"dom"
]
"rootDir": "./src",
"outDir": "./lib"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
+2 -3
View File
@@ -1,5 +1,4 @@
{
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
"rigPackageName": "@hcengineering/platform-rig",
"rigProfile": "default"
"rigPackageName": "@hcengineering/platform-rig"
}
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
roots: ["./src"],
coverageReporters: ["text-summary", "html"]
}
+8 -6
View File
@@ -5,15 +5,15 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "heft build",
"build:watch": "tsc",
"build": "tsc --outDir ./lib",
"build:watch": "tsc --outDir ./lib",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"lint": "eslint src"
"lint": "eslint src",
"test": "jest --passWithNoTests --silent"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
"@types/heft-jest": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"eslint-config-standard-with-typescript": "^23.0.0",
@@ -22,8 +22,10 @@
"eslint-plugin-promise": "^6.1.1",
"eslint": "^8.26.0",
"prettier": "^2.7.1",
"@rushstack/heft": "^0.47.9",
"typescript": "^4.3.5"
"typescript": "4.8.4",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/platform": "^0.6.9",
+1 -2
View File
@@ -3,7 +3,6 @@
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
"lib": ["esnext", "dom"]
"outDir": "./lib"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/assets/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/assets/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
roots: ["./src"],
coverageReporters: ["text-summary", "html"]
}
+7 -6
View File
@@ -6,16 +6,15 @@
"template": "@hcengineering/assets-package",
"license": "EPL-2.0",
"scripts": {
"build": "heft build",
"build": "tsc --outDir ./lib",
"build:docs": "",
"test": "heft test",
"test": "jest --passWithNoTests --silent",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
"build:watch": "tsc --outDir ./lib"
},
"devDependencies": {
"@types/heft-jest": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"eslint-config-standard-with-typescript": "^23.0.0",
@@ -24,9 +23,11 @@
"eslint-plugin-promise": "^6.1.1",
"eslint": "^8.26.0",
"prettier": "^2.7.1",
"@rushstack/heft": "^0.47.9",
"@types/node": "~16.11.12",
"@hcengineering/platform-rig": "^0.6.0"
"@hcengineering/platform-rig": "^0.6.0",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/platform": "^0.6.9",
+4 -13
View File
@@ -1,18 +1,9 @@
{
"extends": "./node_modules/@hcengineering/platform-rig/profiles/assets/tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"rootDir": "./src",
"outDir": "./lib",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": [
"esnext",
"dom"
]
"types": ["node", "jest"],
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/eslint.config.json'],
parserOptions: { tsconfigRootDir: __dirname },
settings: {
'svelte3/ignore-styles': () => true
+1 -1
View File
@@ -1,4 +1,4 @@
{
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
"rigPackageName": "@hcengineering/platform-rig",
"rigProfile": "ui"
@@ -0,0 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)']
}
+7 -4
View File
@@ -5,13 +5,13 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc --incremental --noEmit --outDir ./dist_cache && echo build",
"build": "tsc --noEmit --outDir ./dist_cache && echo build",
"build:docs": "api-extractor run --local",
"lint": "svelte-check && eslint",
"lint:fix": "eslint --fix src",
"format": "prettier --write --plugin-search-dir=. src && eslint --fix src",
"svelte-check": "svelte-check --output human",
"build:watch": "tsc --incremental --noEmit --outDir ./dist_cache"
"build:watch": "tsc --noEmit --outDir ./dist_cache"
},
"devDependencies": {
"svelte-loader": "^3.1.3",
@@ -28,8 +28,11 @@
"prettier-plugin-svelte": "^2.8.0",
"eslint": "^8.26.0",
"prettier": "^2.7.1",
"svelte-check": "3.2.0",
"typescript": "^4.3.5"
"svelte-check": "3.5.2",
"typescript": "4.8.4",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/platform": "^0.6.9",
+4 -12
View File
@@ -1,16 +1,8 @@
{
"extends": "./node_modules/@hcengineering/platform-rig/profiles/ui/tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"declaration": true,
"outDir": "./lib",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": [
"esnext",
"dom"
]
"rootDir": "./src",
"outDir": "./lib"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
+1 -15
View File
@@ -1,18 +1,4 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@hcengineering/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
roots: ["./src"],
coverageReporters: ["text-summary", "html"]
}
+8 -6
View File
@@ -5,15 +5,15 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "heft build",
"build:watch": "tsc",
"build": "tsc --outDir ./lib",
"build:watch": "tsc --outDir ./lib",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "prettier --write src && eslint --fix src"
"format": "prettier --write src && eslint --fix src",
"test": "jest --passWithNoTests --silent"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
"@types/heft-jest": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-promise": "^6.1.1",
@@ -22,8 +22,10 @@
"@typescript-eslint/parser": "^5.41.0",
"eslint-config-standard-with-typescript": "^23.0.0",
"prettier": "^2.7.1",
"@rushstack/heft": "^0.47.9",
"typescript": "^4.3.5"
"typescript": "4.8.4",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/platform": "^0.6.9",
+1 -2
View File
@@ -3,7 +3,6 @@
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
"lib": ["esnext", "dom"]
"outDir": "./lib"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/assets/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/assets/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
roots: ["./src"],
coverageReporters: ["text-summary", "html"]
}
+7 -6
View File
@@ -6,16 +6,15 @@
"template": "@hcengineering/assets-package",
"license": "EPL-2.0",
"scripts": {
"build": "heft build",
"test": "heft test",
"build": "tsc --outDir ./lib",
"test": "jest --passWithNoTests --silent",
"build:docs": "",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
"build:watch": "tsc --outDir ./lib"
},
"devDependencies": {
"@types/heft-jest": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"eslint-config-standard-with-typescript": "^23.0.0",
@@ -24,9 +23,11 @@
"eslint-plugin-promise": "^6.1.1",
"eslint": "^8.26.0",
"prettier": "^2.7.1",
"@rushstack/heft": "^0.47.9",
"@types/node": "~16.11.12",
"@hcengineering/platform-rig": "^0.6.0"
"@hcengineering/platform-rig": "^0.6.0",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/platform": "^0.6.9",
+4 -13
View File
@@ -1,18 +1,9 @@
{
"extends": "./node_modules/@hcengineering/platform-rig/profiles/assets/tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"rootDir": "./src",
"outDir": "./lib",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": [
"esnext",
"dom"
]
"types": ["node", "jest"],
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/eslint.config.json'],
parserOptions: { tsconfigRootDir: __dirname },
settings: {
'svelte3/ignore-styles': () => true
+1 -1
View File
@@ -1,4 +1,4 @@
{
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
"rigPackageName": "@hcengineering/platform-rig",
"rigProfile": "ui"
@@ -0,0 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)']
}
+7 -4
View File
@@ -5,12 +5,12 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc --incremental --noEmit --outDir ./dist_cache && echo build",
"build": "tsc --noEmit --outDir ./dist_cache && echo build",
"build:docs": "api-extractor run --local",
"lint": "svelte-check && eslint",
"lint:fix": "eslint --fix src",
"format": "prettier --write --plugin-search-dir=. src && eslint --fix src",
"build:watch": "tsc --incremental --noEmit --outDir ./dist_cache"
"build:watch": "tsc --noEmit --outDir ./dist_cache"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
@@ -25,10 +25,13 @@
"prettier": "^2.7.1",
"prettier-plugin-svelte": "^2.8.0",
"sass": "^1.53.0",
"svelte-check": "3.2.0",
"svelte-check": "3.5.2",
"svelte-loader": "^3.1.3",
"svelte-preprocess": "5.0.3",
"typescript": "^4.3.5"
"typescript": "4.8.4",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/automation": "^0.6.0",
+4 -12
View File
@@ -1,16 +1,8 @@
{
"extends": "./node_modules/@hcengineering/platform-rig/profiles/ui/tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"declaration": true,
"outDir": "./lib",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": [
"esnext",
"dom"
]
"rootDir": "./src",
"outDir": "./lib"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
+1 -15
View File
@@ -1,18 +1,4 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@hcengineering/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
roots: ["./src"],
coverageReporters: ["text-summary", "html"]
}
+7 -6
View File
@@ -5,27 +5,28 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "heft build",
"build:watch": "tsc",
"test": "heft test",
"build": "tsc --outDir ./lib",
"build:watch": "tsc --outDir ./lib",
"test": "jest --passWithNoTests --silent",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "prettier --write src && eslint --fix src"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
"@types/heft-jest": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-n": "^15.4.0",
"eslint": "^8.26.0",
"simplytyped": "^3.3.0",
"@rushstack/heft": "^0.47.9",
"@typescript-eslint/parser": "^5.41.0",
"eslint-config-standard-with-typescript": "^23.0.0",
"prettier": "^2.7.1",
"typescript": "^4.3.5"
"typescript": "4.8.4",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/platform": "^0.6.9",
+1 -2
View File
@@ -3,7 +3,6 @@
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
"lib": ["esnext", "dom"]
"outDir": "./lib"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/assets/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/assets/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
roots: ["./src"],
coverageReporters: ["text-summary", "html"]
}
+7 -6
View File
@@ -6,17 +6,16 @@
"template": "@hcengineering/assets-package",
"license": "EPL-2.0",
"scripts": {
"build": "heft build",
"test": "heft test",
"build": "tsc --outDir ./lib",
"test": "jest --passWithNoTests --silent",
"build:docs": "",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
"build:watch": "tsc --outDir ./lib"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
"@types/heft-jest": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"eslint-config-standard-with-typescript": "^23.0.0",
@@ -25,8 +24,10 @@
"eslint-plugin-promise": "^6.1.1",
"eslint": "^8.26.0",
"prettier": "^2.7.1",
"@rushstack/heft": "^0.47.9",
"@types/node": "~16.11.12"
"@types/node": "~16.11.12",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/platform": "^0.6.9",
+4 -13
View File
@@ -1,18 +1,9 @@
{
"extends": "./node_modules/@hcengineering/platform-rig/profiles/assets/tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"rootDir": "./src",
"outDir": "./lib",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": [
"esnext",
"dom"
]
"types": ["node", "jest"],
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/eslint.config.json'],
parserOptions: { tsconfigRootDir: __dirname },
settings: {
'svelte3/ignore-styles': () => true
+1 -1
View File
@@ -1,4 +1,4 @@
{
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
"rigPackageName": "@hcengineering/platform-rig",
"rigProfile": "ui"
+5
View File
@@ -0,0 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)']
}
+8 -5
View File
@@ -5,12 +5,12 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc --incremental --noEmit --outDir ./dist_cache && echo build",
"build": "tsc --noEmit --outDir ./dist_cache && echo build",
"build:docs": "api-extractor run --local",
"lint": "svelte-check && eslint",
"lint:fix": "eslint --fix src",
"format": "prettier --write --plugin-search-dir=. src && eslint --fix src",
"build:watch": "tsc --incremental --noEmit --outDir ./dist_cache"
"build:watch": "tsc --noEmit --outDir ./dist_cache"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
@@ -27,9 +27,12 @@
"eslint-plugin-svelte3": "^4.0.0",
"prettier-plugin-svelte": "^2.8.0",
"prettier": "^2.7.1",
"svelte-check": "3.2.0",
"typescript": "^4.3.5",
"@types/qs": "~6.9.7"
"svelte-check": "3.5.2",
"typescript": "4.8.4",
"@types/qs": "~6.9.7",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/platform": "^0.6.9",
+4 -12
View File
@@ -1,16 +1,8 @@
{
"extends": "./node_modules/@hcengineering/platform-rig/profiles/ui/tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"declaration": true,
"outDir": "./lib",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": [
"esnext",
"dom"
]
"rootDir": "./src",
"outDir": "./lib"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
+1 -15
View File
@@ -1,18 +1,4 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@hcengineering/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
roots: ["./src"],
coverageReporters: ["text-summary", "html"]
}
+9 -7
View File
@@ -5,15 +5,15 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "heft build",
"build:watch": "tsc",
"build": "tsc --outDir ./lib",
"build:watch": "tsc --outDir ./lib",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "prettier --write src && eslint --fix src"
"format": "prettier --write src && eslint --fix src",
"test": "jest --passWithNoTests --silent"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
"@types/heft-jest": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-promise": "^6.1.1",
@@ -22,9 +22,11 @@
"@typescript-eslint/parser": "^5.41.0",
"eslint-config-standard-with-typescript": "^23.0.0",
"prettier": "^2.7.1",
"@rushstack/heft": "^0.47.9",
"typescript": "^4.3.5",
"@types/qs": "~6.9.7"
"typescript": "4.8.4",
"@types/qs": "~6.9.7",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/platform": "^0.6.9",
+43 -40
View File
@@ -407,52 +407,55 @@ async function updateMixins (
* @public
*/
export function processComment (comment: string): string {
comment = comment.replaceAll('\n', '\n</br>')
comment = comment.replaceAll(/\[(\/?[^[\]]+)]/gi, (text: string, args: string) => {
if (args.startsWith('/URL')) {
return '</a>'
}
comment = comment.split('\n').join('\n</br>')
comment = comment
.split(/\[(\/?[^[\]]+)]/gi)
.map((args: string) => {
if (args.startsWith('/URL')) {
return '</a>'
}
if (args.startsWith('URL=')) {
return `<a href="${args.substring(4)}">`
}
if (args.includes('/FONT')) {
return '</span>'
}
if (args.includes('FONT')) {
return `<span style="font: ${args.substring(4)};">`
}
if (args.startsWith('URL=')) {
return `<a href="${args.substring(4)}">`
}
if (args.includes('/FONT')) {
return '</span>'
}
if (args.includes('FONT')) {
return `<span style="font: ${args.substring(4)};">`
}
if (args.includes('/SIZE')) {
return '</span>'
}
if (args.includes('SIZE')) {
return `<span style="font-size: ${args.substring(4)};">`
}
if (args.includes('/SIZE')) {
return '</span>'
}
if (args.includes('SIZE')) {
return `<span style="font-size: ${args.substring(4)};">`
}
if (args.includes('/COLOR')) {
return '</span>'
}
if (args.includes('COLOR')) {
return `<span style="color: ${args.substring(5)};">`
}
if (args.includes('/COLOR')) {
return '</span>'
}
if (args.includes('COLOR')) {
return `<span style="color: ${args.substring(5)};">`
}
if (args.includes('/IMG')) {
return '"/>'
}
if (args.includes('IMG')) {
return `<img ${args.substring(3)} src="`
}
if (args.includes('/IMG')) {
return '"/>'
}
if (args.includes('IMG')) {
return `<img ${args.substring(3)} src="`
}
if (args.includes('/TABLE')) {
return '</table>'
}
if (args.includes('TABLE')) {
return '<table>'
}
if (args.includes('/TABLE')) {
return '</table>'
}
if (args.includes('TABLE')) {
return '<table>'
}
return `<${args}>`
})
return `<${args}>`
})
.join()
return comment
}
+1 -2
View File
@@ -3,7 +3,6 @@
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
"lib": ["esnext", "dom"]
"outDir": "./lib"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/assets/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/assets/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
roots: ["./src"],
coverageReporters: ["text-summary", "html"]
}
+7 -6
View File
@@ -6,17 +6,16 @@
"template": "@hcengineering/assets-package",
"license": "EPL-2.0",
"scripts": {
"build": "heft build",
"test": "heft test",
"build": "tsc --outDir ./lib",
"test": "jest --passWithNoTests --silent",
"build:docs": "",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
"build:watch": "tsc --outDir ./lib"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
"@types/heft-jest": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"eslint-config-standard-with-typescript": "^23.0.0",
@@ -25,8 +24,10 @@
"eslint-plugin-promise": "^6.1.1",
"eslint": "^8.26.0",
"prettier": "^2.7.1",
"@rushstack/heft": "^0.47.9",
"@types/node": "~16.11.12"
"@types/node": "~16.11.12",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/platform": "^0.6.9",
+4 -13
View File
@@ -1,18 +1,9 @@
{
"extends": "./node_modules/@hcengineering/platform-rig/profiles/assets/tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"rootDir": "./src",
"outDir": "./lib",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": [
"esnext",
"dom"
]
"types": ["node", "jest"],
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/eslint.config.json'],
parserOptions: { tsconfigRootDir: __dirname },
settings: {
'svelte3/ignore-styles': () => true
+1 -1
View File
@@ -1,4 +1,4 @@
{
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
"rigPackageName": "@hcengineering/platform-rig",
"rigProfile": "ui"
+5
View File
@@ -0,0 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)']
}
+7 -4
View File
@@ -5,12 +5,12 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc --incremental --noEmit --outDir ./dist_cache && echo build",
"build": "tsc --noEmit --outDir ./dist_cache && echo build",
"build:docs": "api-extractor run --local",
"lint": "svelte-check && eslint",
"lint:fix": "eslint --fix src",
"format": "prettier --write --plugin-search-dir=. src && eslint --fix src",
"build:watch": "tsc --incremental --noEmit --outDir ./dist_cache"
"build:watch": "tsc --noEmit --outDir ./dist_cache"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
@@ -25,10 +25,13 @@
"prettier": "^2.7.1",
"prettier-plugin-svelte": "^2.8.0",
"sass": "^1.53.0",
"svelte-check": "3.2.0",
"svelte-check": "3.5.2",
"svelte-loader": "^3.1.3",
"svelte-preprocess": "5.0.3",
"typescript": "^4.3.5"
"typescript": "4.8.4",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/activity": "^0.6.0",
+4 -12
View File
@@ -1,16 +1,8 @@
{
"extends": "./node_modules/@hcengineering/platform-rig/profiles/ui/tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"declaration": true,
"outDir": "./lib",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": [
"esnext",
"dom"
]
"rootDir": "./src",
"outDir": "./lib"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
+1 -15
View File
@@ -1,18 +1,4 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@hcengineering/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
roots: ["./src"],
coverageReporters: ["text-summary", "html"]
}
+8 -6
View File
@@ -5,15 +5,15 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "heft build",
"build:watch": "tsc",
"build": "tsc --outDir ./lib",
"build:watch": "tsc --outDir ./lib",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "prettier --write src && eslint --fix src"
"format": "prettier --write src && eslint --fix src",
"test": "jest --passWithNoTests --silent"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
"@types/heft-jest": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-promise": "^6.1.1",
@@ -22,8 +22,10 @@
"@typescript-eslint/parser": "^5.41.0",
"eslint-config-standard-with-typescript": "^23.0.0",
"prettier": "^2.7.1",
"@rushstack/heft": "^0.47.9",
"typescript": "^4.3.5"
"typescript": "4.8.4",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/contact": "^0.6.19",
+1 -2
View File
@@ -3,7 +3,6 @@
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
"lib": ["esnext", "dom"]
"outDir": "./lib"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/assets/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/assets/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
roots: ["./src"],
coverageReporters: ["text-summary", "html"]
}
+7 -6
View File
@@ -6,17 +6,16 @@
"template": "@hcengineering/assets-package",
"license": "EPL-2.0",
"scripts": {
"build": "heft build",
"test": "heft test",
"build": "tsc --outDir ./lib",
"test": "jest --passWithNoTests --silent",
"build:docs": "",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
"build:watch": "tsc --outDir ./lib"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
"@types/heft-jest": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"eslint-config-standard-with-typescript": "^23.0.0",
@@ -25,8 +24,10 @@
"eslint-plugin-promise": "^6.1.1",
"eslint": "^8.26.0",
"prettier": "^2.7.1",
"@rushstack/heft": "^0.47.9",
"@types/node": "~16.11.12"
"@types/node": "~16.11.12",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/platform": "^0.6.9",
+4 -13
View File
@@ -1,18 +1,9 @@
{
"extends": "./node_modules/@hcengineering/platform-rig/profiles/assets/tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"rootDir": "./src",
"outDir": "./lib",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": [
"esnext",
"dom"
]
"types": ["node", "jest"],
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/eslint.config.json'],
parserOptions: { tsconfigRootDir: __dirname },
settings: {
'svelte3/ignore-styles': () => true
+1 -1
View File
@@ -1,4 +1,4 @@
{
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
"rigPackageName": "@hcengineering/platform-rig",
"rigProfile": "ui"
@@ -0,0 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)']
}
+7 -4
View File
@@ -5,13 +5,13 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc --incremental --noEmit --outDir ./dist_cache && echo build",
"build": "tsc --noEmit --outDir ./dist_cache && echo build",
"build:docs": "api-extractor run --local",
"lint": "svelte-check && eslint",
"lint:fix": "eslint --fix src",
"format": "prettier --write --plugin-search-dir=. src && eslint --fix src",
"svelte-check": "svelte-check --output human",
"build:watch": "tsc --incremental --noEmit --outDir ./dist_cache"
"build:watch": "tsc --noEmit --outDir ./dist_cache"
},
"devDependencies": {
"svelte-loader": "^3.1.3",
@@ -28,8 +28,11 @@
"prettier-plugin-svelte": "^2.8.0",
"eslint": "^8.26.0",
"prettier": "^2.7.1",
"svelte-check": "3.2.0",
"typescript": "^4.3.5"
"svelte-check": "3.5.2",
"typescript": "4.8.4",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/core": "^0.6.27",
+4 -12
View File
@@ -1,16 +1,8 @@
{
"extends": "./node_modules/@hcengineering/platform-rig/profiles/ui/tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"declaration": true,
"outDir": "./lib",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": [
"esnext",
"dom"
]
"rootDir": "./src",
"outDir": "./lib"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
+1 -15
View File
@@ -1,18 +1,4 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@hcengineering/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
roots: ["./src"],
coverageReporters: ["text-summary", "html"]
}
+8 -6
View File
@@ -5,15 +5,15 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "heft build",
"build:watch": "tsc",
"build": "tsc --outDir ./lib",
"build:watch": "tsc --outDir ./lib",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "prettier --write src && eslint --fix src"
"format": "prettier --write src && eslint --fix src",
"test": "jest --passWithNoTests --silent"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
"@types/heft-jest": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-promise": "^6.1.1",
@@ -22,8 +22,10 @@
"@typescript-eslint/parser": "^5.41.0",
"eslint-config-standard-with-typescript": "^23.0.0",
"prettier": "^2.7.1",
"@rushstack/heft": "^0.47.9",
"typescript": "^4.3.5"
"typescript": "4.8.4",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/platform": "^0.6.9",
+1 -2
View File
@@ -3,7 +3,6 @@
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
"lib": ["esnext", "dom"]
"outDir": "./lib"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/assets/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/assets/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
roots: ["./src"],
coverageReporters: ["text-summary", "html"]
}
+7 -6
View File
@@ -6,17 +6,16 @@
"template": "@hcengineering/assets-package",
"license": "EPL-2.0",
"scripts": {
"build": "heft build",
"test": "heft test",
"build": "tsc --outDir ./lib",
"test": "jest --passWithNoTests --silent",
"build:docs": "",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src",
"build:watch": "tsc"
"build:watch": "tsc --outDir ./lib"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
"@types/heft-jest": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"eslint-config-standard-with-typescript": "^23.0.0",
@@ -25,8 +24,10 @@
"eslint-plugin-promise": "^6.1.1",
"eslint": "^8.26.0",
"prettier": "^2.7.1",
"@rushstack/heft": "^0.47.9",
"@types/node": "~16.11.12"
"@types/node": "~16.11.12",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/platform": "^0.6.9",
+4 -13
View File
@@ -1,18 +1,9 @@
{
"extends": "./node_modules/@hcengineering/platform-rig/profiles/assets/tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"rootDir": "./src",
"outDir": "./lib",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": [
"esnext",
"dom"
]
"types": ["node", "jest"],
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/ui/eslint.config.json'],
parserOptions: { tsconfigRootDir: __dirname },
settings: {
'svelte3/ignore-styles': () => true
+1 -1
View File
@@ -1,4 +1,4 @@
{
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
"rigPackageName": "@hcengineering/platform-rig",
"rigProfile": "ui"
+5
View File
@@ -0,0 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)']
}
+7 -4
View File
@@ -5,13 +5,13 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "tsc --incremental --noEmit --outDir ./dist_cache && echo build",
"build": "tsc --noEmit --outDir ./dist_cache && echo build",
"build:docs": "api-extractor run --local",
"lint": "svelte-check && eslint",
"lint:fix": "eslint --fix src",
"format": "prettier --write --plugin-search-dir=. src && eslint --fix src",
"svelte-check": "svelte-check --output human",
"build:watch": "tsc --incremental --noEmit --outDir ./dist_cache"
"build:watch": "tsc --noEmit --outDir ./dist_cache"
},
"devDependencies": {
"svelte-loader": "^3.1.3",
@@ -28,8 +28,11 @@
"prettier-plugin-svelte": "^2.8.0",
"eslint": "^8.26.0",
"prettier": "^2.7.1",
"svelte-check": "3.2.0",
"typescript": "^4.3.5"
"svelte-check": "3.5.2",
"typescript": "4.8.4",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"@hcengineering/core": "^0.6.27",
+4 -12
View File
@@ -1,16 +1,8 @@
{
"extends": "./node_modules/@hcengineering/platform-rig/profiles/ui/tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"declaration": true,
"outDir": "./lib",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": [
"esnext",
"dom"
]
"rootDir": "./src",
"outDir": "./lib"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
+1 -15
View File
@@ -1,18 +1,4 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@hcengineering/platform-rig"
/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
roots: ["./src"],
coverageReporters: ["text-summary", "html"]
}
+8 -6
View File
@@ -5,15 +5,15 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"build": "heft build",
"build:watch": "tsc",
"build": "tsc --outDir ./lib",
"build:watch": "tsc --outDir ./lib",
"lint:fix": "eslint --fix src",
"lint": "eslint src",
"format": "prettier --write src && eslint --fix src"
"format": "prettier --write src && eslint --fix src",
"test": "jest --passWithNoTests --silent"
},
"devDependencies": {
"@hcengineering/platform-rig": "^0.6.0",
"@types/heft-jest": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-promise": "^6.1.1",
@@ -22,8 +22,10 @@
"@typescript-eslint/parser": "^5.41.0",
"eslint-config-standard-with-typescript": "^23.0.0",
"prettier": "^2.7.1",
"@rushstack/heft": "^0.47.9",
"typescript": "^4.3.5"
"typescript": "4.8.4",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"@types/jest": "^29.5.5"
},
"dependencies": {
"fast-equals": "^2.0.3",
+1 -2
View File
@@ -3,7 +3,6 @@
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
"lib": ["esnext", "dom"]
"outDir": "./lib"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/config/eslint.config.json'],
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/eslint.config.json'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json'

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