Cleanup (#20)

* dartfmt
* use new Travis CI Dart tasks
* A couple of lint fixes
* use recommended name for analysis_options
15 files changed
tree: 8d4cafd82f63188f82f5adec4c5ad0bb80bbec0d
  1. .gitignore
  2. .test_config
  3. .travis.yml
  4. CHANGELOG.md
  5. CONTRIBUTING.md
  6. LICENSE
  7. README.md
  8. analysis_options.yaml
  9. codereview.settings
  10. example/
  11. lib/
  12. pubspec.yaml
  13. test/
README.md

shelf_static is a Handler for the Dart shelf package.

Build Status

Example

import 'package:shelf/shelf_io.dart' as io;
import 'package:shelf_static/shelf_static.dart';

void main() {
  var handler = createStaticHandler('example/files', 
      defaultDocument: 'index.html');

  io.serve(handler, 'localhost', 8080);
}