Commit Graph

395 Commits

Author SHA1 Message Date
Ben Newman
4ad860ca47 Move tools/shell/server.js to tools/server/shell-server.js.
Since this file ends up getting copied into the server bundle, along with
files like boot.js, it makes sense to keep it with those files.

Renamed tools/shell/client.js to tools/shell-client.js for symmetry.
2015-02-09 11:42:49 -05:00
Slava Kim
d07ff8e99c Convert the Windows-styled path from Assets.get* calls 2015-02-07 08:54:44 -08:00
Avital Oliver
2f24eb418d Fix incorrect logic, while improving an error message 2015-02-06 14:28:51 -08:00
Ben Newman
19080bd53d Split server/shell.js into shell/server.js and shell/client.js.
Note that shell/server.js is copied into the bundle as shell-server.js,
like before, however now it contains none of the extraneous code that
belongs in shell/client.js.

The original reason server and client code were combined in a single file
was to share helper functions and configuration variables (e.g.
getInfoFile and EXITING_MESSAGE). Now, shell/client.js requires
shell/server.js to access those shared exports.
2015-02-06 14:33:19 -05:00
David Glasser
505a77ecad Update other places that mention the Node version 2015-02-05 22:40:43 -08:00
David Glasser
695ed96a22 fix non-run uses of bundler 2015-02-05 20:35:15 -08:00
Sashko Stubailo
0c8e7baf30 Add fail fast and rename option to "reference directly" 2015-02-05 20:12:39 -08:00
Slava Kim
4eb73b3984 Fix requires to profile.js since we replaced the wrapper with tiny-profile.js 2015-02-05 16:40:14 -08:00
Slava Kim
7ff1f6b2d2 Glasser's comments 2015-02-05 16:25:44 -08:00
Slava Kim
dff3bf1d43 Remove dead code per glasser's comments 2015-02-05 16:14:59 -08:00
Slava Kim
d9d8147a3d Correct comments according to avi's and sashko's comments 2015-02-05 15:00:35 -08:00
Sashko Stubailo
7b8147761b Improve comment about physical location 2015-02-05 12:12:47 -08:00
Sashko Stubailo
7e8e87308c Improve comment 2015-02-05 11:52:31 -08:00
Sashko Stubailo
3cf16b9bf3 Tell people where to find out about includeNodeModules 2015-02-05 11:51:07 -08:00
Sashko Stubailo
4220aed72f Improve comments about returning node path 2015-02-05 11:49:39 -08:00
Slava Kim
fe7611b01b Add back some code accidentally removed on a merge 2015-02-04 19:01:18 -08:00
Slava Kim
49bd963f7c Fix a merge typo 2015-02-04 18:51:40 -08:00
Sashko Stubailo
a75cae93ed Merge branch 'devel' into windows-r
Conflicts:
	packages/package-version-parser/package.js
	tools/bundler.js
	tools/server/boot.js
2015-02-04 15:50:31 -08:00
Slava Kim
24830980d2 Change includeNodeModules mode from 'NODE_PATH' to 'link-to-system-paths'
Changes:
- rename 'NODE_PATH' mode to 'link-to-system-paths'
- the mentioned mode now affects the way node_modules in isopacks are
  copied/symlinked:
  In the new mode the node_modules folders are not even created, the
  program.json for the server program would point to the system path such as
  /User/slava/.meteor/packages/iron_router/version/npm/node_modules instead of
  local 'npm/iron_router/npm/node_modules'
- make the 'symlink' option and explicit argument to builder#copyDirectory as
  the way it used to be before (a hidden state of builder instance) was hella
  confusing
2015-02-04 14:10:47 -08:00
Sashko Stubailo
b3cb7a49f7 Merge branch 'devel' into windows-cr
Conflicts:
	packages/application-configuration/package.js
	packages/ctl-helper/package.js
	packages/ctl/package.js
	packages/dev-bundle-fetcher/package.js
	packages/follower-livedata/package.js
	packages/jquery/package.js
	packages/star-translate/package.js
	packages/test-in-browser/package.js
	tools/bundler.js
	tools/compiler.js
	tools/package-client.js
	tools/package-source.js
	tools/package-version-parser.js
	tools/server/boot.js
2015-02-04 13:56:54 -08:00
Sashko Stubailo
4052b78691 Change lib to server-lib 2015-02-04 12:51:57 -08:00
Slava Kim
95dcc8cc58 Fix a typo 2015-02-03 18:35:20 -08:00
Slava Kim
9ad75660e1 wip to NODE_PATH 2015-02-03 18:14:03 -08:00
Slava Kim
ffdb98b8f6 Add a lot of profiler frames 2015-02-02 18:06:58 -08:00
Sashko Stubailo
30148b58b7 Add mini-files.js to the list of bundled files 2015-01-30 15:44:55 -08:00
David Glasser
299f413617 Remove support code for legacy systems
Summary:
What I'm looking for here is: attention to the few parts that aren't just
deletions (eg in auth.js), and thoughts about if removing any of these things
might break systems I haven't thought about.

Test Plan: test-packages, self-test (which mostly passes)

Reviewers: ekatek

Differential Revision: https://phabricator.meteor.io/D18
2015-01-29 14:03:41 -08:00
David Glasser
62037959fe Clean up comments about legacy code 2015-01-29 14:03:11 -08:00
David Glasser
0e0dfed6a8 Remove "control program" support
This was support code for a now unused system.
2015-01-29 14:03:10 -08:00
David Glasser
c42ecf45af Ignore vim swap files in public and private dirs
We were already ignoring anything beginning with a dot in *source* files
in the app, but not in *asset* directories.

