Created
February 12, 2015 23:21
-
-
Save mtsmfm/5896c8cd5fc4474af0f0 to your computer and use it in GitHub Desktop.
projections.json (Rails + flux)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "app/assets/javascripts/components/*.js.cjsx": { | |
| "command": "jcomponent", | |
| "template": "@{camelcase|capitalize|colons} = React.createClass\n render: ->" | |
| }, | |
| "app/assets/javascripts/actions/*.js.coffee": { | |
| "command": "jaction", | |
| "template": "class @{camelcase|capitalize|colons}" | |
| }, | |
| "app/assets/javascripts/constants/*.js.coffee": { | |
| "command": "jconstant", | |
| "template": "class @{camelcase|capitalize|colons}" | |
| }, | |
| "app/assets/javascripts/dispatcher/*Dispatcher.js.coffee": { | |
| "command": "jdispatcher", | |
| "template": "@{camelcase|capitalize|colons}Dispatcher = new Flux.Dispatcher" | |
| }, | |
| "app/assets/javascripts/stores/*.js.coffee": { | |
| "command": "jstore", | |
| "template": "class {camelcase|capitalize|colons}\nclass {camelcase|capitalize|colons}Store extends EventEmitter\n CHANGE_EVENT: 'change'\n@{camelcase|capitalize|colons}Store = new {camelcase|capitalize|colons}Store" | |
| }, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment