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 源碼編譯(未完成)