Bonita portal 源码编译(未完成)

Posted 韩严重的博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Bonita portal 源码编译(未完成)相关的知识,希望对你有一定的参考价值。

首先下载源代码

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:*

> [email protected] dev:serve E:\JzSoft\BPM\OfficalSource\bonita-portal-js
> grunt serve


> [email protected] 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! [email protected] dev:serve: `grunt serve`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the [email protected] 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 源码编译(未完成)的主要内容,如果未能解决你的问题,请参考以下文章

Spring4源码编译完成后导入eclipse报错求助

Java代码编译和执行的整个过程

使用nmake编译Gdal源代码(Win10+VS2022)

Java代码编译和执行的整个过程

portal for arcgis 10.4的安装和配置及遇到的问题

cPanel:Django Admin Portal 未加载静态/CSS 文件