• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

dart-maven-plugin/dart-maven-plugin: Maven plugin for building google dart proje ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

dart-maven-plugin/dart-maven-plugin

开源软件地址(OpenSource Url):

https://github.com/dart-maven-plugin/dart-maven-plugin

开源编程语言(OpenSource Language):

Java 57.1%

开源软件介绍(OpenSource Introduction):

#Maven Dart Plugin

Bitdeli Badge

The Dart Maven Plugin provides integration for Google Dart into a maven build process. It looks for folders with dart package layout

#Changenotes

###3.0.0

  • dart:dart2js Has now the possibility to span mutliple compiler sessions in parallel with threadCount
  • dart:pub Is now full flexible by providing pubCommand e.g. get and a list of pubOptions e.g. --no-offline

#Setup

The plugin needs a dart-sdk installed on the system it should be executed. By default it will look for the environment variable DART_SDK. So please set this variable. It is possible to overwrite this in the plugin configuration section.

#Artifact coordinates

The plugin is released as com.github.dzwicker.dart:dart-maven-plugin

#Requirements

The Dart Maven Plugin needs maven 3.0+ and JDK 7.

#Goals Overview

The Dart Plugin has one goal (besides the help goal). It is already bound to his proper phase within the Maven Lifecycle (compile) and is therefore, automatically executed during his respective phase.

  • dart:dart Goal to invoke the dart scripts.
  • dart:pub Goal to invoke pub the dart package manager.
  • dart:dart2js Goal to compile dart files to javascript.
  • dart:dwc Goal to invoke the dart web compiler.
  • dart:test Goal to invoke the dart scripts.
  • dart:help Display help information on dart-maven-plugin. Call mvn dart:help -Ddetail=true -Dgoal= to display parameter details.

#Usage

The dart2js goal uses the dart2js compiler from the dart project to compile any dart file to javascript (js file) and a map.js file. It will download the latest dart SDK into the dartOutputDirectory [${project.build.directory}/dependency/dart] for the used OS and architecture. By default it will look for dart files in src/main/dart and will place the javascript files under ${project.build.directory}/dart.

More configuration details:

Please use mvn dart:help for more information.

#Example

An example can be found in the dart-maven-plugin-example folder inside the git repository.

#Maven repository

The Dart Maven Plugin is deployed to the central repository.

Authors and Contributors

Daniel Zwicker founded the project on GitHub.

Committer




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap