Commit Graph

5880 Commits

Author SHA1 Message Date
Ben Newman
b2e2d0651b Don't install node-gyp or node-pre-gyp in server bundle.
These packages need to be installed when we run `npm install` in
`bundle/programs/server` (which this commit ensures), but they don't need
to be part of the dev bundle.
2016-08-15 14:31:10 -04:00
Ben Newman
f6a52788f0 Remove BrowserStack from dev bundle. 2016-08-15 14:23:09 -04:00
Ben Newman
0a58a93490 Allow tests to share .meteor/local/shell with apps.
This change means `meteor shell` will now work when running tests with
`meteor test`.
2016-08-11 19:05:50 -04:00
Ben Newman
38096aafc8 Use --debug instead of --debug-brk for meteor debug.
Breaking on the first statement in the program used to be the only way to
get the debugger to stop at any breakpoints, but more recent versions of
node-inspector (compatible with Node 4) do a much better job of stopping
at breakpoints after the program starts.
2016-08-11 18:36:05 -04:00
Ben Newman
027a7b6e32 Merge branch 'devel' into release-1.4.1 2016-08-11 11:30:40 -04:00
Ben Newman
a78dde0225 Make meteor publish-for-arch unnecessary in most cases (#7608)
* Include process.{platform,arch} in .meteor-last-rebuild-version.json.

This supports rebuilding binary npm packages published by completely
different architectures, not just different versions of Node.

* Make publish-for-arch unnecessary in most cases.

* Don't rebuild binary packages when Node patch version changes.

* Permit patch-compatible versions in .meteor-last-rebuild-version.json.

This is a more general solution than simply discarding the patch version
for currentVersions.versions.node, as I did in a previous commit.
2016-08-11 11:24:38 -04:00
Ben Newman
3c7f83778f Move server-side component of meteor shell into a package. (#7624)
This will make it much easier to fix bugs and make improvements going
forward, since they won't have to wait for the next release of Meteor.

One functional change: when the parent process exits, it no longer forces
all connected shell clients to disconnect, which is actually a more
convenient behavior, because it gives the clients a chance to reconnect
when/if the server starts up again, and it's easy enough to kill the
clients if that's what you want.
2016-08-11 09:11:40 -04:00
Ben Newman
e4e87ecce4 Don't touch ~/.meteor/meteor after background updates. (#7616) 2016-08-10 16:53:56 -04:00
Ben Newman
a1c3516053 Use pure-JavaScript implementation for npm-bcrypt package. (#7595)
According to the README, this implementation is approximately 2.7 times
slower than native: https://www.npmjs.com/package/bcryptjs

Apps that wish to continue using the native bcrypt package should run
`meteor npm install --save bcrypt` in the root application directory, and
the npm-bcrypt package will prefer that implementation.
2016-08-09 16:42:41 -04:00
Ben Newman
184dcb78a5 Merge branch 'devel' into release-1.4.1 2016-08-08 19:36:24 -04:00
Ben Newman
a912eed990 Fix accidental stripping of @scoped npm packages. (#7609)
The previous code did not accommodate the possibility that
`meteorNpm.getProdPackageNames` might return a package name that contained
one or more `/` characters.

Fixes #7579.
2016-08-08 19:35:11 -04:00
Ben Newman
4bdc65919d Set $USERPROFILE to the dev bundle directory for meteor {node,npm}.
The node-gyp tool uses `process.env.HOME || process.env.USERPROFILE` to
determine where it should install the .node-gyp directory containing Node
headers and libraries, and we now preinstall that directory at
dev_bundle/.node-gyp/, so (with this change) no download should be
necessary.
2016-08-06 13:46:16 -04:00
Ben Newman
cfa38d1de6 Fix call to nonexistent method buildmessage.hasMessages(). 2016-08-06 13:45:20 -04:00
Ben Newman
aacfbbf5d2 Merge pull request #7485 from kaneoh/bugfix/sourcemap-header-fix
Fix source map header for the prelinked files
2016-08-03 17:10:11 -04:00
Ben Newman
44cf6bbe4d Add some basic self-tests of meteor shell.
Related to #7504.
2016-08-03 15:56:34 -04:00
Ben Newman
08f14ef1a2 Add a basic app template for testing meteor shell. 2016-08-03 15:56:34 -04:00
Ben Newman
83b0d90180 Fix multi-line input to meteor shell.
There is unfortunately no way to access the special Recoverable
constructor defined in node/lib/repl.js unless we temporarily use the
defaultEval function, trigger a recoverable error, and capture its
.constructor property. Fortunately we are that clever.

Fixes #7504.
2016-08-03 15:56:34 -04:00
Ben Newman
1d5ca820df Don't swallow unexpected errors when checking for phantomjs-prebuilt. 2016-08-03 15:26:36 -04:00
Ben Newman
2de0fb59ef Make sure self-tests have a consistent runtime environment. 2016-08-03 15:25:15 -04:00
Ben Newman
36afd7f5c3 Defend global.Promise against misbehaving polyfills. 2016-08-03 15:25:13 -04:00
c9s
8ac556b993 Fix source map header 2016-08-03 13:39:08 +08:00
Ben Newman
c475ffc161 Create .meteor/local directory if necessary for meteor {node,npm}.
Fixes #7546.
2016-08-01 20:37:42 -04:00
Ben Newman
bb8e1a3b9f Implement ConcatStream class instead of using concat-stream npm package. 2016-08-01 14:42:22 -04:00
Tom Coleman
7769951ee8 Switched to concat-stream for performance 2016-08-01 17:55:37 +10:00
Wexpo Lyu
57a28eafff Have meteor update explain how to update cordova packages (#7233) 2016-07-29 23:43:53 +03:00
Tom Coleman
c315861c6c Merge branch 'master' into devel 2016-07-29 23:37:11 +10:00
Tom Coleman
4e3e71dbcc Merge branch '7491-no-kexec-2' into release-1.4.0.1 2016-07-29 13:20:00 +10:00
Tom Coleman
57dfb0b4e1 Don't try and use wired tiger on 32bit linux
For https://github.com/meteor/meteor/issues/7511
2016-07-29 13:19:14 +10:00
Tom Coleman
98aaaed084 Fix #7491 by wrapping child process in script on OSX
See https://github.com/meteor/meteor/issues/7491#issuecomment-235887764

NOTE: this issue should be fixed in the next release of node v4
(4.4.8 or 4.5). When we include that in the dev bundle we should
revert this change
2016-07-29 12:23:04 +10:00
Ben Newman
536eecea01 Log package extraction and loading separately from downloading.
https://github.com/meteor/meteor/pull/7457#issuecomment-235881746

Helps with #7283.
2016-07-28 14:46:49 -04:00
Ben Newman
2c67d64585 Use getUrlWithResuming in downloadPackagesToWarehouse. 2016-07-28 14:43:47 -04:00
Ben Newman
23a3ba0e72 Use getUrlWithResuming for publish-for-arch, and log extraction. 2016-07-28 14:42:45 -04:00
Ben Newman
277fa504a7 Honor options.forceConvert in tryExtractWithNpmTar. 2016-07-28 13:58:16 -04:00
Ben Newman
2f40d3bfbb Refactor verbosity logic for .tar.gz extraction. 2016-07-28 13:58:16 -04:00
Ben Newman
4fa4bd7351 Fix .tar.gz extraction bugs on Windows. 2016-07-28 13:58:16 -04:00
Ben Newman
136c2f8696 Don't let previous extraction attempts interfere with later ones. 2016-07-28 13:58:15 -04:00
Ben Newman
ed624147d7 Use native tar or 7z.exe for extracting tar.gz files when possible. 2016-07-28 13:58:15 -04:00
Tom Coleman
696de36549 More subtle logic for deciding when test files should be lazily loaded
The logic at the top of this function was basically just for the case of
"file is in imports but also a test file". But the logic caught up some
other edge cases, such as "file is in node_modules but also a test file".
2016-07-27 16:15:51 +10:00
Zoltan Olah
57cd28ad29 Merge pull request #7487 from VeliovGroup/devel
Update generated Readme file in builded app
2016-07-26 15:44:32 -07:00
Zoltan Olah
720c8cdd5f Merge pull request #7373 from meteor/laosb-override-warehouse-base-url
Ability to override the default warehouse url base
2016-07-26 15:13:00 -07:00
dr.dimitru
6b080d27ad Update generated Readme file in builded app
After running `meteor build` in created archive `Readme` file with next content:

```text
This is a Meteor application bundle. It has only one external dependency:
Node.js 0.10.40 or newer. To run the application:

  $ (cd programs/server && npm install)
  $ export MONGO_URL='mongodb://user:password@host:port/databasename'
  $ export ROOT_URL='http://example.com'
  $ export MAIL_URL='smtp://user:password@mailhost:port/'
  $ node main.js

Use the PORT environment variable to set the port where the
application will listen. The default is 80, but that will require
root on most systems.

Find out more about Meteor at meteor.com.
```

Since Meteor@1.4 requires nodejs@4.4.7 and fails on nodejs@0.10.*, generated `Readme` must be updated
2016-07-26 17:46:05 +03:00
Ben Newman
59942fd275 Update modules test app to Meteor 1.4. 2016-07-25 14:47:53 -04:00
Ben Newman
0c183c42b1 Bump compiler.BUILT_BY and LINKER_CACHE_SALT for good measure. 2016-07-25 11:51:29 -04:00
Wexpo Lyu
9581a6920c Update commands.js 2016-07-22 16:10:14 -04:00
Wexpo Lyu
317edd88ab Add a warning when use --production. 2016-07-22 16:10:13 -04:00
Dotan Simha
9003eb47b1 Updated the name of the example for angular 2 2016-07-22 16:10:13 -04:00
Dotan Simha
1c64d3a6da Added Angular2 to the example repositories 2016-07-22 16:10:12 -04:00
Ben Newman
918f9bddad Merge branch 'devel' into release-1.4 2016-07-20 14:03:47 -04:00
Ben Newman
83e87aaaef Revise PERFORMANCE.md now that constraint solutions are cached. 2016-07-19 12:26:35 -04:00
Ben Newman
7600571717 Revert "Make sure .meteor/.gitignore ignores .meteor/dev_bundle."
This reverts commit 9e6ebde836.

Now that the `dev_bundle` link is called `.meteor/local/dev_bundle`, and
`.meteor/local` is already ignored, we don't need to ignore
`.meteor/dev_bundle` anymore.
2016-07-19 11:52:31 -04:00