Commit Graph

23 Commits

Author SHA1 Message Date
Avital Oliver
d730b9f658 tools/run-all-tests.sh and some related clarifications 2013-03-19 15:11:06 -07:00
Avital Oliver
abd8ad7c50 Reorg lib/, including introducing warehouse.js
Also:
- Rename cache directory to .meteor
- Rename .meteor/version to .meteor/release
- Change how we tell whether we're in an app directory (motivated by our new .meteor directory)
- Use files.get_core_dir instead of relative paths
2013-03-19 15:11:06 -07:00
Avital Oliver
afd5094468 Write .npm/README, and reformatted npm-shrinkwrap.json (due to new npm) 2013-03-19 15:11:05 -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
6c33bd911c npm: call npm install name@version less
+ some reorg/cleanup
2013-03-19 15:11:04 -07:00
Avital Oliver
65e8b86421 npm support: simplify and rename 2013-03-19 15:11:04 -07:00
Avital Oliver
cda70deb6b npm support: comment improvements and simple npm-shrinkwrap.json files 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
Nick Martin
5cde1226d0 Also symlink per-package node_modules into the build when running in symlink mode. 2013-03-19 15:11:03 -07:00
Avital Oliver
69d0632db8 Fix test_bundler_options.js 2013-03-19 15:11:03 -07:00
Avital Oliver
8998633f3c Move npm depdencies from dev bundle to packages 2013-03-19 15:11:03 -07:00
Avital Oliver
30c61be11c Upgrade to fibers 1.0.0 2013-03-19 15:11:03 -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
665f5ee9e4 fix typo 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
99f80949ac Bundler option change: testPackages instead of include_tests
Also, eliminated some dead code. This should be the last bundler change
necessary for implementing `meteor test-packages`
2013-03-19 15:11:02 -07:00
Avital Oliver
87024ac5fe Bundler options change: no_minify -> noMinify
Also, wrote tests
2013-03-19 15:11:02 -07:00
Avital Oliver
b2bd0eb9b0 Bundler options change: Introduce nodeModulesMode
This replaces the old `symlink_dev_bundle` and `skip_dev_bundle`
options.

Also adds tests for these
2013-03-19 15:11:02 -07:00
Avital Oliver
72a1bbb101 small fix 2013-03-19 15:11:02 -07:00
Avital Oliver
b812d6e9ec Introduce fiber-helpers.js and some minor comment improvements 2013-03-19 15:11:02 -07:00
Avital Oliver
62b5e87cce bundler: add a versionOverride option 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