Commit Graph

4044 Commits

Author SHA1 Message Date
David Greenspan
c3118bbcc5 jquery -> v1.10.3-pre 2013-07-05 15:40:01 -07:00
David Greenspan
733fb08e1c make livedata_connection parse in IE 8 2013-07-05 15:39:44 -07:00
David Greenspan
bec3e5e4a5 designing DOM building 2013-07-04 17:52:59 -07:00
David Greenspan
0d39d0a18b nice clean Component tree 2013-07-04 16:54:53 -07:00
David Greenspan
98012974b1 components have guids 2013-07-04 15:35:00 -07:00
David Greenspan
0052cb9670 rewrite of Components base 2013-07-03 20:31:06 -07:00
David Greenspan
9d79d39124 port test driver Templates to new syntax
comment out events for now

need #each over an array to work
2013-07-02 12:40:26 -07:00
David Greenspan
7bfa8b9c88 steps toward test driver working 2013-07-01 19:54:09 -07:00
David Greenspan
21ed1bdbe0 Merge branch 'linker' into shark 2013-07-01 18:54:51 -07:00
David Greenspan
79befd4df9 Merge branch 'devel' into linker 2013-07-01 18:54:27 -07:00
David Greenspan
76ab959951 test-in-browser: don't use #if in attributes
don't know why this even works atm.

spacebars may add the ternary operator
2013-07-01 18:49:40 -07:00
David Greenspan
55e9e7e441 @emit element annotations cause event dispatch 2013-07-01 17:53:24 -07:00
David Greenspan
0263ca7299 empty string still counts as arg being present 2013-07-01 15:37:41 -07:00
David Greenspan
42bc63dc91 get rid of EmptyComponent
not really empty since now Component renders its content
by default
2013-07-01 15:33:46 -07:00
David Greenspan
317fc8abee example stuff from demo 2013-07-01 15:31:44 -07:00
David Glasser
841d24a93e Merge branch 'linker-raw-js' into linker.
Reimplements "client/compatibility" files for the linker branch.

In a package, access this with the {bare: true} option to api.add_files. In a
package, this elevates file-level vars from "file-local" to "package-local" (not
global!)
2013-07-01 13:03:35 -07:00
David Glasser
50392a5a17 Bare is only allowed on the client. 2013-07-01 13:01:34 -07:00
David Glasser
3c4d0a11f3 Test bare. 2013-06-28 16:39:45 -07:00
David Glasser
9293e7164a Implement bare in linker. 2013-06-28 16:32:36 -07:00
David Glasser
b8bb929e79 No-op refactor to internal linker interface. 2013-06-28 16:32:36 -07:00
David Glasser
2b2e60bbad Pass bare through to the linker. 2013-06-28 16:32:36 -07:00
David Glasser
ec34962e6f rename raw -> bare at Avi's suggestion
This matches what CoffeeScript calls the same thing.

