jaguar_hotreload 0.2.1

  • Readme
  • Changelog
  • Example
  • Installing
  • --

jaguar_hotreload #

Hot reloader for Dart and Jaguar

Example #

main() async {
  final reloader = new HotReloader();
  reloader.addPath('.');
  await reloader.go();

  // TODO your code here!
}

Changelog #

0.0.1 #

  • Initial version, created by Stagehand

example/jaguar_hotreload_example.dart

// Copyright (c) 2017, teja. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'dart:async';
import 'package:jaguar_hotreload/jaguar_hotreload.dart';

int count = 0;

main() async {
  final reloader = new HotReloader();
  reloader.addPath('.');
  await reloader.go();

  new Timer.periodic(new Duration(seconds: 1), (_) {
    print(count++);
  });
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  jaguar_hotreload: ^0.2.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:jaguar_hotreload/jaguar_hotreload.dart';
  
Awaiting analysis to complete.