Commit Graph

12205 Commits

Author SHA1 Message Date
David Glasser
0011e00a7e rebuild now requires an app 2014-12-04 15:37:52 -08:00
Sashko Stubailo
104636c6a7 Add ability to define custom link for ToC, and add link for spiderable 2014-12-04 12:17:13 -08:00
Chang Joo Park
67d1ec6340 showdown package is moved to markdown package.
[stubailo: some fixes to maintain alphabetical order and update ToC]
2014-12-04 11:59:40 -08:00
David Greenspan
861fe1d502 Fix spacing in error message 2014-12-04 09:21:48 -08:00
Ben Newman
7c7e52f2d2 Merge pull request #3227 from graemian/devel
Prevent "meteor shell" from stomping Underscore.
2014-12-04 10:58:41 -05:00
Graeme Pyle
e63ac7c071 Prevent REPL from stomping global._ (Underscore library)
The return value of last command is stored in global._ if the REPL is set to use the global context. So Underscore is no longer available to Meteor server code as global._

See http://stackoverflow.com/questions/10973968/underscore-doesnt-work-in-coffeescripts-console
2014-12-04 16:23:58 +02:00
Jason O'Gray
cffbc00a62 Fixed Accounts.onLoginFailure link for the API docs. 2014-12-03 15:57:20 -08:00
Roberto Ferro
dc518bf349 Fix typo 2014-12-03 15:57:12 -08:00
Chris Bridgett
691404ed70 Template helper commentCount example was duplicating comment text 2014-12-03 15:22:46 -08:00
Ben Weissmann
7358c61476 Document possibility of repeat calls to a method
On re-connect, clients re-try methods that haven't received a response, which means that methods might be called multiple times. This is important to document so users know to guard against this behavior if a method has dangerous side-effects.

See issue #2407.
2014-12-03 15:13:27 -08:00
David Glasser
c06ee6d07c Fix packages ToC section
Fixes #2937.
2014-12-03 15:08:52 -08:00
David Glasser
07afc3380d Merge branch 'pr/2928' into devel 2014-12-03 15:00:38 -08:00
David Glasser
3e08cdf0b8 update data.js 2014-12-03 15:00:25 -08:00
David Glasser
062fbefa35 clean up formatting 2014-12-03 14:58:54 -08:00
Uri Goldshtein
d7396ffb1e docs: add web.browser and web.cordova as architecture possibilities in package.js 's api.use, api.addFiles and api.export 2014-12-03 14:56:55 -08:00
David Glasser
ff0eda3b0c Merge branch 'pr-2914' into devel 2014-12-03 14:46:41 -08:00
David Glasser
2a2bf8a460 Improve comment and add History note 2014-12-03 14:46:05 -08:00
Matteo De Micheli
931edada9f Do special argument check for NaN values 2014-12-03 14:44:08 -08:00
David Glasser
021e9f767d Don't include line number comments in isopackets
The extra legibility is not as useful for code that is always part of
core as it is for user's packages, and it actually has a notable (25%)
effect on isopacket load time.

Fixes #3218.
2014-12-03 12:38:20 -08:00
David Glasser
14cdfa0e02 Factor out common code for building isopackets 2014-12-03 12:28:45 -08:00
Ben Newman
ff7863d3e2 Start Mongo in parallel with the build.
For freshly created apps, this commit reduces the time required to start
the development server from 4.6s to 2.5s on my machine.

Not calling findMongoAndKillItDead unless Mongo fails to start shaves off
a few hundred milliseconds, too.

Fixes #3010.
2014-12-02 18:21:36 -05:00
David Glasser
a937aa606d Soft refresh, versioned packages only
First half of #3213.
2014-12-01 19:48:06 -08:00
David Glasser
2f90467da0 Optimize constraint solver's catalog interface
We shouldn't ask sqlite for a list of rows and then go back and ask for
each row one by one!

Addresses #3043.
2014-12-01 19:20:28 -08:00
David Glasser
3c1c568530 Add indices for all sqlite queries
Addresses #3043.
2014-12-01 19:03:10 -08:00
David Glasser
701bf7872e Remove final #3006 comment 2014-12-01 18:39:40 -08:00
David Glasser
050a01dcf2 Move tryRevokeOldTokens to background fiber
And increase the timeout while we're at it.
2014-12-01 18:38:39 -08:00
David Glasser
ab3d6c5bfb Clean up some #3006 comments 2014-12-01 18:29:20 -08:00
David Glasser
06fbe35d46 Support deploying to legacy Galaxy prototype 2014-12-01 17:42:13 -08:00
David Glasser
04a65c19e4 fix make-bootstrap-tarballs 2014-12-01 17:00:06 -08:00
David Glasser
c49a441d3d self-test: prepare apps after createApp
This means that the first command won't need to do a big build (and
print lots of package changed notifications). Similar to what 'meteor
create' does.

