diff --git a/cloud/dev-server/app/Dockerfile b/cloud/dev-server/app/Dockerfile new file mode 100644 index 0000000000..8b9ef3ee5f --- /dev/null +++ b/cloud/dev-server/app/Dockerfile @@ -0,0 +1,12 @@ +FROM node:14 + +WORKDIR /usr/src/app + +COPY package.json ./ + +RUN npm install + +COPY ./lib ./lib + +EXPOSE 3333 +CMD [ "node", "lib/server.js" ] diff --git a/common/changes/@anticrm/core/try-publish_2021-08-04-17-31.json b/common/changes/@anticrm/core/try-publish_2021-08-04-17-31.json new file mode 100644 index 0000000000..b1920c5c2c --- /dev/null +++ b/common/changes/@anticrm/core/try-publish_2021-08-04-17-31.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@anticrm/core", + "comment": "Minor changes for publish", + "type": "patch" + } + ], + "packageName": "@anticrm/core" +} \ No newline at end of file diff --git a/common/changes/@anticrm/dev-server/try-publish_2021-08-04-17-31.json b/common/changes/@anticrm/dev-server/try-publish_2021-08-04-17-31.json new file mode 100644 index 0000000000..80e29cb93e --- /dev/null +++ b/common/changes/@anticrm/dev-server/try-publish_2021-08-04-17-31.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@anticrm/dev-server", + "comment": "Minor changes for publish", + "type": "patch" + } + ], + "packageName": "@anticrm/dev-server" +} \ No newline at end of file diff --git a/common/changes/@anticrm/dev-storage/try-publish_2021-08-04-17-31.json b/common/changes/@anticrm/dev-storage/try-publish_2021-08-04-17-31.json new file mode 100644 index 0000000000..9704d61de1 --- /dev/null +++ b/common/changes/@anticrm/dev-storage/try-publish_2021-08-04-17-31.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@anticrm/dev-storage", + "comment": "Minor changes for publish", + "type": "patch" + } + ], + "packageName": "@anticrm/dev-storage" +} \ No newline at end of file diff --git a/common/changes/@anticrm/platform/try-publish_2021-08-04-17-31.json b/common/changes/@anticrm/platform/try-publish_2021-08-04-17-31.json new file mode 100644 index 0000000000..0533c10463 --- /dev/null +++ b/common/changes/@anticrm/platform/try-publish_2021-08-04-17-31.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@anticrm/platform", + "comment": "Minor changes for publish", + "type": "patch" + } + ], + "packageName": "@anticrm/platform" +} \ No newline at end of file diff --git a/common/changes/@anticrm/server-ws/try-publish_2021-08-04-17-31.json b/common/changes/@anticrm/server-ws/try-publish_2021-08-04-17-31.json new file mode 100644 index 0000000000..f750b751d3 --- /dev/null +++ b/common/changes/@anticrm/server-ws/try-publish_2021-08-04-17-31.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@anticrm/server-ws", + "comment": "Minor changes for publish", + "type": "patch" + } + ], + "packageName": "@anticrm/server-ws" +} \ No newline at end of file diff --git a/dev/server/src/index.ts b/dev/server/src/index.ts index 3542bd8526..65ead4648c 100644 --- a/dev/server/src/index.ts +++ b/dev/server/src/index.ts @@ -14,7 +14,4 @@ // limitations under the License. // -import { start } from './server' - -// eslint-disable-next-line @typescript-eslint/no-floating-promises -start(3333) +export { start } from './server' diff --git a/dev/storage/src/storage.ts b/dev/storage/src/storage.ts index 4ca86b1aa4..0c3708807f 100644 --- a/dev/storage/src/storage.ts +++ b/dev/storage/src/storage.ts @@ -85,8 +85,6 @@ class DevStorage implements ServerStorage { /** * @public - * @param handler - - * @returns */ export async function createStorage (): Promise { const txes = txJson as unknown as Tx[] diff --git a/packages/core/src/classes.ts b/packages/core/src/classes.ts index 49e51a619e..ae0d1f56da 100644 --- a/packages/core/src/classes.ts +++ b/packages/core/src/classes.ts @@ -15,6 +15,9 @@ import type { IntlString, Asset, Resource } from '@anticrm/platform' +/** + * @public + */ export type Ref = string & { __ref: T } export type PrimitiveType = number | string | boolean | undefined | Ref export type Timestamp = number diff --git a/packages/platform/package.json b/packages/platform/package.json index 0ca6143ef9..ad77e7d2c3 100644 --- a/packages/platform/package.json +++ b/packages/platform/package.json @@ -6,11 +6,7 @@ "license": "EPL-2.0", "scripts": { "build": "heft build", - "build:docs": "api-extractor run --local", - "test": "jest", - "lint": "ts-standard src", - "lint:fix": "eslint --fix ./src", - "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" + "lint:fix": "eslint --fix ./src" }, "devDependencies": { "@anticrm/platform-rig":"~0.6.0", diff --git a/rush.json b/rush.json index 34eea7ace3..32f54ae814 100644 --- a/rush.json +++ b/rush.json @@ -290,19 +290,19 @@ * your PR branch, and in this situation "rush change" will also automatically invoke "git fetch" * to retrieve the latest activity for the remote master branch. */ - // "url": "https://github.com/microsoft/rush-example", + "url": "https://github.com/hcengineering/anticrm", /** * The default branch name. This tells "rush change" which remote branch to compare against. * The default value is "master" */ - // "defaultBranch": "master", + "defaultBranch": "main", /** * The default remote. This tells "rush change" which remote to compare against if the remote URL is * not set or if a remote matching the provided remote URL is not found. */ - // "defaultRemote": "origin" + "defaultRemote": "origin" }, /** diff --git a/server/ws/package.json b/server/ws/package.json index 38c79f4d1d..29759ea88d 100644 --- a/server/ws/package.json +++ b/server/ws/package.json @@ -6,11 +6,7 @@ "license": "EPL-2.0", "scripts": { "build": "heft build", - "build:docs": "api-extractor run --local", - "test": "jest", - "lint": "ts-standard src", - "lint:fix": "eslint --fix ./src", - "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" + "lint:fix": "eslint --fix ./src" }, "devDependencies": { "@anticrm/platform-rig":"~0.6.0",