提交 f0e00a5d 编写于 作者: chitanda's avatar chitanda

feat: 基础结构

上级 b44bc2b9
......@@ -15,6 +15,6 @@
temp-pub
./src/*
out
dist
lib
es
\ No newline at end of file
......@@ -11,13 +11,14 @@
}
},
"files": [
"dist",
"es",
"lib",
"README.md"
],
"scripts": {
"dev": "tsc --watch",
"build": "unbuild",
"build": "unbuild && rollup -c",
"pub": "ibizlab pub -m ../../trainsys-core/src/main/resources/model/cn/ibizlab/trainsys -t ./template -o ./src --app Web --clean"
},
"author": "",
......@@ -29,7 +30,10 @@
"devDependencies": {
"@ibizlab/cli": "^0.1.57",
"@types/fs-extra": "^11.0.1",
"esbuild": "^0.17.18",
"fs-extra": "^11.1.1",
"rollup": "^3.21.0",
"rollup-plugin-esbuild": "^5.0.0",
"ts-node": "^10.9.1",
"unbuild": "^1.2.1"
}
......
......@@ -15,9 +15,18 @@ devDependencies:
'@types/fs-extra':
specifier: ^11.0.1
version: 11.0.1
esbuild:
specifier: ^0.17.18
version: 0.17.18
fs-extra:
specifier: ^11.1.1
version: 11.1.1
rollup:
specifier: ^3.21.0
version: 3.21.0
rollup-plugin-esbuild:
specifier: ^5.0.0
version: 5.0.0(esbuild@0.17.18)(rollup@3.21.0)
ts-node:
specifier: ^10.9.1
version: 10.9.1(@types/node@18.16.1)(typescript@5.0.4)
......@@ -969,6 +978,10 @@ packages:
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
dev: true
/es-module-lexer@1.2.1:
resolution: {integrity: sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==}
dev: true
/esbuild@0.17.18:
resolution: {integrity: sha512-z1lix43jBs6UKjcZVKOw2xx69ffE2aG0PygLL5qJ9OS/gy0Ewd1gW/PUQIOIQGXBHWNywSc0floSKoMFF8aK2w==}
engines: {node: '>=12'}
......@@ -1260,6 +1273,11 @@ packages:
hasBin: true
dev: true
/joycon@3.1.1:
resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==}
engines: {node: '>=10'}
dev: true
/js-tokens@4.0.0:
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
dev: true
......@@ -1558,6 +1576,24 @@ packages:
'@babel/code-frame': 7.21.4
dev: true
/rollup-plugin-esbuild@5.0.0(esbuild@0.17.18)(rollup@3.21.0):
resolution: {integrity: sha512-1cRIOHAPh8WQgdQQyyvFdeOdxuiyk+zB5zJ5+YOwrZP4cJ0MT3Fs48pQxrZeyZHcn+klFherytILVfE4aYrneg==}
engines: {node: '>=14.18.0', npm: '>=8.0.0'}
peerDependencies:
esbuild: '>=0.10.1'
rollup: ^1.20.0 || ^2.0.0 || ^3.0.0
dependencies:
'@rollup/pluginutils': 5.0.2(rollup@3.21.0)
debug: 4.3.4
es-module-lexer: 1.2.1
esbuild: 0.17.18
joycon: 3.1.1
jsonc-parser: 3.2.0
rollup: 3.21.0
transitivePeerDependencies:
- supports-color
dev: true
/rollup@3.21.0:
resolution: {integrity: sha512-ANPhVcyeHvYdQMUyCbczy33nbLzI7RzrBje4uvNiTDJGIMtlKoOStmympwr9OtS1LZxiDmE2wvxHyVhoLtf1KQ==}
engines: {node: '>=14.18.0', npm: '>=8.0.0'}
......
import esbuild from 'rollup-plugin-esbuild';
export default {
input: 'src/index.ts',
output: {
file: 'dist/index.umd.js',
format: 'umd',
name: 'DefaultViewLayout',
},
plugins: [
esbuild({
tsconfig: 'tsconfig.json',
minify: true,
target: 'es2018',
}),
],
};
\ No newline at end of file
import AppIndexViewLayout from './app-index-view-layout';
import DEGridView from './view-layout-model-repository/view-layout-model-repository-de-grid-view-layout';
/**
* 安装视图默认布局
*
* @author chitanda
* @date 2023-04-28 15:04:37
* @export
* @param {(key: string, model: any) => void} callBack
*/
export function install(callBack: (key: string, model: any) => void): void {
callBack('APPINDEXVIEW_DEFAULT', AppIndexViewLayout);
callBack('DEGridView_DEFAULT', DEGridView);
}
\ No newline at end of file
import AppIndexViewLayout from './app-index-view-layout';
import DEGridView from './view-layout-model-repository/view-layout-model-repository-de-grid-view-layout';
/**
* 安装视图默认布局
*
* @author chitanda
* @date 2023-04-28 15:04:37
* @export
* @param {(key: string, model: any) => void} callBack
*/
export function install(callBack: (key: string, model: any) => void): void {
callBack('APPINDEXVIEW_DEFAULT', AppIndexViewLayout);
callBack('DEGridView_DEFAULT', DEGridView);
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册