zoukankan      html  css  js  c++  java
  • 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
    ode_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:JzSoftBPMOfficalSourceonita-portal-js> yarn start
    yarn run v1.6.0
    $ npm-run-all --parallel dev:*
    
    > portaljs@0.0.0 dev:serve E:JzSoftBPMOfficalSourceonita-portal-js
    > grunt serve
    
    
    > portaljs@0.0.0 dev:less E:JzSoftBPMOfficalSourceonita-portal-js
    > watch --wait=1 'npm-run-all --parallel build:*' main/styles
    
    > Watching main/styles
    ''npm-run-all' 不是内部或外部命令,也不是可运行的程序
    或批处理文件。
    grunt[66456]: src
    ode_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:Usershyzx8AppDataRoaming
    pm-cache\_logs2018-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

  • 相关阅读:
    7月15日考试 题解(链表+状压DP+思维题)
    暑假集训日记
    C# .NET 使用 NPOI 生成 .xlsx 格式 Excel
    JavaSE 基础 第42节 局部内部类
    JavaSE 基础 第41节 匿名内部类
    JavaSE 基础 第40节 内部类概述
    JavaSE 基础 第39节 接口的应用
    JavaSE 基础 第38节 接口的实现
    JavaSE 基础 第37节 接口概述
    JavaSE 基础 第36节 抽象类概述与使用
  • 原文地址:https://www.cnblogs.com/Qbit/p/8996850.html
Copyright © 2011-2022 走看看