Skip to content

Commit

Permalink
build: 1.修改文档 2.修改打包脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft committed Oct 24, 2024
1 parent 22ed0cd commit 092cc4f
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 34 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ packages/**/*/node_modules
cache
/backend/koa/node_modules
/backend/java/logs
/backend/java/build
/backend/java/build
/deploy.js
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": false,
"name": "marsview",
"description": "marsview 是一款开源的低代码平台,面向中后台管理系统。支持可视化配置、逻辑编排、事件流交互、数据源配置等。",
"description": "Marsview 是一款开源的低代码平台,面向中后台管理系统。支持可视化配置、逻辑编排、事件流交互、数据源配置等。",
"version": "4.4.6",
"license": "MIT",
"author": {
Expand All @@ -23,12 +23,16 @@
"scripts": {
"preinstall": "npx only-allow pnpm",
"start:editor": "pnpm --filter editor start",
"build:editor": "pnpm --filter editor build",
"build:editor": "rm -rf dist/editor && pnpm --filter editor build",
"deploy:editor": "pnpm build:editor && cross-env PROJECT=editor node ./deploy.js",
"start:admin": "pnpm --filter admin start",
"build:admin": "pnpm --filter admin build",
"build:admin": "rm -rf dist/admin && pnpm --filter admin build",
"deploy:admin": "pnpm build:admin && cross-env PROJECT=admin node ./deploy.js",
"start:docs": "pnpm --filter docs dev",
"build:docs": "pnpm --filter docs build",
"build:docs": "rm -rf dist/docs && pnpm --filter docs build",
"deploy:docs": "pnpm build:docs && cross-env PROJECT=docs node ./deploy.js",
"build": "rm -rf dist && pnpm --filter editor build && pnpm --filter admin build && pnpm --filter docs build",
"deploy": "pnpm build && cross-env PROJECT=all node ./deploy.js",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"release:major": "standard-version --release-as major",
"release:minor": "standard-version --release-as minor",
Expand Down Expand Up @@ -81,8 +85,10 @@
"@types/lodash-es": "^4.17.7",
"@types/react": "latest",
"@types/react-dom": "latest",
"cross-env": "^7.0.3",
"lint-staged": "^10.0.7",
"only-allow": "^1.2.1",
"scp2": "^0.5.0",
"typescript": "latest",
"yorkie": "^2.0.0"
},
Expand Down
6 changes: 5 additions & 1 deletion packages/docs/src/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

## 数据库安装

安装过程省略,请自行百度。
1. 安装过程省略,请自行百度。

2. 创建数据库,名称随意,比如 `marsview`

3. 初始化数据库脚本,执行 `backend/sql` 文件夹下的 `DDL_mars.sql` 脚本

## 后端启动

Expand Down
Loading

0 comments on commit 092cc4f

Please sign in to comment.