147 Commits

Author SHA1 Message Date
Naomi Seyfer
a2c9561ce2 Incrementing versions 2013-02-18 14:23:11 -08:00
Naomi Seyfer
657c101b2b Merging master to devel for 0.5.6 2013-02-15 11:16:52 -08:00
Andrew Wilcox
148670cfc6 add ##HTML_ATTRIBUTES## to app.html.in 2013-02-14 20:14:49 -08:00
David Glasser
1535fe3437 Bump version number and add release notes. 2013-02-14 16:49:06 -08:00
Nick Martin
7677944d3d Merge branch 'master' into devel 2013-02-13 16:33:03 -08:00
Andrew Wilcox
93b31e563c Code review updates to the bundle manifest.
`__meteor_bootstrap__.bundler` => `__meteor_bootstrap__.bundle`

`bundle.bundle_dir` => `bundle.root`

Rather than placing app_info/appInfo containing the manifest in the
bundle object, instead I'm now placing the manifest directly in the
bundle object.  A) no code currently uses bundle.appInfo.load; B) if
someday we expand the manifest to also include server side resources
than we'd be getting rid of `load` anyway; C) I think it reads better:

`bundle.appInfo.manifest` => `bundle.manifest`

cp_r now returns a list of os-specific relative file system paths as
strings, instead of paths as arrays.

I changed the normalized "path" field in the manifest to be a relative
path instead of an absolute path (`"/static/cat.jpg"` =>
`"static/cat.jpg"`).  This felt better when looking at the manifest; I
think because the path is relative to the bundle root.
2013-02-12 12:35:30 -08:00
Andrew Wilcox
99ebc78d7a Generate a bundler manifest.
Creates a manifest of the static files delivered to the client, for use
by the app cache.  The manifest is also designed to be usable to generate
etag's for issue #626.

In the original bundler code `self.css` and `self.js.client` starts
out as an array of os-specific file paths and later becomes an array
of URLs (including query parameters).  While I tried to minimize code
changes to avoid creating extra work for the engine project, this
turned out to be too crazy to deal with.  In this version `self.css`
and `self.js.client` stay as file paths, and _generate_app_html now
pulls the client URLs from the new manifest.

This PR is thus proposing a design where the bundler manifest becomes
the source of knowledge about client static resources included in the
bundle, and is then used to generate the app html, the app cache, and
perhaps etag's in the future.  (If it made sense then the `load` list
of server Javascript files could also be folded into the manifest,
making the manifest the source of knowledge about all static
resources... but the code in this PR don't include any steps in that
direction).
2013-02-12 12:35:30 -08:00
Nick Martin
1385137f01 Bump version number in prep for release 2013-02-07 22:49:56 -08:00
Nick Martin
d71e31b5b5 Make inFiber help pass arguments through. This fixes with_password in meteor deploy/logs/mongo. 2013-01-31 12:24:42 -08:00
Avital Oliver
d2319bc134 Wrap some CLI functions in a Fiber 2013-01-25 18:48:04 -08:00
David Glasser
2aa92b2ed3 Update to use APIs from new versions of fibers and uglify-js.
Combine files before minimizing.

minimongo - subkey sort fails when minized, so clearly there is some sort of
uglify bug.
2013-01-16 11:34:30 -05:00
David Glasser
3a99938dff Upgrade Fibers to 1.0.0 and UglifyJS to 2.2.3.
This definitely won't "work" because both have API changes.

UglifyJS 1 was having issues minifying certain code (eg lodash).  But UglifyJS 2
was occasionally segfaulting (as was other code using large regexps).  See the
bottom of https://github.com/laverdet/node-fibers/issues/89

Hopefully this will fix it.
2013-01-16 10:47:57 -05:00
David Glasser
2d27799008 find_mongo_pids: Fix regression in 203a82d.
Don't consider "ps" stderr to be an error. This occurs on OSX Mountain Lion if
DYLD_LIBRARY_PATH or a similar env var is set, and is harmless.
2013-01-08 10:41:01 -08:00
David Glasser
864371f9ab Bump version number to 0.5.4 and write History.md. 2013-01-08 10:40:52 -08:00
David Glasser
203a82d9b9 Fix race condition in 'meteor mongo'.
The 'exit' event on a ChildProcess doesn't necessarily occur before all the
'data' events on its stdio, so sometimes 'meteor mongo' didn't find the
process. We should have been using the 'close' event. Switch from
child_process.spawn to child_process.exec, which simplifies the code and uses
the right event.
2013-01-03 09:29:52 -08:00
David Glasser
dd5bf80f5b Make the modification needed for testing the updater simpler. 2012-12-31 11:48:44 -08:00
David Glasser
cf4190e9c0 Increment version to 0.5.3. 2012-12-23 12:36:05 -08:00
David Glasser
13074d58b9 Remove two copies of underscore.js from Meteor, using NPM package instead.
Follow-up to 27382c6. A step towards addressing issue #302.

