Giter Site home page Giter Site logo

dart-maven-plugin / dart-maven-plugin Goto Github PK

View Code? Open in Web Editor NEW
43.0 10.0 21.0 658 KB

Maven plugin for building google dart projects

Home Page: http://dart-maven-plugin.github.io/dart-maven-plugin

Dart 11.93% Shell 1.72% Java 57.28% HTML 29.07%

dart-maven-plugin's 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.