116 Commits

Author SHA1 Message Date
Nick Martin
8e4dede502 Bump to version 0.1.2 2012-01-30 17:25:13 -08:00
Nick Martin
b024390adf Also ignore .git directories. 2012-01-30 16:04:52 -08:00
Geoff Schmidt
c616e4fb8b deploy --tests 2012-01-28 00:09:17 -08:00
Nick Martin
118a217fde Comment on bad side-effect of process.exit. 2012-01-27 23:37:37 -08:00
Geoff Schmidt
18a3905052 make reload DTRT when there are parse errors in package.js 2012-01-27 22:57:07 -08:00
Geoff Schmidt
da9dfc03a6 reloading was broken. fix it. 2012-01-27 22:57:07 -08:00
matt debergalis
5e7daaaff3 New Collection API
The new Collection API separates query handles from result sets.  It
allows template iterators to only redraw changed objects instead of
entire result sets.  This implementation also sets the stage for
minimongo indexes and better invalidation performance.

collection.find() now returns a Collection.Query handle.  To retrieve
results we provide these methods on Collection.Query:

Iterators (encouraged way to access results):

 * query.forEach(function (obj) { ... });
 * results = query.map(function (obj) { ... });

Cursor-based retrieval (iterators are built on fetch):

 * docs = query.fetch(maxlen); // return next [maxlen] (all) docs.
 * doc = query.get(skip);      // return next doc, skipping [skip] (0) docs.

Counter:

 * length = query.count(); // number of results in query.

Live queries (replaces findLive):

 * live_handle = query.observe({added: function (obj, idx) { ... },
                                removed: function (id, idx) { ... },
                                changed: function (obj, idx) { ... },
                                moved: function (obj, old_idx, new_idx) { ... }});

Convenience finders:

 * doc = collection.findOne({color: 'red'});
 * doc = collection.findOne(id_val);

On the client, calling forEach(), map(), fetch(), get(), or findOne()
inside an invalidation context will register a dependency on the entire
query result.  Any change to any objects invalidates the context.

Calling count() inside an invalidation context will register a
dependency that only triggers if objects enter or leave the result set.

