Commit Graph

200 Commits

Author SHA1 Message Date
Avital Oliver
d38034f35d Fix client/compatibility/ in a non-nested directory 2013-05-15 15:02:07 -07:00
Avital Oliver
4284a5ed1d fix npm tests 2013-05-10 15:00:29 -07:00
Vyacheslav Kim
0893b8258c Include environment info in every web request.
Pass available environment info (Meteor version, OS, etc) in every web
request in User-Agent http header. OS platfrom, release, arch, type
available from node api and Meteor release number.
2013-05-09 11:59:02 -07:00
David Glasser
99d5be0079 Mimize shrinkwrap files so that they change less in git. 2013-05-09 11:17:36 -07:00
David Glasser
8781477e64 Update notices and HISTORY. 2013-04-25 16:48:34 -07:00
Avital Oliver
4a32bb81f3 options.compatibility -> options.raw 2013-04-25 13:47:03 -07:00
Avital Oliver
47ba95dfc4 wrapping 2013-04-25 10:58:27 -07:00
Avital Oliver
fb61e884db Don't create new var scope for js files in client/compatibility/ 2013-04-24 15:53:19 -07:00
David Glasser
1a7c2d81fd Another round of cleanup on .npm/README. 2013-04-24 11:50:50 -07:00
Tim Haines
fc81e29f3e Update the readme that gets generated within the .npm folder of packages 2013-04-23 13:25:24 -07:00
David Glasser
49822939c2 Revert "Use npm instal --force to get around NPM cache corruption bug."
This reverts commit 7825ae7845.

