marionette-generators 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/lib/generators/marionette/app/templates/app/app.js.coffee +1 -0
- data/lib/generators/marionette/app/templates/app/app_router.js.coffee +2 -3
- data/lib/generators/marionette/app/templates/app/layout.js.coffee +1 -4
- data/lib/marionette/generators/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bb25bc244c70a8947732e6bbb7ff7db22871d8e
|
4
|
+
data.tar.gz: 909c829c97620f2aae214b0d1800f051c854a93a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edb2670405ec92fa4af05cd26b52e65a400e162fe5c23138843934ddc1f57b041736a4b284c44ba89299bfaf248f6985e55694e5e62b56c7c5849533ab059572
|
7
|
+
data.tar.gz: 3853159ca4b59d304ee7ecb0ba6cf97e5206b857dad78c8573255f3217e3098eea00e8332d15ee5f2ca6a717cbfb2cf5acd4237bcd828ecfdc56ffc0f529919e
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Marionette::Generators
|
2
2
|
|
3
|
-
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/marionette-generators.svg)](https://badge.fury.io/rb/marionette-generators)
|
4
|
+
|
5
|
+
Marionette Generators provides some Backbone/Marionette generators to build a full Marionette app inside a Rails app.
|
4
6
|
|
5
7
|
It's still in development, so it only provides a starter app for now, and templates are only Slim and Skim.
|
6
8
|
|
@@ -26,7 +28,7 @@ Or install it yourself as:
|
|
26
28
|
|
27
29
|
$ rails g marionette:app NameOfYourApp
|
28
30
|
|
29
|
-
This will install bower-rails, slim-rails and skim gem, and create a `backbone` folder in app/assets/javascripts with all necessary directories and files. It will also create a `templates` folder in app/assets.
|
31
|
+
This will install [bower-rails](https://github.com/rharriso/bower-rails), [slim-rails](https://github.com/slim-template/slim-rails) and [skim](https://github.com/slim-template/slim-rails) gem, and create a `backbone` folder in app/assets/javascripts with all necessary directories and files. It will also create a `templates` folder in app/assets.
|
30
32
|
|
31
33
|
Then you should see a welcome message in your browser.
|
32
34
|
|
@@ -38,7 +40,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
38
40
|
|
39
41
|
## Contributing
|
40
42
|
|
41
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
43
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/franckdelage/marionette-generators. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
42
44
|
|
43
45
|
|
44
46
|
## License
|
@@ -4,11 +4,10 @@ class <%= name.capitalize %>.Routers.AppRouter extends Backbone.Marionette.AppRo
|
|
4
4
|
'': 'index'
|
5
5
|
|
6
6
|
initialize: ->
|
7
|
-
|
8
|
-
@logger.router 'Initialize Backbone router'
|
7
|
+
<%= name.capitalize %>.Logger.router 'Initialize Backbone router'
|
9
8
|
@layoutView = new <%= name.capitalize %>.Views.Layout
|
10
9
|
<%= name.capitalize %>.rootView = @layoutView
|
11
10
|
<%= name.capitalize %>.rootView.render()
|
12
11
|
|
13
12
|
index: ->
|
14
|
-
|
13
|
+
<%= name.capitalize %>.Logger.router 'Call index action'
|
@@ -5,8 +5,5 @@ class <%= name.capitalize %>.Views.Layout extends Backbone.Marionette.LayoutView
|
|
5
5
|
|
6
6
|
# regions:
|
7
7
|
|
8
|
-
initialize: ->
|
9
|
-
@logger = new <%= name.capitalize %>.Utils.Logger
|
10
|
-
|
11
8
|
onRender: ->
|
12
|
-
|
9
|
+
<%= name.capitalize %>.Logger.view 'Rendering main layout view'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marionette-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franck Delage
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|