Also add --prepare-app command.
2014-12-01 14:43:15 -08:00
David Glasser
dc97864e16 improve some tests 2014-12-01 10:29:33 -08:00
David Glasser
e956a3b237 remove unnecessary use of NO_METEOR_PACKAGE 2014-12-01 01:41:27 -08:00
David Glasser
bf00def694 clean up comments and remove dead code
Part of #3006 cleanup.
2014-12-01 01:41:14 -08:00
David Glasser
d75aba324c use sqlite instead of racy json file for banners 2014-12-01 01:41:13 -08:00
David Glasser
ff3e4439d4 PackageSource and buildJsImage don't need catalog
It wasn't really being used for anything anymore except complaining
about api.versionsFrom being used during isopacket builds, which is now
implemented in a simpler way.
2014-12-01 01:41:13 -08:00
David Glasser
44454ce480 Remove upgrade-to-engine again
It was resurrected to make sure that people could upgrade to 1.0, but
that's over.
2014-12-01 01:41:12 -08:00
David Glasser
b4a7f4018e Remove 'meteor prep' command
This was just added to help in testing the work in issue #3006. 'meteor
--get-ready' now serves a similar purpose.
2014-12-01 01:41:12 -08:00
David Glasser
03b3f941a3 Make --get-ready do something useful
This command was changed in 0.9.0 to do something of questionable use,
and was temporarily unimplemented as part of work on #3006.  It now does
something relatively simple to describe: It prepares your current app
for build, and in addition, it downloads EVERY package in your current
release and builds EVERY available local package (including those which
you are not using in your app).
2014-12-01 01:41:12 -08:00
David Glasser
fe40ee08e4 Simpler PackageSource.initFromPackageDir interface
There's only one call site which always passed {requireVersion: true,
defaultVersion: "0.0.0"}, so just inline those values.

Also, move some validation of the version string into the place where it
is set instead of some other random place.
2014-12-01 01:26:35 -08:00
David Glasser
7d4757b3ac Show package changes and prerelease warnings
This reimplements functionality that had been removed as part of the
`isopack-cache` branch refactoring.

Information about package changes is encapsulated inside a
PackageMapDelta object on the ProjectContext.  It is the responsibility
of the command that prepares the ProjectContext to choose to call
projectContext.packageMapDelta.displayOnConsole at the appropriate time
if it wishes to display changes.

Part of #3006.
2014-12-01 01:26:35 -08:00
David Glasser
de9536172e Fix anticipated pre-release calculation
This commit fixes a 0.9.3 regression where the calculation of the
topLevelPrereleases object was not updated with the introduction of
disjunction constraints (||) and would always be empty.

topLevelPrereleases and useRCsOK are merged into a single
anticipatedPrereleases option which is now passed in to the
constraint-solver package rather than constructed inside it. (This
object will also be used in ProjectContext as part of PackageDelta
calculation.)

The usedRCs return flag is now called
neededToUseUnanticipatedPrereleases.
2014-12-01 01:26:34 -08:00
Ben Newman
0713b7c8d8 Use pathwatcher.watch to trigger rebuilds and restart the server.
Fixes #2135.
2014-11-26 15:48:53 -05:00
Ben Newman
2407adbecc Implement funcUtils.coalesce(delayMs, callback). 2014-11-26 15:48:46 -05:00
Ben Newman
c65b588dcd Trigger a rebuild to pick up @glasser's dev_bundle/server-lib changes. 2014-11-26 14:45:41 -05:00
Ben Newman
187b0e00f2 Make a note of future aspirations about installing pathwatcher. 2014-11-26 14:23:18 -05:00
Ben Newman
4403a5bf7e Install pathwatcher from NPM instead of GitHub. 2014-11-26 13:52:50 -05:00
David Glasser
47902dcac9 Merge branch 'dev-bundle-cleanups' into devel 2014-11-26 10:49:48 -08:00
David Glasser
f403b06799 switch unmatched pushd to cd 2014-11-26 10:22:27 -08:00
David Glasser
1487d824be move tool deps to package.json to run npm dedupe 2014-11-26 10:19:37 -08:00
David Glasser
289d92f2ec separate server deps from tool deps
move package.json to a JS file so it can have comments.
2014-11-26 09:45:49 -08:00