Sha256: 2bafb211db414ea3ed18e85d1ae6d3999c1ad9670934ea706df4ecea84dc52ac

Contents?: true

Size: 723 Bytes

Versions: 1

Compression:

Stored size: 723 Bytes

Contents

CodeSync is a utility which live reloads asset pipeline assets in their running browser sessions, and an
in-browser IDE which allows you to edit your pre-compiled assets (coffeescript, sass, etc) in the browser
and save them to disk.

### Using with Rails
```
# config/initializers/code_sync.rb
if Rails.env.development?
  CodeSync::Manager.start(forked: true, sprockets: Rails.application.assets )
end
```

```ruby
# Gemfile
gem 'code_sync', git: "git@github.com:datapimp/code_sync.git"
```

```coffeescript
# asset manifest
#= require 'code_sync'
#= require_self

window.codeSyncClient = new CodeSync.Client()
```

Now when you change assets in the asset pipeline, they will be applied to the browser without refreshing.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
code_sync-0.6.7 readme.md