首页 > 其他 > 详细

Bonita portal 源码编译(未完成)

时间:2018-05-06 00:43:14      阅读:471      评论:0      收藏:0      [点我收藏+]

首先下载源代码

https://github.com/bonitasoft/bonita-portal-js

 以下内容为Github 的安装教程包含我安装过程中遇到的问题。并加以修正

Bonita portal js

Part of bonita portal written using AngularJs

Requirements

  • node.js > v6.9.4
  • yarn > v0.27.5
  • maven > 3.3.9
  • phantomjs
  • grunt

Development tasks

 

开始之前先将yarn 设置成淘宝镜像

yarn config set registry http://registry.npm.taobao.org/ 

 

在源代码根目录中执行 yarn install 

然后是需要漫长的等待。。。 


[4/5] Linking dependencies...
[##############################################------------------------------------------------------------] 8100/18653

 

 

卡在这里了。。。

 

yarn install
yarn install v1.6.0
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
$ bower install
bower[66044]: src\node_contextify.cc:631: Assertion `args[1]->IsString()‘ failed.
 1: node::DecodeWrite
 2: node::DecodeWrite
 3: uv_loop_fork
 4: v8::internal::interpreter::BytecodeDecoder::Decode
 5: v8::internal::RegExpImpl::Exec
 6: v8::internal::RegExpImpl::Exec
 7: v8::internal::RegExpImpl::Exec
 8: 000002ABF2604281
error Command failed with exit code 134.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
PS E:\JzSoft\BPM\OfficalSource\bonita-portal-js> yarn start
yarn run v1.6.0
$ npm-run-all --parallel dev:*

> portaljs@0.0.0 dev:serve E:\JzSoft\BPM\OfficalSource\bonita-portal-js
> grunt serve


> portaljs@0.0.0 dev:less E:\JzSoft\BPM\OfficalSource\bonita-portal-js
> watch --wait=1 ‘npm-run-all --parallel build:*‘ main/styles

> Watching main/styles
‘‘npm-run-all‘ 不是内部或外部命令,也不是可运行的程序
或批处理文件。
grunt[66456]: src\node_contextify.cc:631: Assertion `args[1]->IsString()‘ failed.
 1: node::DecodeWrite
 2: node::DecodeWrite
 3: uv_loop_fork
 4: v8::internal::interpreter::BytecodeDecoder::Decode
 5: v8::internal::RegExpImpl::Exec
 6: v8::internal::RegExpImpl::Exec
 7: v8::internal::RegExpImpl::Exec
 8: 00000346D6C84281
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! portaljs@0.0.0 dev:serve: `grunt serve`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the portaljs@0.0.0 dev:serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\hyzx8\AppData\Roaming\npm-cache\_logs\2018-05-05T16_02_45_074Z-debug.log
ERROR: dev:serve: None-Zero Exit(134);
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

  

 

 

 

 

 

 

Launch project in development mode

Before running project in development mode, you need to launch a Bonita backend available on URL http://localhost:8080/ Then launch:

yarn start

Project should be running at URL http://localhost:9000/bonita/portaljs/

Launch unit tests

yarn run test

Launch unit tests in watch mode

yarn run test:watch

Launch end to end tests

yarn run e2e

Launch end to end tests in headless mode

yarn run e2e:headless

Build project

yarn run build

Localization

Localization keys can be extracted from source files to an .pot output file (./target/portal-js.pot). To do so, run the following command

yarn run pot

Maven build

Project can also be built using maven

mvn clean package [-Pe2e]

This will build the project, package it in a zip file and, run end to end test if e2e profile is activated

首先下载源代码

https://github.com/bonitasoft/bonita-portal-js

 

Bonita portal js

Part of bonita portal written using AngularJs

Requirements

  • node.js > v6.9.4
  • yarn > v0.27.5
  • maven > 3.3.9

Development tasks

注意,按照github 教程下一步安装过程中报错

此时需要安装 :phantomjs  http://phantomjs.org/download.html 并将 bin 目录添加到环境变量

Please run yarn install Before launching any of following tasks

这将需要漫长的等待。。。

 

Launch project in development mode

Before running project in development mode, you need to launch a Bonita backend available on URL http://localhost:8080/ Then launch:

yarn start

Project should be running at URL http://localhost:9000/bonita/portaljs/

Launch unit tests

yarn run test

Launch unit tests in watch mode

yarn run test:watch

Launch end to end tests

yarn run e2e

Launch end to end tests in headless mode

yarn run e2e:headless

Build project

yarn run build

Localization

Localization keys can be extracted from source files to an .pot output file (./target/portal-js.pot). To do so, run the following command

yarn run pot

Maven build

Project can also be built using maven

mvn clean package [-Pe2e]

This will build the project, package it in a zip file and, run end to end test if e2e profile is activated

Bonita portal 源码编译(未完成)

原文:https://www.cnblogs.com/Qbit/p/8996850.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!