Commit Graph

3941 Commits

Author SHA1 Message Date
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
Avital Oliver
86669dc44c 'meteor logs' now works on localhost w/o ssh tunnel 2013-06-27 11:44:02 -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
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 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
Emily Stark
f6184261e1 Missing dependency in accounts-ui-unstyled 2013-06-22 22:04:48 -07:00
Emily Stark
210f5f8539 Don't exit logs command when we want to keep tunnel open 2013-06-20 11:41:50 -07:00
David Glasser
99f4ab7ebd export d3 symbol in metadata file instead of modifying upstream code 2013-06-20 11:09:35 -07:00
David Glasser
9bce443701 coffeescript: ensure added code goes after 'use strict' 2013-06-20 11:06:33 -07:00
David Glasser
974bc116be Refactor coffeescript export support: move CS-specific parsing
into CS package.
2013-06-20 11:06:33 -07:00
Emily Stark
40078b8bee Fix some missing dependencies/exports 2013-06-20 10:27:21 -07:00
David Glasser
18ce0c63e9 coffeescript munging: If the line contains an assignment, assume it contains no
declarations instead of possibly munging inside some function.
2013-06-20 08:50:35 -07:00
David Glasser
d40ff521ef Support @export in CoffeeScript.
You must declare your @exports using single-line ### comments:

   ### @export x ###
   x = 5

This involves some ugly and not 100% correct low-level source hackery, making
some assumptions about the format that CoffeeScript generates.
2013-06-19 23:14:58 -07:00
David Glasser
a4d9f295fe Upgrade CoffeeScript to 1.6.3.
The change I care about is that single-line ### comments get output as
single-line /**/ comments, which is what linker's @keyword parser is looking
for.
2013-06-19 23:14:58 -07:00
David Greenspan
972e295df6 Don't mutate template AST in evaluate. Fixes #1143 2013-06-19 18:04:20 -07:00
David Glasser
a38f19ad05 Parse @export/etc lines in /*comments*/ too. 2013-06-19 12:33:01 -07:00
Emily Stark
e66ad0a182 Avoid making Asset calls before Meteor is loaded, might need to revisit 2013-06-19 12:22:39 -07:00
Nick Martin
e03ec98359 Merge branch 'test-in-browser-with-finer-deps' into devel 2013-06-18 20:54:56 -07:00
Emily Stark
16b20f4018 Merge branch 'assets-unipackage' into linker 2013-06-18 20:49:51 -07:00
Nick Martin
3e1820d288 use separate templates instead of isolate. 2013-06-18 20:33:55 -07:00
Nick Martin
5b1cf08158 rerender the test if new results come in while the test is expanded. 2013-06-18 20:09:00 -07:00
Emily Stark
164f8921b5 DevBundleFetcher plugin no longer necessary 2013-06-18 18:02:23 -07:00
Emily Stark
7a0c3b7ad8 Include files with no extension handlers as server assets.
Also some miscellaneous test cleanup.
2013-06-18 17:58:06 -07:00
Emily Stark
a97138f04f Don't allow .. in Assets inputs 2013-06-18 17:13:06 -07:00
Emily Stark
3ca046729a Make Assets API usable from unipackage; use it for dev-bundle-fetcher.
This involves saving the source directory (not just the bundle location) for
static assets so that they can be loaded when unipackages are run.
2013-06-18 13:55:28 -07:00
David Glasser
b68483e31b Implement package-level shared variables for CoffeeScript.
CoffeeScript doesn't allow you to assign to global variables using variable
assignment syntax (though you can assign properties to the global object), which
is the way to create package-level shared variables in Meteor. This commit
provides a CoffeeScript-specific to share variables between files in a package
without adding a redundant alternative for JavaScript files: simply assign
properties on the symbol `shared`.
2013-06-18 09:59:42 -07:00
David Glasser
760289a437 More logging color tweaks.
Yellow looks bad on white, and blue looks meh on black. So stop coloring info
lines, stop using yellow, and only use blue for the header part.
2013-06-18 09:51:00 -07:00
David Glasser
ed6adc370a When removing the last NPM dependency, delete the NPM directory too.
Apply this to the current tree, which deletes the unused .npm directory from the
ctl package.

Specifically, this deletes the ".npm/package" or ".npm/plugin/foo" directory. We
don't attempt to also clean up the ".npm/plugin" or ".npm" directory, but a "git
clean -df" will do the trick if you really care.
2013-06-17 23:37:08 -07:00
Nick Martin
11a7d8d07a Comment and reorganize. No functional changes. 2013-06-17 22:58:37 -07:00
Nick Martin
64ab1aadbc Don't let divs cross isolate boundaries. This fixes IE8. 2013-06-17 22:58:37 -07:00
Nick Martin
5953c3796d Use much finer grain dependencies to avoid re-rendering the whole results table all the time.
This makes tests _much_ faster on old browsers where DOM access is slow.
2013-06-17 22:58:36 -07:00
David Glasser
4fe321bba7 Avoid crash if a client program doesn't have static or static-cachable dirs. 2013-06-17 22:48:45 -07:00
David Glasser
7dcb53c4bd Merge branch 'devel' into linker 2013-06-17 18:19:39 -07:00
David Glasser
0bf4594a20 Make new test pass with --production. 2013-06-17 18:12:32 -07:00
David Glasser
2e9aecdf84 Fix 'meteor test-packages --production onepackage'.
We were looking at "argv._" to find package names, where that was the argv that
was parsed at the top level, where we had no idea that "--production" was a
boolean, so it was pased as "--production=onepackage" and "onepackage" was not
included in argv._.
2013-06-17 18:02:38 -07:00