test_bundler_npm.js (even after an obvious fix is applied to an unrelated
problem) fails a noticeable percentage of the time in the "bundle multiple apps
in parallel" test. It does not appear to fail on the node-0.10 branch, so will
apply this there instead.
2013-04-15 16:54:48 -07:00
David Glasser
7825ae7845 Use npm instal --force to get around NPM cache corruption bug. 2013-04-15 15:10:07 -07:00
Nick Martin
dc887a40c8 Update tools tests for stream -> livedata package merging 2013-04-15 14:12:56 -07:00
Andrew Wilcox
6873c91424 Allow CoffeeScript to set global vars when using "use strict".
Ha.  Turns out that `.call(this)` is needed after all when a
CoffeeScript file is using "use strict".
(http://es5.github.io/#x15.3.4.4)

Thanks to pipedreambomb on stackoverflow for the bug report and to
user1737909 for the documentation reference.
2013-04-15 10:52:01 -07:00
David Glasser
1fc7d7f94d Allow for package-specific notices. 2013-04-10 10:29:09 -07:00
Avital Oliver
b904459561 Unbreak apps that reached a corrupted state due to #927
Previously to fixing #927, if you had a 'node_modules' directory
anywhere up the directory tree from your app and you had a package
in your app using NPM, all calls to 'npm' ran against the 'node_modules'
directory it found, so neither 'node_modules' nor 'npm-shrinkwrap.json'
would be created within your package's .npm directory.

The fix to #927 ensured that 'node_modules' was first created within
'.npm' but people who had already run 0.6.0 were still in a corrupted state.
2013-04-08 07:04:33 -07:00
andreas.karlsson
57c14264fc Prevent npm install from picking up existing node_modules dirs 2013-04-07 16:06:00 -07:00
Avital Oliver
e5a8e33dfa Explain arguments to Npm.depends if you try to use it naively 2013-04-04 15:45:57 -07:00
David Glasser
d87a6384e1 Merge branch 'master' into devel 2013-04-04 12:11:55 -07:00
David Glasser
817597eb01 Comment updates. 2013-04-04 00:26:17 -07:00
David Glasser
9ba35e7b79 Add a few more "=>" markers to runner messages.
(Not worth forcing into 0.6.0.)
2013-04-04 00:02:58 -07:00
David Glasser
643f5fac05 Ensure that tarballs do not contain hard links.
Make whitespace changes to tools and mongo-livedata so that we will build new
package versions with non-hard-linked Node plugins.
2013-04-03 21:14:25 -07:00
David Glasser
1803a5a423 Make sure that if we do something like
$ meteor test-packages /some/random/copy/of/minimongo

that we watch the random copy of minimongo for changes.
2013-04-02 15:57:09 -07:00
David Glasser
aaae84aa60 Print notices on upgrades from pre-Engine too. 2013-04-01 15:29:50 -07:00
David Glasser
8d220f6b46 Fix "meteor test-packages" in installed Meteor. 2013-04-01 12:27:20 -07:00
David Glasser
72e744ca5a Minor doc updates. 2013-04-01 10:31:07 -07:00
David Glasser
3f8a41d946 add --release to a few more CLI docs 2013-04-01 09:58:10 -07:00
David Glasser
36f870a6ab Catch files that change immediately after the server restarts by doing a
one-time content scan. Addresses Issue #223.

This addresses two cases: files that change during a slow bundle (eg, during
slow NPM updates) and *do* end up with a different mtime (which could also be
addressed in other ways, see eg the issue-223-dead-end branch)... and those that
change twice within the same second on OSX HFS+ which only has 1-second mtime
resolution, which really cannot be addressed in any purely mtime-based way.

This still is not 100% perfect. Most notably, any files read via
register_extension (which is to say, basically all source files other than
package.js and static resources) still have a race between hash calculation and
the actual read done by the bundler, since the register_extension API takes a
source_path rather than contents. This could be addressed by making
register_extension handlers take the contents as an argument too (and encourage
the use of source_file only for things like printing errors with filenames, not
actually for reading the file). In addition, this won't detect files added after
the bundler passes them but before the initial DependencyWatcher run.
2013-03-31 23:01:44 -07:00
David Glasser
d65551a687 Better message for unknown releases. 2013-03-30 17:50:19 -07:00
David Glasser
f3821b06f3 Remove outdated comments. 2013-03-30 00:53:29 -07:00
David Glasser
4b91013be8 Don't print a message at the end of running the install script. 2013-03-30 00:08:22 -07:00
David Glasser
421bd951c7 in update message, only print basename 2013-03-29 22:57:12 -07:00
David Glasser
88dedc5503 add newlines to "meteor deploy" output
this way any NPM lines between "bundling..." and "uploading..." are less jarring
2013-03-29 22:49:53 -07:00
David Glasser
e989706d51 avoid creating temporary package NPM dirs when nothing has changed 2013-03-29 22:41:57 -07:00
David Glasser
081a517baa npm update message: don't include version (which can be long and ugly) 2013-03-29 22:37:27 -07:00
David Glasser
fe1d61db40 more effective detection of stdout/err use for restart message 2013-03-29 22:27:51 -07:00
David Glasser
912e36ad3f move --get-ready comment 2013-03-29 22:21:04 -07:00
David Glasser
55fbe16acf slightly better short description for update 2013-03-29 21:45:53 -07:00
David Glasser
de753799ba fix typo in notices support 2013-03-29 18:54:35 -07:00
David Glasser
8ed6e80771 notice printing, as per script 2013-03-29 18:30:17 -07:00
David Glasser
8e550dfe9a add more spacing around banner 2013-03-29 18:03:02 -07:00
David Glasser
8c8fea17c4 don't print overriding message when overriding "none" 2013-03-29 16:23:24 -07:00
David Glasser
c28c7db3e0 wrap some text 2013-03-29 16:23:14 -07:00
David Glasser
526320ca05 fix --release with releases where you already have all the pieces 2013-03-29 16:09:14 -07:00
David Glasser
e072540031 - better errors when running "meteor update" or a command with an unknown
release while offline
- fix "meteor help update"
- add an OfflineError to files.getUrl
- factor out die into a logging package
2013-03-29 15:40:26 -07:00
David Glasser
b6e4398aef fix comment (thanks @awwx) 2013-03-29 11:52:34 -07:00
David Glasser
331654c0b8 basic pass on making updater reasonable. 2013-03-29 11:52:34 -07:00
David Glasser
513a6f2571 oops, no-* is specially handled 2013-03-29 11:52:34 -07:00
David Glasser
068774147c unbreak running from git 2013-03-29 11:52:34 -07:00
David Glasser
1ceef40beb apps with no release file are now assumed to be the latest release, not 0.6.0 2013-03-29 11:52:34 -07:00