el

electron-livereload

electron live reload

Showing:

Popularity

Downloads/wk

12

GitHub Stars

1

Maintenance

Last Commit

6yrs ago

Contributors

2

Package

Dependencies

1

Size (min+gzip)

0.3KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

electron-livereload

electron main.js

app     = require 'app'
window  = require 'browser-window'

livereload = require 'electron-livereload'

app.on 'ready', ->
  win = new window
    title: 'My App'
    'min-width': 520
    'min-height': 520
    frame: false
    resizable: true
    icon: 'assets/images/icon.png'
    transparent: true
    center: true

  win.loadUrl 'file://' + path.join __dirname, 'index.html'
  
  livereload.client win

grunt example

livereload = require 'electron-livereload'

electron = livereload.server()

module.exports = (grunt) ->

  grunt.initConfig

    watch: 
      options: 
        nospawn: true # !IMPORTANT!
      client: 
        files: ['src/client/**/*.coffee'], tasks: ['coffee', 'reload-electron']
      server: 
        files: ['src/server/**/*.coffee'], tasks: ['coffee', 'restart-electron']
    
    grunt.registerTask 'start', (env) ->
      electron.start()
      grunt.task.run 'watch'
      
    grunt.registerTask 'restart-electron', ->
      electron.restart()
    
    grunt.registerTask 'reload-electron', ->
      electron.reload()

License: ISC

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100