Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Dec 17, 2013
0 parents commit 6f1d8ee
Show file tree
Hide file tree
Showing 20 changed files with 10,143 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
.DS_Store
Gemfile.lock
10 changes: 10 additions & 0 deletions Gemfile
@@ -0,0 +1,10 @@
source 'https://rubygems.org'

gem 'opal', :github => 'opal/opal'
gem 'opal-jquery', :github => 'opal/opal-jquery'

gem "middleman"
gem "middleman-sprockets"
gem "middleman-gh-pages"

gem 'haml'
15 changes: 15 additions & 0 deletions README.md
@@ -0,0 +1,15 @@
# Opal Playground

**Very alpha - only just works**

Install dependencies:

```
bundle install
```

Run middleman server:

```
bundle exec middleman server
```
4 changes: 4 additions & 0 deletions Rakefile
@@ -0,0 +1,4 @@
require 'bundler'
Bundler.require

require 'middleman-gh-pages'
23 changes: 23 additions & 0 deletions config.rb
@@ -0,0 +1,23 @@
require 'bundler'
Bundler.require

activate :sprockets

activate :directory_indexes

set :css_dir, 'stylesheets'

set :js_dir, 'javascripts'

set :images_dir, 'images'

after_configuration do
Opal.paths.each do |p|
sprockets.append_path p
end
end

configure :build do
activate :minify_css
activate :minify_javascript
end
6 changes: 6 additions & 0 deletions config.ru
@@ -0,0 +1,6 @@
require 'bundler'
Bundler.require

require 'middleman/rack'

run Middleman.server
26 changes: 26 additions & 0 deletions source/index.html.haml
@@ -0,0 +1,26 @@
!!!
%html
%head
= stylesheet_link_tag 'application'
= javascript_include_tag 'application'

%body
%nav.navbar.navbar-default
.navbar-header
%a.navbar-brand Opal Playground
.container
.collapse.navbar-collapse
%ul.nav.navbar-nav
%li
%button.btn.btn-primary#run-code
Run Code (Cmd+Enter)

.row
.col-md-6
.top-pane#html_pane
.bottom-pane#ruby_pane

.col-md-6
.top-pane#css_pane
.bottom-pane#result_pane
%iframe#result-frame(frameborder="0")

0 comments on commit 6f1d8ee

Please sign in to comment.