@shuyun-ep-team/loktar-portal

3.17.5 • Public • Published

数云企业版集成子应用开发的Portal项目

为了方便子应用在开发时就与Portal环境进行集成,所以发布此项目作为子应用的入口项目。

如何使用

  1. 安装依赖
npm install -D @shuyun-ep-team/loktar-portal
  1. 设置子应用配置

执行命令

node ./node_modules/@shuyun-ep-team/loktar-portal/generate-html.js --configPath ./app.config.js

该命令会将app.config.js文件中的配置写进 node_modules/@shuyun-ep-team/loktar-portal/index.html 文件。

建议将该命令配置到 package.jsonscripts 里面。

  1. 设置本地服务静态文件目录
app.use('/', express.static(process.cwd() + '/node_modules/@shuyun-ep-team/loktar-portal'));
// js、css
app.use('/implement', express.static(process.cwd() + '/node_modules/@shuyun-ep-team/loktar-portal'));

何时需要执行第二步

  1. 安装 @shuyun-ep-team/loktar-portal
  2. 更改 app.config.js 文件内容后

Readme

Keywords

none

Package Sidebar

Install

npm i @shuyun-ep-team/loktar-portal

Weekly Downloads

1

Version

3.17.5

License

ISC

Unpacked Size

9.71 MB

Total Files

23

Last publish

Collaborators

  • jialong.ye
  • yong.tao
  • wangxinzhuo
  • linweixian
  • markzhang
  • kezhongfa
  • yiranphp
  • bhxing