Notably, this means that vim swap files won't get bundled into your app,
and that hot code reload won't be triggered by editing asset files until
you actually save them!

Fixes #3322.
2015-01-26 15:10:15 -08:00
David Glasser
71af635a25 improve JsImage.load Npm.require errors
- Use buildmessage (skips stack trace)
- Drop extraneous trailing single quote
- Say "from" instead of "while loading" since this can also happen
  when running code from the file after load time
2015-01-23 16:47:49 -08:00
David Glasser
806ecd827b Support Npm.require('foo/bar') in JsImage.load
(ie, plugins and isopackets)
2015-01-23 16:44:02 -08:00
Sashko Stubailo
a7eeda6be3 Rename metadata-colon-converter and remove adaptLegacyPath 2015-01-21 14:04:09 -08:00
Sashko Stubailo
0b4993ade1 Don't convert JS images on read anymore 2015-01-21 14:04:08 -08:00
Slava Kim
a496aafdfb Put a dummy value 2015-01-21 14:04:08 -08:00
Slava Kim
2a53499fb5 Remove the mention of windows close to dev-bundle-fetcher 2015-01-20 22:34:21 -08:00
Sashko Stubailo
aec7e4a984 Convert path in Npm.require 2015-01-20 22:34:19 -08:00
Slava Kim
deb03e3932 A preferred bundle path for node_modules never contains a colon 2015-01-20 22:04:23 -08:00
Slava Kim
1565475894 Never generate colons in file paths or serve paths
When building isopacks
2015-01-20 22:04:23 -08:00
Sashko Stubailo
2ad757275a Make stripLeadingSlash not reject relative paths 2015-01-20 22:04:22 -08:00
Slava Kim
78ddbd331a Add fake records for windows dev_bundles on warehouse 2015-01-20 22:03:23 -08:00
Slava Kim
70392aec79 Don't symlink node_modules on Windows
because symlinking is hard
2015-01-20 22:03:23 -08:00
Slava Kim
27066a6ecf serveRoot is always a url path, treat it as such
Don't use path.join or files.pathJoin to join url paths
2015-01-20 22:03:23 -08:00
Sashko Stubailo
82a37c2c7c Throw an error when we can't build an arch
Instead of failing silently
2015-01-20 22:03:22 -08:00
Maxime Quandalle
3a5a4dde6c Remove unused import in the bundler 2015-01-12 11:23:54 -08:00
David Glasser
096df9d62d Refactor parent pid check; drop --keepalive
This commit moves parent pid process from the webapp package to the boot
script. This means that daemonized apps without webapp will also exit
when the runner exits, if run from the runner. (For example, several
self-tests such as 'autoupdate' no longer leak node processes.) This is
controlled via the $METEOR_PARENT_PID environment variable instead of
from command line arguments, in order to make fewer assumptions about
how Meteor apps process arguments.

This also drops the old --keepalive support (which already has stopped
being used by the dev mode runner or any MDG deployment platforms).
Neither --parent-pid nor --keepalive were documented beforehand, and
--keepalive was already deprecated before 1.0.

These flags used to also incidentally trigger printing the LISTENING
line; this is now controlled by $METEOR_PRINT_ON_LISTEN.

Fixes #3315.
2015-01-05 15:48:32 -08:00
David Glasser
f6f4803a9a refactor: move pluginProviderPackageMap in Isopack
This also un-breaks soft refresh for troposphere packages:
previousIsopack was accidentally being set to an
{isopack,pluginProviderPackageMap} object, and so the "can we reuse the
previous one" check was never actually passing.
2014-12-17 00:13:07 -08:00
Ben Newman
2a7cd3268d Rewrite wrapFsFunc to decide whether to yield automatically. 2014-12-16 12:34:43 -05:00
David Glasser
c373120de7 Fix app build for Cordova
Caught by a zillion tests, oops.  But not by --prepare-app!
2014-12-15 17:29:49 -08:00
Sashko Stubailo
a2e62e23b5 Add comment explaining existsSync 2014-12-15 15:32:06 -08:00
Sashko Stubailo
e7167e5257 Factor out almost all fs. and path. calls in the tool
This will be useful when we want to be smart with windows file paths later
Also, all of the file calls are asynchronous with fibers now, which comes with
many benefits.

This is a combination of 23 commits. Original messages:
Wrap a large number of fs calls inside files.*

Convert a few more fs calls to files.*

More moving fs.* to files

Implement read/write streams and open/read/close

Get rid of fs from auth.js

Remove fs and unused imports from catalog-local and catalog-remote

Remove unused imports from catalog.js

Replace a whole lot of fs calls

Fix error

Migrate a lot more fs. calls to files.

Add a temporary symlink method

Convert old test to files.*

Use files.pathX instead of path.x everywhere

Replace path.x to files.pathX in tests

Small fixes to files.js and one rename

Make cleanup run in a fiber

Make wrapping functions take function name in case we need it

Add some timeouts and stuff to HCP tests

wrapFsFunc also makes a sync version of the function

Sometimes you just don't want to yield!

Make sure JsImage readFromDisk doesn't yield

Remove unused imports from npm test

Change order of test now that some things don't yield

Fix missing files import, and add a debug error printout
2014-12-15 15:32:06 -08:00