models/loader.ls
loads all files under models dir into app.Models namespace
models/validators/loader.ls
loads all files under validators dir into app.Model.Validator namespace
routes/validators/loader.ls
<!-- Sets initial viewport load and disables zooming --> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"> | |
<!-- Makes your prototype chrome-less once bookmarked to your phone's home screen --> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black"> |
/* | |
ratchet/ | |
├── css/ | |
│ ├── ratchet.css | |
│ ├── ratchet.min.css | |
│ ├── ratchet-theme-android.css | |
│ ├── ratchet-theme-android.min.css | |
│ ├── ratchet-theme-ios.css | |
│ ├── ratchet-theme-ios.min.css | |
├── js/ |
Idea for a small *optimize* util to speedup project creation time and keep app footprint low | |
var emberDevDeps = ['body-parser', 'broccoli-asset-rev', | |
'broccoli-ember-hbs-template-compiler', 'ember-cli-ember-data', | |
'ember-cli-ic-ajax', 'ember-cli-ic-ajax', | |
'ember-cli-inject-live-reload', 'ember-cli-qunit express glob' | |
]; | |
$ optimize link --all |
{ | |
"name": "emberfam", | |
"dependencies": { | |
"handlebars": "~2.0.0", | |
"jquery": "^2.1.1", | |
"qunit": "~1.15.0", | |
"ember-qunit": "~0.1.7", | |
"ember": "1.7.0", | |
"ember-data": "1.0.0-beta.10", | |
"ember-resolver": "stefanpenner/ember-jj-abrams-resolver#master", |
I always end up having a lot of projects and it quickly becomes a "bit of a mess" unless you follow some very strict conventions. Would be nice to have a tool to help lift that burden IMO. | |
Wouldn't even have to be specifically linked to ember projects, but just node based projects in general that follow the app/addon convention. | |
How would you structure your projects as they scale to a sizable number > 10 projects and > 10 addons of various types?? | |
https://github.com/stefanpenner/ember-cli/issues/1822 | |
Some basic design ideas follows ... |
/* FireBase Sync Manager */ | |
var FirebaseSyncManager = { | |
getSynchronizedArray: function(firebaseRef) { | |
var list = []; | |
syncChanges(list, firebaseRef); | |
wrapLocalCrudOps(list, firebaseRef); | |
return list; | |
}, | |
syncChanges: function(list, ref) { |
/* ======================================================================== | |
* Ratchet: push.js v2.0.2 | |
* http://goratchet.com/components#push | |
* ======================================================================== | |
* inspired by @defunkt's jquery.pjax.js | |
* Copyright 2014 Connor Sears | |
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE) | |
* ======================================================================== */ | |
/* |
crud.Delete = new Class(RacerSync, | |
initialize: (@context) -> | |
@callSuper! | |
@getter = new Models.Get @context | |
extend: | |
create: (collection, ids) -> | |
new @ collection: collection, ids: ids | |
# validation not needed on delete! |
models/loader.ls
loads all files under models dir into app.Models namespace
models/validators/loader.ls
loads all files under validators dir into app.Model.Validator namespace
routes/validators/loader.ls
# namespaces.js | |
# Contains top level app namespaces | |
exports.do = | |
Models: {} | |
Controllers: {} | |
new-ns: (ns) -> | |
# split on "." and add recursively to self | |
var nsParts = namespace.split("."), |