Skip to content

Commit

Permalink
fix: fix build error (#1)
Browse files Browse the repository at this point in the history
* fix: fix build error

* fix: fix server dependence
  • Loading branch information
zzcr authored Sep 26, 2023
1 parent 0854e51 commit 3504c5a
Show file tree
Hide file tree
Showing 90 changed files with 643 additions and 494 deletions.
8 changes: 1 addition & 7 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
"packages": [
"src/*",
"src/plugins/packages/*",
"src/settings/packages/*",
"src/theme/packages/*",
"src/toolbars/packages/*"
],
"packages": ["src/**", "packages/**"],
"useNx": false,
"version": "independent"
}
5 changes: 4 additions & 1 deletion mockServer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "koa2-mock",
"version": "1.0.0",
"publishConfig": {
"access": "public"
},
"description": "mock服务",
"author": "opentiny",
"license": "WTFPL",
Expand All @@ -13,7 +16,7 @@
"lint": "eslint --fix ."
},
"dependencies": {
"@opentiny/lowcode-dsl-vue": "0.4.0",
"@opentiny/tiny-engine-dsl-vue": "~1.0.0",
"@seald-io/nedb": "^4.0.2",
"fs-extra": "^11.1.1",
"glob": "^10.3.4",
Expand Down
3 changes: 3 additions & 0 deletions mockServer/src/services/appinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3227,6 +3227,9 @@
"mode": null,
"block_id": 989,
"version": "1.0.0",
"publishConfig": {
"access": "public"
},
"i18n": null,
"created_app": null,
"content_blocks": null
Expand Down
22 changes: 11 additions & 11 deletions mockServer/src/services/schema2code.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/**
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

import { pageService } from '../routes/main-routes'
import appInfo from './appinfo.json'
Expand Down Expand Up @@ -50,7 +50,7 @@ export default class Schema2CodeServcice {
main: defaultMain
})

const { generateCode } = require('@opentiny/lowcode-dsl-vue')
const { generateCode } = require('@opentiny/tiny-engine-dsl-vue')
let code
try {
code = generateCode({
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "@opentiny/tiny-engine",
"version": "1.0.0",
"publishConfig": {
"access": "public"
},
"description": "TinyEngine enables developers to customize low-code platforms, build low-bit platforms online in real time, and support secondary development or integration of low-bit platform capabilities.",
"homepage": "https://opentiny.design/tiny-engine",
"keywords": [
Expand All @@ -21,7 +24,6 @@
"preview": "vite preview",
"lint": "eslint . --ext .js,.vue,.jsx --fix",
"format": "prettier --write **/*{.vue,.js,.ts,.html,.json}",
"auto:publish": "node autoPublish",
"publish:core": "npm publish",
"publish:plugin": "lerna exec npm publish --scope @opentiny/tiny-engine-*",
"version": "lerna exec npm version ${version}",
Expand Down
12 changes: 7 additions & 5 deletions packages/vue-generator/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"name": "@opentiny/lowcode-dsl-vue",
"version": "0.3.29",
"main": "dist/lowcode-dsl-vue.cjs.js",
"name": "@opentiny/tiny-engine-dsl-vue",
"version": "1.0.1",
"publishConfig": {
"access": "public"
},
"main": "dist/tiny-engine-dsl-vue.cjs.js",
"files": [
"dist"
],
Expand All @@ -12,11 +15,10 @@
"publish:npm": "npm publish --verbose"
},
"dependencies": {
"vue": "3.2.33",
"vue": "3.2.45",
"vue-eslint-parser": "8.3.0"
},
"devDependencies": {
"@cloud/eslint-config-cbc": "^1.7.3",
"@rushstack/eslint-patch": "^1.1.1",
"@vue/eslint-config-prettier": "^7.0.0",
"eslint": "^8.12.0",
Expand Down
5 changes: 4 additions & 1 deletion src/canvas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "@opentiny/tiny-engine-canvas",
"version": "1.0.5",
"version": "1.0.0",
"publishConfig": {
"access": "public"
},
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
22 changes: 11 additions & 11 deletions src/canvas/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/**
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

import { defineConfig } from 'vite'
import path from 'path'
Expand Down Expand Up @@ -66,7 +66,7 @@ export default defineConfig({
formats: ['es']
},
rollupOptions: {
external: ['vue', 'vue-i18n', /@opentiny\/lowcode.*/, /@opentiny\/vue.*/]
external: ['vue', 'vue-i18n', /@opentiny\/tiny-engine.*/, /@opentiny\/vue.*/]
},
minify: true
}
Expand Down
3 changes: 3 additions & 0 deletions src/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "@opentiny/tiny-engine-common",
"version": "1.0.0",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "vite build"
},
Expand Down
22 changes: 11 additions & 11 deletions src/common/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/**
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

import { defineConfig } from 'vite'
import path from 'path'
Expand All @@ -35,7 +35,7 @@ export default defineConfig({
output: {
banner: 'import "./style.css"'
},
external: ['vue', 'monaco-editor', /@opentiny\/lowcode.*/, /@opentiny\/vue.*/, /^prettier.*/]
external: ['vue', 'monaco-editor', /@opentiny\/tiny-engine.*/, /@opentiny\/vue.*/, /^prettier.*/]
}
}
})
3 changes: 3 additions & 0 deletions src/controller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "@opentiny/tiny-engine-controller",
"version": "1.0.0",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "vite build"
},
Expand Down
22 changes: 11 additions & 11 deletions src/controller/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/**
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

import { defineConfig } from 'vite'
import path from 'path'
Expand All @@ -29,7 +29,7 @@ export default defineConfig({
formats: ['es']
},
rollupOptions: {
external: ['vue', /@opentiny\/lowcode.*/, /@opentiny\/vue.*/]
external: ['vue', /@opentiny\/tiny-engine.*/, /@opentiny\/vue.*/]
}
}
})
3 changes: 3 additions & 0 deletions src/http/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "@opentiny/tiny-engine-http",
"version": "1.0.0",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "vite build"
},
Expand Down
22 changes: 11 additions & 11 deletions src/http/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/**
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

import { defineConfig } from 'vite'
import path from 'path'
Expand All @@ -32,7 +32,7 @@ export default defineConfig({
output: {
banner: 'import "./style.css"'
},
external: ['vue', /@opentiny\/lowcode.*/, /@opentiny\/vue.*/]
external: ['vue', /@opentiny\/tiny-engine.*/, /@opentiny\/vue.*/]
}
}
})
3 changes: 3 additions & 0 deletions src/i18n/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "@opentiny/tiny-engine-i18n-host",
"version": "1.0.0",
"publishConfig": {
"access": "public"
},
"description": "webcomponent vue i18n host",
"author": "tinybuilder",
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion src/plugins/packages/block/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "@opentiny/tiny-engine-plugin-block",
"version": "1.0.0",
"version": "1.0.1",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "vite build"
},
Expand Down
22 changes: 11 additions & 11 deletions src/plugins/packages/block/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/**
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

import { defineConfig } from 'vite'
import path from 'path'
Expand All @@ -31,7 +31,7 @@ export default defineConfig({
output: {
banner: 'import "./style.css"'
},
external: ['vue', /@opentiny\/lowcode.*/, /@opentiny\/vue.*/]
external: ['vue', /@opentiny\/tiny-engine.*/, /@opentiny\/vue.*/]
}
}
})
5 changes: 4 additions & 1 deletion src/plugins/packages/bridge/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "@opentiny/tiny-engine-plugin-bridge",
"version": "1.0.0",
"version": "1.0.1",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "vite build"
},
Expand Down
22 changes: 11 additions & 11 deletions src/plugins/packages/bridge/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/**
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

import { defineConfig } from 'vite'
import path from 'path'
Expand All @@ -31,7 +31,7 @@ export default defineConfig({
output: {
banner: 'import "./style.css"'
},
external: ['vue', /@opentiny\/lowcode.*/, /@opentiny\/vue.*/]
external: ['vue', /@opentiny\/tiny-engine.*/, /@opentiny\/vue.*/]
}
}
})
Loading

0 comments on commit 3504c5a

Please sign in to comment.