Calling observe() does not register a dependency.
2012-01-27 20:59:08 -08:00
Nick Martin
a028b9d9de Merge branch 'refs/heads/tests-cleanup' 2012-01-27 20:51:56 -08:00
Geoff Schmidt
a3a8aee0fe don't get tripped up by package.js in app dirs 2012-01-27 20:49:25 -08:00
Geoff Schmidt
55401609c3 improve messages in package directories 2012-01-27 20:03:59 -08:00
Geoff Schmidt
334885c18e tests run in root packages directory 2012-01-27 20:03:59 -08:00
Geoff Schmidt
aa72772017 do less work when scanning for files to monitor 2012-01-27 20:03:59 -08:00
Geoff Schmidt
31cf1d8ab4 bugfixes in new bundler 2012-01-27 20:03:03 -08:00
Nick Martin
f50d970b0f Disable app test bundles. 2012-01-27 20:03:03 -08:00
Geoff Schmidt
d1d5604976 Refactor bundler; new package API 2012-01-27 20:02:26 -08:00
Nick Martin
5f40891b3b Correctly run as a package when in a package collection directory. 2012-01-27 20:02:25 -08:00
Nick Martin
160acf1d78 Also allow running meteor in top level 'packages' dir. The bundler should take this and include all the tests. 2012-01-27 20:02:25 -08:00
Nick Martin
55cf948a6b Run second (test) server when running an app. Not user friendly yet, but seems functional. 2012-01-27 20:02:25 -08:00
Nick Martin
309ce71da0 Quick hack to run tests in package dir. 2012-01-27 20:02:25 -08:00
Nick Martin
5f08d3cbac Add gitignore. This comes up when we run in packages, not apps. In apps, the initial .gitignore comes from the skel app. 2012-01-27 20:02:25 -08:00
Nick Martin
79d7a7ed51 Allow run to run in either an app dir or a package dir. Bundler still fails on this because there is no .meteor/packages. Also will create a .meteor dir and launch mongo in your package, which is not what you want. 2012-01-27 20:02:24 -08:00
Nick Martin
c635ca97b2 Move bundle_path logic to run, where it needs to be for starting tests. 2012-01-27 20:02:24 -08:00
Nick Martin
2418712f45 Functions to distinguish between app directories and package directories. 2012-01-27 20:02:24 -08:00
Geoff Schmidt
ab7f8a379d enforce 'environments'. comments cleanup 2012-01-27 20:02:24 -08:00
Geoff Schmidt
c44f9c3680 refactor Package/PackageLibrary out to be reusable 2012-01-27 20:02:24 -08:00
Geoff Schmidt
e5eb42e55c Refactor package API/bundler 2012-01-27 20:02:24 -08:00
Nick Martin
4de4bbfd45 Set Content-Type on main page. ServerDensity needs this for some reason. 2012-01-23 23:22:10 -08:00
Nick Martin
e7eb9e6929 Missing var. Thanks, js2-mode! 2012-01-23 22:34:05 -08:00
David Greenspan
80f746633e more IE-friendly planes background in skeleton 2012-01-20 18:26:26 -08:00
Geoff Schmidt
c3a5e2cafc merge rename from master, with fixups. unit tests pass. take two (this should be an actual merge commit) 2012-01-20 15:25:31 -08:00
Geoff Schmidt
a4880a6c3a Better restart-on-changed-file mechanism.
- Knows about ALL code that goes into a bundle (eg package source, even server.js)
- handles little details slightly better, like removed files
- even restarts on 'skybreak add'!
2012-01-20 02:00:08 -08:00
Nick Martin
4e4358e2c0 Bump to version 0.1.1 2012-01-19 23:34:31 -08:00
Nick Martin
ee0da539a5 Bump major vno for new release. 2012-01-19 23:34:16 -08:00
Nick Martin
931ed590cb Bump to version 0.0.44 2012-01-19 22:23:01 -08:00
Nick Martin
7daf9751cc Bump to version 0.0.43 2012-01-19 20:51:03 -08:00
Nick Martin
694e23275f Revert "REVERT LATER use playpen."
This reverts commit e3b59aa2a1.
2012-01-19 19:56:00 -08:00
Geoff Schmidt
dddf76b3a5 complete dependency info in bundle 2012-01-19 17:00:28 -08:00
Nick Martin
459dac9cac Merge branch 'master' into meteor
conflicts hand resolved. deftemplate and liveui reverted to master, will re-do later.

Conflicts:
	admin/generate-dev-bundle.sh
	admin/install-s3.sh
	admin/manifest.json
	app/meteor/deploy.js
	app/meteor/meteor.js
	examples/leaderboard/leaderboard.js
	examples/unfinished/azrael/client/azrael.js
	examples/unfinished/azrael/model.js
	packages/liveui/liveui.js
	packages/templating/deftemplate.js
	packages/templating/html_scanner.js
	tests/minimongo/test.html
2012-01-18 16:14:54 -08:00
Nick Martin
0b3419da79 Bump to version 0.0.42 2012-01-17 22:16:37 -08:00
Nick Martin
5312de215f Actually allow IE6 and 7 like we promised. 2012-01-17 21:10:37 -08:00
Nick Martin
410eab6f94 Remove spurious command line non-alias. 2012-01-17 17:36:26 -08:00
Geoff Schmidt
8570a22671 deploy in debug mode 2012-01-16 19:36:56 -08:00
Nick Martin
231aa7b81d Add backwards compatibility package. Sky = Meteor. 2012-01-10 13:13:26 -08:00
Nick Martin
5a7cf6482a Bump to version 0.0.42 2012-01-06 17:51:28 -08:00
Nick Martin
b7b4ed0920 Revert "REVERT LATER. Do not change S3 bucket name at this point."
This reverts commit eafe8a0ef0.
2012-01-06 15:00:58 -08:00
Nick Martin
e3b59aa2a1 REVERT LATER use playpen. 2012-01-05 22:10:53 -08:00
Nick Martin
9d3d31df6e Rename .skybreak directories. 2012-01-04 21:27:14 -08:00
Nick Martin
8943d6ed6e Rename skybreak files and directories. 2012-01-04 21:24:52 -08:00
Nick Martin
274d64820a perl -pi -e 's/sky_rpc/meteor_rpc/g' app/skybreak/deploy.js 2012-01-04 21:21:27 -08:00
Nick Martin
ad8adcbc90 Include missed .skybreak directories. 2012-01-04 21:19:52 -08:00