dandelion
A small utility that watchs files for changes and reload a web page.
Last updated 6 years ago by ylian .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dandelion 
SYNC missed versions from official npm registry.

Dandelion icon Dandelion

Dandelion is a small utility that watches files for changes and reload the webview or browser automatically. This is particularly useful when debugging webviews inside native apps.

Installation

Install Dandelion using npm:

$ [sudo] npm install -g dandelion

Usage

First you need to include live-reload.js in your HTML file. You can find live-reload.js in this repository under src/.

<html>
<head>
    <script src="live-reload.js"></script>
</head>
</html>

Then change to your project directory, and run dandelion watch. Now whenever you make a change to any file in the directory, the browser or webview will auto reload.

As a bonus, Dandelion also compiles CoffeeScript files into JavaScript for you.

If you run into port conflicts, remember that Dandelion listens on port 9485 for file changes. At this moment you can't run two instances of Dandelion at the same time.

License

Dandelion is released under the MIT license.

Current Tags

  • 0.1.2                                ...           latest (6 years ago)

4 Versions

  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 3
Dependencies (7)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |