Commit Graph

11343 Commits

Author SHA1 Message Date
David Glasser
6db7783470 bump for 1.0-rc.2
unclear why http and less are needed
release/METEOR@1.0-rc.2
2014-10-17 22:17:06 -07:00
Justin SB
d3ff26dd48 Added two more missing 'new's I had missed 2014-10-17 22:11:21 -07:00
Nick Martin
6fffcda069 Fix error handling for offline support.
(untested. glasser told me what to type.)
2014-10-17 22:11:13 -07:00
Emily Stark
49f5d41fd7 bump meteor-tool package version release/METEOR@1.0-rc.1 2014-10-17 18:06:46 -07:00
Emily Stark
865d826390 Bump release manifest for 1.0-rc.1 2014-10-17 18:04:14 -07:00
Nick Martin
aec9909e37 Tweak help text for get-machine. 2014-10-17 18:02:30 -07:00
Emily Stark
d55f684ec4 Change to --minutes in 'meteor admin get-machine' usage 2014-10-17 18:02:25 -07:00
Nick Martin
5e61d60e48 Rework string that is printed when you publish a binary package. 2014-10-17 18:02:20 -07:00
Justin SB
828bd57004 Exit the status poller cleanly, so we never block process exit 2014-10-17 18:02:14 -07:00
ekatek
0330190f35 better help for get-machine 2014-10-17 18:02:06 -07:00
Emily Stark
ed7fcd4fd7 bump meteor-tool version again, because 'meteor' changed release/METEOR@1.0-rc.0 2014-10-17 16:19:38 -07:00
Emily Stark
827b206c02 bump package version numbers for 1.0-rc.0 2014-10-17 16:10:40 -07:00
Emily Stark
1ae60a6088 Remove stray console.log in meteor package 2014-10-17 16:08:25 -07:00
Emily Stark
84d3b2de4c update release config for 1.0 RC 2014-10-17 15:52:58 -07:00
Ben Newman
ca2322e05b Use Npm.strip to remove some extraneous large files from core packages.
So far I have only removed files from packages that are included by
default in newly `meteor create`d projects. We should probably make a pass
over all the core packages, too.
2014-10-17 18:24:31 -04:00
Ben Newman
fd3b2b0296 Implement Npm.strip, for use in package.js.
Summary:
The `Npm.strip` method makes up for packages that have missing or
incomplete .npmignore files by telling the bundler to strip out certain
unnecessary files and/or directories during `meteor build`.

The `discards` parameter should be an object whose keys are NPM
package names and whose values are arrays of strings (or regular
expressions) that match paths in that package's directory that should be
stripped before installation. For example:

  Npm.strip({
    connect: [/*\.wmv$/],
    useragent: ["tests/"]
  });

This means (1) "remove any files with the `.wmv` extension from the
'connect' package directory" and (2) "remove the 'tests' directory from
the 'useragent' package directory."

The values can also be objects, in which case the keys of the nested
objects will match nested dependency names. For example,

  Npm.strip({
    connect: {
      multiparty: ["test/"]
    }
  });

will discard the "test" directory from the "multiparty" package that is
depended upon by the "connect" package.

If you need to discard files from both "connect" and "multiparty", here's
a little trick you can use:

  Npm.strip({
    connect: {
      connect: ["huge.wmv"],
      multiparty: ["test/"]
    }
  });

This makes intuitive sense because requiring the "connect" package from
the "connect" package always returns the package itself.

Test Plan:
Run `meteor rebuild <package>` for the packages whose package.js files I
modified, and verify that the `Npm.strip`ped paths are absent from the
generated bundle.

Reviewers: glasser, nim, emily

Differential Revision: https://phabricator.meteor.com/D865
2014-10-17 18:24:31 -04:00
David Glasser
d274ad9cd4 Make sure that early refreshes are visible 2014-10-17 14:55:16 -07:00
Avital Oliver
c1ee15e21e Tweak comment and help text on --mobile-settings 2014-10-17 14:43:33 -07:00
Slava Kim
00658816b1 --mobile-settings option for the meteor build command
Since we removed the --settings for build before, here is an alternative that
only puts it into application bundle (not used for build time settings).
2014-10-17 14:35:44 -07:00
Avital Oliver
a9a2459548 Launch screen timeout on iOS now matches that on Android 2014-10-17 14:34:39 -07:00
Justin SB
8952e0e5d1 Bump self-test timeout for (fake) mongo start 2014-10-17 13:52:06 -07:00
David Glasser
98ff998e1f Merge branch 'refreshpolicy' into devel 2014-10-17 13:47:35 -07:00
David Glasser
468aeb25bf avoid circular dependency 2014-10-17 13:47:23 -07:00
David Glasser
cb3c1e5b0d unbreak self-test 2014-10-17 13:47:23 -07:00
David Glasser
82bdaf86b9 no catalog.complete for non-refresh commands 2014-10-17 13:47:23 -07:00
David Glasser
58429a92f3 don't initialize catalog.complete so early
no need to do it until after command parsing is done
2014-10-17 13:47:23 -07:00
Justin SB
cb9b06a9fd Add comment about why we don't just delay the first update cycle 2014-10-17 13:47:22 -07:00
Justin SB
945afe194a During the first background update run, skip the remote catalog refresh
It might obliterate the package resolver cache, and we just did a package sync anyway.

But we don't want to delay it entirely, because we do want the release-version check.
2014-10-17 13:47:22 -07:00
Justin SB
d5657218d0 Add ignoreErrors to Refresh.OnceAtStart strategy 2014-10-17 13:47:22 -07:00
Justin SB
601a91668d Set alreadyRefreshed if refresh was succesful 2014-10-17 13:47:22 -07:00
Justin SB
4fcdd04d85 Make refreshFailed a global, not a strategy field
This way it works no matter where we call catalog.refreshOrWarn
2014-10-17 13:47:22 -07:00
David Glasser
46ed70027d get rid of most doOrDie calls
catalog.official doesn't buildmessage any more!
2014-10-17 13:47:22 -07:00
David Glasser
2b5269c4bd more comment cleanup 2014-10-17 13:47:22 -07:00
David Glasser
a7c369284f refresh-related cleanup 2014-10-17 13:47:21 -07:00
David Glasser
44c7aa2d78 fix springboard test 2014-10-17 13:47:21 -07:00
David Glasser
102e6cacb8 do METEOR_TEST_FAIL_RELEASE_DOWNLOAD not-found 2014-10-17 13:47:21 -07:00
David Glasser
87f4a7826f Get a little farther in springboard test 2014-10-17 13:47:21 -07:00
David Glasser
96eebea575 remove unnecessary assertion
add a var
2014-10-17 13:47:21 -07:00
Justin SB
d1c896724c We do need to cache the resolver after all; invalidate it correctly 2014-10-17 13:47:21 -07:00
Justin SB
da41eccf58 Do cache the resolver after all; resolveConstraints is called a large number of times 2014-10-17 13:47:21 -07:00
David Glasser
db4ddb7989 Don't refresh twice before even starting commands 2014-10-17 13:47:21 -07:00
David Glasser
149ca2ddc4 Commands must declare a refresh strategy
Part of adding a new command is thinking carefully about whether or not
your command needs to access the catalog.  If there are commands without
that careful thought, the tool shouldn't run.
2014-10-17 13:47:20 -07:00
David Glasser
c1753de1e8 release.latestDownloaded -> latestKnown, errors
Since 0.9.0 it hasn't had anything to do about anything being
downloaded, just metadata, so the new name is better.

And without auto-retry, there's no need for this to have anything to do
with buildmessage.

Add a bit more support for the very unlikely case that you're running
meteor outside an app and the catalog has no information about any
METEOR@ release.
2014-10-17 13:47:20 -07:00
David Glasser
fa11f97c1e Expand comments about safety of release.load calls 2014-10-17 13:47:20 -07:00
David Glasser
a19141ac2f update initial springboarding for refreshpolicy
Since release.load no longer refreshes, we now need to manually
refresh. This is actually a great thing! It lets us look at modern
releases before legacy releases, which is the proper order anyway!
2014-10-17 13:47:20 -07:00
Justin SB
4ec3cb2a55 Rename LayeredCatalog refresh -> refreshLocalPackages, drop cached resolver 2014-10-17 13:47:20 -07:00
Justin SB
8c034a2d7f We "update the package catalog", not package metadata, not refresh 2014-10-17 13:47:20 -07:00
Justin SB
871166db46 Better explanation if we were offline 2014-10-17 13:47:20 -07:00
David Glasser
37e71e1675 drop unnecessary variable 2014-10-17 13:47:20 -07:00
David Glasser
fb21aa42b0 release.load can't throw OfflineError any more
So stop giving tests a way to force-throw it (might break springboard
test; fix this before merging) and stop catching it.

(release.load now just does a single sqlite query!)
2014-10-17 13:47:19 -07:00