Commit Graph

3708 Commits

Author SHA1 Message Date
David Glasser
0011e00a7e rebuild now requires an app 2014-12-04 15:37:52 -08:00
David Greenspan
861fe1d502 Fix spacing in error message 2014-12-04 09:21:48 -08: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
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
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
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
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
David Glasser
7b3f03f152 fix typo, thanks @dgreensp 2014-11-26 08:58:11 -08:00
Slava Kim
b203cc3d26 fix typo in a comment 2014-11-25 17:14:16 -08:00
David Glasser
1d4c3e7387 comment tweaks 2014-11-25 09:35:34 -08:00
David Glasser
d76f489b0f beginning of fixing make-bootstrap-tarballs 2014-11-25 09:12:19 -08:00
David Glasser
f4e69b9e96 Fix test-bundler-assets some more 2014-11-25 09:06:31 -08:00
David Glasser
8deba5c9bb Last references to PackageLoader and catalog.complete are gone 2014-11-25 09:06:31 -08:00
David Glasser
ab6317a0ff Remove old project.js 2014-11-25 09:06:31 -08:00
David Glasser
0275afcfc9 maybe improve self-test 2014-11-25 09:06:31 -08:00
David Glasser
d4c7bf2020 tentative steps towards publish tests passing 2014-11-25 09:06:30 -08:00
David Glasser
f5901a74da steps towards making report-stats test pass
It doesn't, though, for reasons that mostly seem to be "talking to the
stats server (and auth) is really slow"
2014-11-25 09:06:30 -08:00
David Glasser
4949c396ab fix matches after process ends
fixes 'meteor exits when cordova platforms change'
2014-11-25 09:06:30 -08:00
David Glasser
d107d7292d restore 'added cordova plugin' messages 2014-11-25 09:06:30 -08:00
David Glasser
9ea3b92cb4 improve some tests 2014-11-25 09:06:30 -08:00
David Glasser
1a56f3c55d fix test-bundler-npm
remove one subtest that's been super flaky for ages
2014-11-25 09:06:30 -08:00
David Glasser
e42e104bc2 check platforms before plugins
a platform change often creates a plugin change, so we should mention
the more major change first.  also helps with "meteor exits when cordova
platforms change" self-test
2014-11-25 09:06:29 -08:00
David Glasser
1ccf81fea0 Call waitSecs instead of setting extraTime 2014-11-25 09:06:29 -08:00
David Glasser
f0ce81aaa2 can't get this one to pass but it is slow 2014-11-25 09:06:29 -08:00
David Glasser
48634b7124 get a test slightly closer to passing and tag slow 2014-11-25 09:06:29 -08:00
David Glasser
c226c652e9 simplify another test and make it pass
drop unnecessary stack trace
2014-11-25 09:06:29 -08:00
David Glasser
b00043e92e simplify a test and make it pass 2014-11-25 09:06:29 -08:00