grunt-leaves-dart

0.1.2 • Public • Published

Grunt Leaves dart

A Grunt plugin to to get Dart support in Leaves.

This will not be useful if you are not using Leaves.

In development, this copies the Dart files and reload the browser automatically, so you need a browser that can run Dart (only Dartium for now).

The production mode is in progress. When done, it will compile everything to the dist directory.

Installation

$ npm install --save-dev grunt-leaves-dart

Usage

You need to set the base directory for tmp to tmp/web:

$ leaves config set dir.tmp tmp/web

The directory layout should look like this.

$ tree
.
├── assets
│   ├── css
│   │   └── main.styl
│   ├── favicon.ico
│   ├── img
│   └── js
│       └── app.coffee
├── bower.json
├── dart
│   ├── lib
│   │   ├── alibfile.dart
│   │   └── mypackage
│   ├── pubspec.lock
│   └── web
│       └── main.dart
├── package.json
└── views
    ├── index.jade
    └── layout.jade

Package Sidebar

Install

npm i grunt-leaves-dart

Weekly Downloads

3

Version

0.1.2

License

MIT

Last publish

Collaborators

  • danhper