For compatibility we'll make raw work too, for now.
2013-06-28 16:32:36 -07:00
David Glasser
698de75b12 Checkpoint: generate raw option 2013-06-28 16:32:36 -07:00
David Glasser
1f2a770117 Display stdout and stderr in a test that had been failing (but mysteriously stopped failing) 2013-06-28 16:32:27 -07:00
Avital Oliver
56359db24d Fix 'meteor logs' against an ssh tunnel 2013-06-28 16:03:09 -07:00
Emily Stark
bd03d52cd0 Merge branch 'assets-docs' into linker 2013-06-28 14:55:59 -07:00
Emily Stark
e6078ba108 Mention that Assets.getText hardcodes utf8 2013-06-28 14:55:47 -07:00
Emily Stark
7046d4cc91 Assets docs 2013-06-28 14:55:47 -07:00
David Greenspan
f1853086ed recognize annotations in Spacebars compiler 2013-06-27 15:23:46 -07:00
David Greenspan
c6a5c89a74 spacebars: further unify error reporting 2013-06-27 14:37:11 -07:00
Avital Oliver
86669dc44c 'meteor logs' now works on localhost w/o ssh tunnel 2013-06-27 11:44:02 -07:00
David Greenspan
8aed126bad {{@ annotations}}, better error messages 2013-06-27 10:44:55 -07:00
Naomi Seyfer
09e468ebc5 Allow you to use GALAXY=localhost:9414 for interacting w/ a galaxy w/o an ssh tunnel 2013-06-27 10:11:57 -07:00
David Glasser
1919705e40 Merge branch 'weak-sauce' into linker
Implements weak dependencies and uses them to fix {{currentUser}}
2013-06-26 12:47:55 -07:00
David Glasser
9130701834 Fix {{currentUser}} and {{loggingIn}} by using weak dependencies. 2013-06-26 12:46:57 -07:00
David Glasser
7e4f720e8e Implement weak dependencies.
A normal dependency of X on Y consists of a "must-use" constraint ("if X is
loaded, Y must be loaded too") and an "ordering" constraint ("if X and Y are
both loaded, Y must be loaded before X").

The previously-existing support for "unordered" dependencies allows you to
create a dependency with "must-use" but not "ordering".  This commit adds "weak"
dependencies, which have "ordering" but not "must-use".

As an example, the accounts-base package wants to define some Handlebars helpers
like {{currentUser}} if the handlebars package is being used, but it's fine to
use accounts-base without handlebars. So it should declare a weak dependency on
handlebars.

A package can tell if another package has already been loaded by checking to see
if `Packages.foo` exists. (So as a result, even slices which export no variables
get a `Packages.foo = {}` line.) Weak dependencies do not import symbols into
your namespace; you must access their symbols through
`Packages.foo.someExportedSymbol`. You don't get to use plugins from your weak
dependency.
2013-06-26 12:34:42 -07:00
David Glasser
e33694874d Test slices now never contain exports.
@export is now an error in test slices.

This is preparation for ensuring that any slice with exports has at least
"Package.foo = {}"; without this commit, both the use and test slice would (with
that change) try to overwrite Package.foo.

Remove the attempt to allow @export in 'use strict' CoffeeScript files:
ECMAScript 'use strict' is fundamentally incompatible with our implementation of
exports, and it was probably a bug that this used to work at all.
2013-06-26 12:26:12 -07:00
David Glasser
11c8fcd341 "meteor rebuild-all" should exit 1 on error 2013-06-26 12:26:11 -07:00
David Glasser
d82bb3a8c1 Remove old "weak" name for unordered dependencies. 2013-06-26 10:43:24 -07:00
David Greenspan
53affec869 generic Components respect "content arg"; bugfix 2013-06-25 16:00:13 -07:00
David Greenspan
edaabfec29 update History.md 2013-06-25 15:24:25 -07:00
David Greenspan
1e854ebb31 Merge branch 'linker' into shark 2013-06-25 15:18:42 -07:00
David Greenspan
a63638266e Merge branch 'devel' into linker 2013-06-25 15:17:27 -07:00
David Greenspan
49e98134fd fix Spark memory leak (#1157) 2013-06-25 15:09:49 -07:00
David Greenspan
f5616f6355 Merge branch 'devel' into linker 2013-06-25 13:45:32 -07:00
David Greenspan
b3b2c26936 body/else become content/elseContent 2013-06-25 13:41:29 -07:00
David Greenspan
ae295659d0 lookup searches up for "data" arg
try `{{> content}}` instead of `body`
2013-06-25 12:13:42 -07:00
David Glasser
f04df9262e * tools/packages.js: change an array to an object, since that's how it's used. 2013-06-25 09:55:23 -07:00
David Glasser
cebf6924bb Lots of missing dependencies, mostly in accounts code. 2013-06-25 09:53:42 -07:00
David Greenspan
62fb1f4bf2 example twiddling 2013-06-25 05:57:58 -07:00