We still have one copy in the underscore smart package, for serving to clients.
2012-12-21 11:20:01 -08:00
Naomi Seyfer
9bc802b3f6 Added file with library of mongo exit codes
Make meteor clearer about why mongo exited.

test for one possible mongo badness

Only print explanation if we have it
2012-12-07 11:27:18 -08:00
Naomi Seyfer
0531db7dcb Adjusting code as per code review comments 2012-12-06 14:21:42 -08:00
Naomi Seyfer
4d5498424a launch_mongo now returns a handle that can stop the mongo proc 2012-12-06 14:21:42 -08:00
Naomi Seyfer
24e70fda21 Find mongo and kill it dead on --once exit 2012-12-06 14:21:42 -08:00
David Greenspan
b4fae6212b Rename variables in bundler with identical names
api -> declarationFuncs for top-level Package.on_use etc

on_{use,test} -> on_{use,test}_handler when stored
2012-12-04 17:21:16 -08:00
David Glasser
6d1c0a7c93 Merge branch 'master' into devel 2012-11-27 10:32:57 -08:00
David Glasser
68db80f500 Update version number to 0.5.2. 2012-11-27 08:43:29 -08:00
David Greenspan
95f0278cb9 semicolons 2012-11-21 19:42:10 -08:00
Nick Martin
83386b23d9 Bump version number to 0.5.1. 2012-11-15 23:14:19 -08:00
Nick Martin
34b7bdbbac Bump underscore version. 2012-11-15 20:44:56 -08:00
Tom Wijsman
8f83b2c32e Made sure all file system related statements use proper path.join and path.sep to support other platforms. 2012-10-30 15:53:49 -07:00
Nick Martin
6dfb976104 Bump version number for 0.5.0. 2012-10-12 21:17:18 -07:00
David Glasser
5eb81e920d Increment version to 0.4.2. 2012-10-01 18:25:18 -07:00
David Glasser
a0252d6fbe Fix #352: meteor should work if a parent directory is named 'public'.
Also make sure that every use of app_dir that eventually gets passed to
_scan_for_sources is a resolved path. (Maybe should just resolve in
require_project instead?)
2012-09-24 11:41:22 -07:00
David Glasser
f40b7b03c0 Update version number for 0.4.1.
This will be the commit that 0.4.1 is released from. If the initial release
candidate fails QA, this commit will be reverted.
2012-09-18 10:49:40 -07:00
David Glasser
d1467c983d Revert "Update version number for 0.4.1."
This reverts commit 8ddcc21a0e.

More changes are necessary to History.md.
2012-09-18 10:21:26 -07:00
David Glasser
8ddcc21a0e Update version number for 0.4.1.
This will be the commit that 0.4.1 is released from. If the initial release
candidate fails QA, this commit will be reverted.
2012-09-17 23:38:51 -07:00
David Glasser
f340c35c02 Basic email support. 2012-09-14 18:38:29 -07:00
Tom Coleman
123f17833e A package directory MUST contain a package.js
So we know for sure after calling `get_package_dir` that we can then read the `package.js` file without things exploding.
2012-09-13 19:24:39 -07:00
Tom Coleman
e05e938d70 Throw a helpful error if we can't find a package. 2012-09-13 10:09:31 +10:00
David Glasser
2ac2ffd427 Merge pull request #326 from xenolf/fix-add_resource-doc
fixed documentation for add_resource
2012-09-07 14:25:59 -07:00
azhwkd
29a00b92c9 fixed documentation for add_resource
Extended the documentation to mention the "static" type.
2012-09-07 23:03:17 +02:00
Nick Martin
c7584cdc75 Merge branch 'node-0.8' into devel 2012-09-06 20:35:13 -07:00
David Glasser
6cc67f4373 Packages should be able to both have tests and register extensions. 2012-09-06 12:13:30 -07:00
Nick Martin
70e82dd5f9 Replace path.existsSync with fs.existsSync 2012-08-31 14:04:06 -07:00
Nick Martin
8f4045c1b9 Bump version number for release. 2012-08-30 21:00:42 -07:00
Nick Martin
6f8f08714b Merge branch 'devel' into spark 2012-08-27 13:48:45 -07:00
Avital Oliver
67a6fe0f8f Merge branch 'package_support' of git://github.com/tmeasday/meteor into packages 2012-08-20 16:16:26 -07:00
Nick Martin
1df6b74ada Feedback from review. 2012-08-16 21:16:31 -07:00
Nick Martin
f18b58763b Initial absolute-url package. 2012-08-15 23:28:51 -07:00
David Greenspan
01c7afea5f Merge branch 'master' into spark
Include 0.3.9 changes in spark branch (which my have public followers)
2012-08-13 14:55:31 -07:00
Nick Martin
92b848fe1a Update version for release 0.3.9. 2012-08-07 23:02:12 -07:00