mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-29 19:55:20 +00:00
add model-all
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
9246369b40
commit
1ee511ec83
@ -11,6 +11,7 @@ specifiers:
|
||||
'@rush-temp/login-assets': file:./projects/login-assets.tgz
|
||||
'@rush-temp/login-resources': file:./projects/login-resources.tgz
|
||||
'@rush-temp/model': file:./projects/model.tgz
|
||||
'@rush-temp/model-all': file:./projects/model-all.tgz
|
||||
'@rush-temp/model-core': file:./projects/model-core.tgz
|
||||
'@rush-temp/model-rig': file:./projects/model-rig.tgz
|
||||
'@rush-temp/platform': file:./projects/platform.tgz
|
||||
@ -76,6 +77,7 @@ dependencies:
|
||||
'@rush-temp/login-assets': file:projects/login-assets.tgz
|
||||
'@rush-temp/login-resources': file:projects/login-resources.tgz_c38cf1a7a413db8918b0b4754c21e4c5
|
||||
'@rush-temp/model': file:projects/model.tgz_6c259fadfeb3a4b20890aefe87070b8b
|
||||
'@rush-temp/model-all': file:projects/model-all.tgz_6c259fadfeb3a4b20890aefe87070b8b
|
||||
'@rush-temp/model-core': file:projects/model-core.tgz_6c259fadfeb3a4b20890aefe87070b8b
|
||||
'@rush-temp/model-rig': file:projects/model-rig.tgz_6ab28797e7a22071465f7d680ae81ae5
|
||||
'@rush-temp/platform': file:projects/platform.tgz_6c259fadfeb3a4b20890aefe87070b8b
|
||||
@ -1071,6 +1073,10 @@ packages:
|
||||
resolution: {integrity: sha512-TmVHsm43br64js9BqHWqiDZA+xMtbUpI1MBIA0EyiBmoV9pcEYFOSdj5fr6enZNfh4fChh+AGOLIzGwJnkshyQ==}
|
||||
dev: false
|
||||
|
||||
/@types/node/16.4.13:
|
||||
resolution: {integrity: sha512-bLL69sKtd25w7p1nvg9pigE4gtKVpGTPojBFLMkGHXuUgap2sLqQt2qUnqmVCDfzGUL0DRNZP+1prIZJbMeAXg==}
|
||||
dev: false
|
||||
|
||||
/@types/normalize-package-data/2.4.1:
|
||||
resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==}
|
||||
dev: false
|
||||
@ -7089,6 +7095,35 @@ packages:
|
||||
webpack: 5.48.0_webpack-cli@4.7.2
|
||||
dev: false
|
||||
|
||||
/ts-node/10.1.0_dea0625f6d31b223e93dc3dc354b8b43:
|
||||
resolution: {integrity: sha512-6szn3+J9WyG2hE+5W8e0ruZrzyk1uFLYye6IGMBadnOzDh8aP7t8CbFpsfCiEx2+wMixAhjFt7lOZC4+l+WbEA==}
|
||||
engines: {node: '>=12.0.0'}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
'@swc/core': '>=1.2.50'
|
||||
'@swc/wasm': '>=1.2.50'
|
||||
'@types/node': '*'
|
||||
typescript: '>=2.7'
|
||||
peerDependenciesMeta:
|
||||
'@swc/core':
|
||||
optional: true
|
||||
'@swc/wasm':
|
||||
optional: true
|
||||
dependencies:
|
||||
'@tsconfig/node10': 1.0.8
|
||||
'@tsconfig/node12': 1.0.9
|
||||
'@tsconfig/node14': 1.0.1
|
||||
'@tsconfig/node16': 1.0.2
|
||||
'@types/node': 16.4.13
|
||||
arg: 4.1.3
|
||||
create-require: 1.1.1
|
||||
diff: 4.0.2
|
||||
make-error: 1.3.6
|
||||
source-map-support: 0.5.19
|
||||
typescript: 4.3.5
|
||||
yn: 3.1.1
|
||||
dev: false
|
||||
|
||||
/ts-node/10.1.0_typescript@4.3.5:
|
||||
resolution: {integrity: sha512-6szn3+J9WyG2hE+5W8e0ruZrzyk1uFLYye6IGMBadnOzDh8aP7t8CbFpsfCiEx2+wMixAhjFt7lOZC4+l+WbEA==}
|
||||
engines: {node: '>=12.0.0'}
|
||||
@ -7918,6 +7953,27 @@ packages:
|
||||
- typescript
|
||||
dev: false
|
||||
|
||||
file:projects/model-all.tgz_6c259fadfeb3a4b20890aefe87070b8b:
|
||||
resolution: {integrity: sha512-LvpfR+r7PaQCz/9Hyd3fpNON/ngE+8A78/LML7s2Z56598J9kwI/hvsVEemfBcOrktgix2QTLOWTzNKb8mdb1g==, tarball: file:projects/model-all.tgz}
|
||||
id: file:projects/model-all.tgz
|
||||
name: '@rush-temp/model-all'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
'@types/node': 16.4.13
|
||||
'@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea
|
||||
eslint: 7.32.0
|
||||
eslint-plugin-import: 2.23.4_eslint@7.32.0
|
||||
eslint-plugin-node: 11.1.0_eslint@7.32.0
|
||||
eslint-plugin-promise: 4.3.1
|
||||
ts-node: 10.1.0_dea0625f6d31b223e93dc3dc354b8b43
|
||||
transitivePeerDependencies:
|
||||
- '@swc/core'
|
||||
- '@swc/wasm'
|
||||
- '@typescript-eslint/parser'
|
||||
- supports-color
|
||||
- typescript
|
||||
dev: false
|
||||
|
||||
file:projects/model-core.tgz_6c259fadfeb3a4b20890aefe87070b8b:
|
||||
resolution: {integrity: sha512-b+T4XuPdhuCukXIUMmumuia+6h/NiXZYDFrCExC3qE30DcDgfvY8ugkOZwhsKblA2USCZlgex4HTN5w7KUrl2Q==, tarball: file:projects/model-core.tgz}
|
||||
id: file:projects/model-core.tgz
|
||||
@ -7937,7 +7993,7 @@ packages:
|
||||
dev: false
|
||||
|
||||
file:projects/model-rig.tgz_6ab28797e7a22071465f7d680ae81ae5:
|
||||
resolution: {integrity: sha512-pKxEgd9zwHZfmAtKBZp73PsuEZgSUNJIlgXofWwCa90AqkGi07hGb5w+ihP8Qy8bR7moLAtLvJi6Fqs5rIOYGg==, tarball: file:projects/model-rig.tgz}
|
||||
resolution: {integrity: sha512-dt7CdKGQAqmtNHpwxDSBqYX/VMBMzPwx1q0bw4EEcdg+GMnClODo7CkYL6VEB++jAFt71USv6AJicS6cdnF8Pg==, tarball: file:projects/model-rig.tgz}
|
||||
id: file:projects/model-rig.tgz
|
||||
name: '@rush-temp/model-rig'
|
||||
version: 0.0.0
|
||||
@ -7949,14 +8005,11 @@ packages:
|
||||
typescript: 4.3.5
|
||||
transitivePeerDependencies:
|
||||
- '@typescript-eslint/eslint-plugin'
|
||||
- bufferutil
|
||||
- canvas
|
||||
- eslint
|
||||
- eslint-plugin-import
|
||||
- eslint-plugin-node
|
||||
- eslint-plugin-promise
|
||||
- supports-color
|
||||
- utf-8-validate
|
||||
dev: false
|
||||
|
||||
file:projects/model.tgz_6c259fadfeb3a4b20890aefe87070b8b:
|
||||
@ -8109,7 +8162,7 @@ packages:
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
'@types/heft-jest': 1.0.2
|
||||
'@types/node': 16.4.10
|
||||
'@types/node': 16.4.13
|
||||
'@types/ws': 7.4.7
|
||||
'@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea
|
||||
eslint: 7.32.0
|
||||
@ -8129,7 +8182,7 @@ packages:
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
'@types/heft-jest': 1.0.2
|
||||
'@types/node': 16.4.10
|
||||
'@types/node': 16.4.13
|
||||
'@types/ws': 7.4.7
|
||||
'@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea
|
||||
eslint: 7.32.0
|
||||
@ -8153,7 +8206,7 @@ packages:
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
'@types/heft-jest': 1.0.2
|
||||
'@types/node': 16.4.10
|
||||
'@types/node': 16.4.13
|
||||
'@types/ws': 7.4.7
|
||||
'@typescript-eslint/eslint-plugin': 4.28.5_a8e83fcad666e1ba86be4b2e27a20aea
|
||||
eslint: 7.32.0
|
||||
|
File diff suppressed because it is too large
Load Diff
6
models/all/.eslintrc.js
Normal file
6
models/all/.eslintrc.js
Normal file
@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
extends: ['./node_modules/@anticrm/model-rig/profiles/default/config/eslint.config.json'],
|
||||
parserOptions: {
|
||||
project: './tsconfig.json'
|
||||
}
|
||||
}
|
4
models/all/.npmignore
Normal file
4
models/all/.npmignore
Normal file
@ -0,0 +1,4 @@
|
||||
*
|
||||
!/lib/**
|
||||
!CHANGELOG.md
|
||||
/lib/**/__tests__/
|
18
models/all/config/rig.json
Normal file
18
models/all/config/rig.json
Normal file
@ -0,0 +1,18 @@
|
||||
// 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": "@anticrm/model-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"
|
||||
}
|
26
models/all/package.json
Normal file
26
models/all/package.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "@anticrm/model-all",
|
||||
"version": "0.6.0",
|
||||
"main": "lib/index.js",
|
||||
"author": "Anticrm Platform Contributors",
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"lint:fix": "eslint --fix src",
|
||||
"genmodel": "ts-node src/__genmodel.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@anticrm/model-rig":"~0.6.0",
|
||||
"@typescript-eslint/eslint-plugin":"4",
|
||||
"eslint-plugin-import":"2",
|
||||
"eslint-plugin-promise":"4",
|
||||
"eslint-plugin-node":"11",
|
||||
"eslint":"^7.32.0",
|
||||
"@types/node":"^16.4.13",
|
||||
"ts-node":"^10.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@anticrm/model": "~0.6.0",
|
||||
"@anticrm/model-core": "~0.6.0"
|
||||
}
|
||||
}
|
20
models/all/src/__genmodel.ts
Normal file
20
models/all/src/__genmodel.ts
Normal file
@ -0,0 +1,20 @@
|
||||
//
|
||||
// Copyright © 2020 Anticrm Platform Contributors.
|
||||
//
|
||||
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License. You may
|
||||
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
//
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import builder from '.'
|
||||
import { writeFileSync } from 'fs'
|
||||
|
||||
const content = JSON.stringify(builder.getTxes(), undefined, 2)
|
||||
writeFileSync('../../dev/storage/src/model.tx.json', content)
|
40
models/all/src/index.ts
Normal file
40
models/all/src/index.ts
Normal file
@ -0,0 +1,40 @@
|
||||
//
|
||||
// Copyright © 2020 Anticrm Platform Contributors.
|
||||
//
|
||||
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License. You may
|
||||
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
//
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import { Builder } from '@anticrm/model'
|
||||
|
||||
import { createModel as coreModel } from '@anticrm/model-core'
|
||||
// import { createModel as workbenchModel } from '@anticrm/model-workbench'
|
||||
// import { createModel as contactModel } from '@anticrm/model-contact'
|
||||
// import { createModel as chunterModel } from '@anticrm/model-chunter'
|
||||
// import { createModel as recruitModel } from '@anticrm/model-recruit'
|
||||
// import { createModel as viewModel } from '@anticrm/model-view'
|
||||
// import { createModel as taskModel } from '@anticrm/model-task'
|
||||
|
||||
// import { createDemo } from '@anticrm/model-demo'
|
||||
|
||||
const builder = new Builder()
|
||||
|
||||
coreModel(builder)
|
||||
// viewModel(builder)
|
||||
// workbenchModel(builder)
|
||||
// contactModel(builder)
|
||||
// chunterModel(builder)
|
||||
// taskModel(builder)
|
||||
// recruitModel(builder)
|
||||
|
||||
// createDemo(builder)
|
||||
|
||||
export default builder
|
9
models/all/tsconfig.json
Normal file
9
models/all/tsconfig.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "./node_modules/@anticrm/model-rig/profiles/default/tsconfig.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"rootDir": "./src",
|
||||
"outDir": "./lib",
|
||||
"types": ["node"]
|
||||
}
|
||||
}
|
@ -4,6 +4,5 @@
|
||||
"compilerOptions": {
|
||||
"rootDir": "./src",
|
||||
"outDir": "./lib",
|
||||
"experimentalDecorators": true,
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user