Commit Graph

16 Commits

Author SHA1 Message Date
Avital Oliver
55bfce0de2 'meteor test-packages' improvements:
- Allow testing a package directory in isolation
- Allow specifying a release version to use while running
  tests
2013-03-19 15:11:07 -07:00
Avital Oliver
28af50e403 More of Glasser's code review comments 2013-03-19 15:11:07 -07:00
Avital Oliver
4bae4116e9 'meteor --version' prints release version.
- If you're in an app, prints the release that app is pinned to.
- If you're outside of an app, prints the latest release stored in
  the warehouse.
- If none are found, print only an engine version (XXX is this correct?)
2013-03-19 15:11:07 -07:00
Avital Oliver
8fdb40c58b tools/run-all-tests.sh now also tests a fake installed version of meteor 2013-03-19 15:11:07 -07:00
Avital Oliver
49fccc593a minor improvement to cli-test.sh 2013-03-19 15:11:04 -07:00
Avital Oliver
5a0a4f5ab0 npm dependencies at bundle time
- package.js now has a top-level 'Npm.depends' directive
- both bundle-time and server run-time code can get access
  to any dependent npm module with 'Npm.require'
2013-03-19 15:11:04 -07:00
Avital Oliver
5baac15fc0 Make npm bundling safe to be run in parallel
Instead of modifying the contents of the .npm directory
inside a package directory, construct a new temporary
directory and atomically replace at the end.

Also, some minor improvements to testing and pruning
unused packages
2013-03-19 15:11:04 -07:00
Avital Oliver
78ca755d3d Npm.require unified requireNpm and __meteor_bootstrap__.require 2013-03-19 15:11:04 -07:00
Avital Oliver
5352db933a Implement a useNpm directive for packages 2013-03-19 15:11:03 -07:00
Avital Oliver
9f4702a044 Load packages from PACKAGE_DIRS and CHECKOUT_DIR/packages
Some rehaul of tests for this purpose and general cleanup,
including re-enabling reloading app when packages change
2013-03-19 15:11:03 -07:00
Avital Oliver
40ef67fc93 More testing improvements for meteor test-packages and bundler. 2013-03-19 15:11:03 -07:00
Avital Oliver
36ab0f7ba1 First pass at meteor test-package.
Not yet implemented:
- Detect latest release if not explicitly passed (currently
  hard-coded to 0.1)
- --deploy
- Better help text
2013-03-19 15:11:02 -07:00
Avital Oliver
3e0534a9df Wrote a first bundler unit test, and related refactoring.
- No more global manifest. Instead, all functions requiring a manifest have it passed in, either
  by argument or as a attribute on an appropriate object (such as BundleInstance)
- Some initial progress towards renaming project to app in the codebase
- Eliminate references to collections of packages as a type of "Package"
- Made meteor commands run correctly from a subdirectory of a meteor app, and
  improved tests to have caught this.
- node.sh now returns the return value from the node executable
2013-03-19 15:11:02 -07:00
Avital Oliver
6e25474b31 Fix error messages when running meteor run 2013-03-19 15:11:02 -07:00
Avital Oliver
58c6f55676 Apply changes made on engine repo 2013-03-19 15:11:01 -07:00
Avital Oliver
25c3a683fa Directory reorg to mirror the structure of the engine repo 2013-03-19 15:11:01 -07:00