tis-cli前端项目快速搭建命令行工具
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
lkh fae5266192 feat: update 4 years ago
..
app feat: add template 4 years ago
template feat: add template 4 years ago
web feat: add template 4 years ago
.gitignore feat: add template 4 years ago
README.md feat: add template 4 years ago
package-lock.json feat: add template 4 years ago
package.json feat: add template 4 years ago

README.md

如何部署在服务器端

一、构建

构建框架 cd web/platform && npm run build

构建主界面 cd web/default_app && npm run build

构建示例(应用+浮窗) cd template/src/app_demo && npm run build cd template/src/widget_demo && npm run build

二、启动(可以用如下serve也可以通过nginx配置)

启动框架 serve web/platform/dist -p 80

启动主界面 serve web/default_app/dist -p 9001 --cors

启动示例应用 serve template/src/app_demo/dist -p 9002 --cors

启动示例浮窗 serve template/src/widget_demo/dist -p 9003 --cors serve template/src/widget_demo/dist -p 9004 --cors serve template/src/widget_demo/dist -p 9005 --cors

三、修改参数

vi web/platform/dist/apps_widgets.json

将里面的所有entry和icon里的localhost换成服务器对外公网地址

四、启动组件(如果要本地开发)

所在路径:tis-design/packages/web/lib 修改配置:web/default_app/config/base_js_config.js

四、启动业务组件(如果要本地开发)

所在路径:tis-component/dist 修改配置:web/default_app/config/default_js_config.js

使用Electron运行

  1. 配置:修改app/main/constant.jsMAIN_WINDOW_URL的值
  2. 启动:在项目根目录执行npm run start:electron