Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/neutrino2211/parcel-plugin-dart

Parcel plugin for [dart](https://dartlang.org)
https://github.com/neutrino2211/parcel-plugin-dart

Last synced: 2 months ago
JSON representation

Parcel plugin for [dart](https://dartlang.org)

Awesome Lists containing this project

README

        

[![CircleCI](https://circleci.com/gh/neutrino2211/parcel-plugin-dart/tree/master.svg?style=svg)](https://circleci.com/gh/neutrino2211/parcel-plugin-dart/tree/master)

# parcel-plugin-dart
Parcel plugin for [dart](https://dartlang.org)

## NOTE
This plugin only works with the [dart-sdk](https://www.dartlang.org/install)
Imports via the `package:` scheme don't work but `dart:` imports work fine

## Installation

```sh
$ npm install parcel-plugin-dart -S
```
## Setup

#### Get `stagehand`
First get `stagehand` by running
```sh
$ pub global activate stagehand
```

#### Init project

First create the project directory

```sh
$ mkdir helloworld && cd helloworld
```
then setup the dependencies with
```sh
$ npm init && npm i parcel-plugin-dart -S
```

finally create the dart [web](https://webdev.dartlang.org) project

```sh
$ stagehand web-simple
```

#### Start development server

```sh
$ parcel serve web/index.html
```