1.3.6 • Published 6 years ago

enterprise-portal-fe v1.3.6

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

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

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

如何使用

  1. 安装依赖
npm install -D enterprise-portal-fe
  1. 设置子应用配置

执行命令

node ./node_modules/enterprise-portal-fe/generate-html.js --configPath ./app.config.js

该命令会将app.config.js文件中的配置写进 node_modules/enterprise-portal-fe/index.html 文件。

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

  1. 设置本地服务静态文件目录
app.use('/', express.static(process.cwd() + '/node_modules/enterprise-portal-fe'));
// js、css
app.use('/portal', express.static(process.cwd() + '/node_modules/enterprise-portal-fe'));
// 语言包,将来会不需要
app.use('/i18n', express.static(process.cwd() + '/node_modules/enterprise-portal-fe/i18n'));

何时需要执行第二步

  1. 安装 enterprise-portal-fe
  2. 更改 app.config.js 文件内容后
1.3.6

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.5

6 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago