-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
Last published version is 8 months old, and tiny-lr didn't really changed since its first implementation.
I'm thinking about a bunch of ideas and features, while keeping it tiny and focused. It should stay small (maybe try to make it even smaller) and suitable to use as a library.
- ES6 rewrite
- update src and tests
- CLI - tinylr-cli
- Would expose a command (currently in https://github.com/mklabs/make-livereload) to spawn a dev server with micro-list and tiny-lr.
- Since its separate from tiny-lr lib, we could introduce glob watch etc. probably using gaze.
- If no glob patterns, just default to
**/*.{html,css}. Handle .gitignore, ignore node_modules by default. - single js entry point: try to build the require tree with module-deps.
- A flag to allow additional commands to run on file change, like
-c 'npm test' -c 'gulp lint'
- Dashboard
- Would be a separate package to install along tiny-lr. If installed, would change the default
http://locahost:<lrport>default JSON response. - A simple dashboard listing connected devices
- Maybe some way to configure tiny-lr options
- Would be a separate package to install along tiny-lr. If installed, would change the default
- Plugins
- A "tiny-lr" field in package.json would allow adding plugins / middlewares to tiny-lr. A bit like browserify transforms.
- Client
- Fork livereload-js, port it to es6 / babel
- web socket polyfill. I'd like to be able to use livereload for browsers that don't natively support web sockets. Instead of switching to socket.io which is a bit heavy on the dependency tree and install time.
- Hot reload for JS
- livereactload
- Implement hot reloading and integrate into https://github.com/milankinen/livereactload
- maybe a separate plugin
- would automatically watch js / css that have been requested from a client (server sees a request with
*.{js,css}).
- Options
- autoinject - livereactload kinda does this automatically. this is a feature that would simplify the process of adding the client side livereload script and allow more flexibility in how the connection is handled (as the default livereload dbrowser extension doesn't allow you to change the port and hostname)
- ...
cc @shama @elwayman02 What do you guys think ? Worth the effort ? Any other ideas or features you'd like to see implemented ?
NicolasRitouet and hemanth
Metadata
Metadata
Assignees
Labels
No labels