Commit Graph

5406 Commits

Author SHA1 Message Date
Ben Newman
4f5cb1d7a0 Bump package versions for 1.3-beta.16 release.
What happened to beta.13, beta.14, and beta.15? All unfortunately suffered
from problems that made it either impossible or unwise to upgrade to those
versions.
2016-03-09 12:13:18 -05:00
Ben Newman
f74975d0df Write node_modules metadata as single strings.
Packages published with node_modules unibuild properties that are
object-valued instead of string-valued cannot be loaded by the previous
version of meteor-tool, so the tool can't upgrade itself if any packages
have object-valued node_modules properties. Fortunately, no packages
currently exist that need both Npm.depends and local node_modules
directories, so we can just keep writing strings for now. At some point in
the future (maybe 1.3.1), we can assume people have upgraded to a version
of the tool that supports object-valued node_modules properties, and then
we can start writing those properties to disk without worrying about
old versions of the tool.
2016-03-09 11:52:09 -05:00
Ben Newman
992c27e716 Recreate symlinks in Builder#copyDirectory, even if !canSymlink.
According to the comment for the copyDirectory method, this was the
intended behavior before I changed it.
2016-03-09 11:52:08 -05:00
Ben Newman
b82f82e7da Revert "Follow symbolic links in builder.copyDirectory."
This reverts commit e6b33a2627.
2016-03-09 11:52:08 -05:00
Ben Newman
2cc42128a6 Bump package versions for 1.3-beta.13 release 2016-03-08 22:48:49 -05:00
Ben Newman
e6b33a2627 Follow symbolic links in builder.copyDirectory.
Fixes a blocking bug with the `meteor publish-release` command.
2016-03-08 22:48:48 -05:00
Tom Coleman
33e619e3ab Added *.[app-]spec[s].* as valid test file names 2016-03-09 14:34:30 +11:00
Ben Newman
40857bdaff Propagate meteorEnv subset of process.env from server to client.
Fixes #6399.
2016-03-08 19:37:57 -05:00
Ben Newman
93e5e7391f Concatenate files that have the same .sourcePath.
Fixes #6422.
2016-03-08 16:30:54 -05:00
Ben Newman
f89ced5ff5 Permit nonexistent addJavaScript({sourcePath}) paths.
Fixes #6383.
Fixes #6411.
2016-03-08 14:03:13 -05:00
Ben Newman
62c41b2ef5 Revert "Don't scan require calls in Browserify/Webpack bundles."
This reverts commit 99cb96fcf7.

Webpack already avoids this problem by transforming `require` to
`__webpack_require__`, and Browserify bundles can use something like
https://www.npmjs.com/package/derequire to rewrite ``require` calls to
avoid confusing other tools. False positives are acceptable, and we can
measure/mitigate the performance consequences in any number of ways.

Fixes #6427.
Fixes #6430.
2016-03-08 12:13:15 -05:00
Ben Newman
f8084682f5 Commit some accidentally unstaged changes. 2016-03-07 20:21:57 -05:00
Ben Newman
a92aaee133 Test that various packages can now be imported using pure Node.
Closes #6165.
Closes #6173.
Closes #6285.
Closes #6313.
Closes #6373.
2016-03-07 19:52:05 -05:00
Ben Newman
c9660d9f83 Implement module.useNode() for importing node_modules on the server.
Upgrading the install package to 0.5.6 was vital to enable support for
Module.prototype.useNode: 9eb8351e11
2016-03-07 19:41:15 -05:00
Ben Newman
26e3cd7df2 Make sure <bundle>/npm/ contains all node_modules directories. 2016-03-07 19:41:15 -05:00
Ben Newman
99213da719 Make builder.copyDirectory symlink directory children. 2016-03-07 19:41:12 -05:00
Martijn Walraven
83474f9a1e Don't build web.cordova when not running on mobile targets
Closes #6417.
2016-03-05 08:44:06 +01:00
Tom Coleman
9952d2b19b Properly remove version from skeleton package.json 2016-03-05 09:54:58 +11:00
Tom Coleman
42b8f41824 Revert "Remove version from the skeleton package.json"
This reverts commit 81e40d7301.
2016-03-05 09:54:35 +11:00
Tom Coleman
b865ff0702 Merge pull request #6393 from meteor/release-1.3-move-examples
Removed examples and added a command to printout their repos.
2016-03-04 09:36:08 +11:00
Ben Newman
cfdcc37e0d Make ImportScanner path manipulation more Windows-friendly. 2016-03-03 12:35:30 -05:00
Tom Coleman
6c90662818 Removed examples and added a command to printout their repos.
See #6379
2016-03-03 19:06:51 +11:00
Martijn Walraven
081c5b6446 Add some missing Cordova default access rules 2016-03-03 08:55:02 +01:00
Martijn Walraven
ad8a6087ab Update Cordova platforms to Android 5.1.1 and iOS 4.1.0 2016-03-03 08:54:39 +01:00
Martijn Walraven
e70c66f66c Always print status of individual platform requirements 2016-03-03 08:05:38 +01:00
Tom Coleman
058002e7e4 Fix incorrect logic 2016-03-03 14:52:34 +11:00
Tom Coleman
7f4d9706b8 Make meteor run --once not quiet. #6359 2016-03-03 12:10:59 +11:00
Tom Coleman
81e40d7301 Remove version from the skeleton package.json
cc @benjamn -- as I mentioned I don't think this makes sense for applications. Please let me know if you disagree.
2016-03-03 11:43:45 +11:00
Martijn Walraven
b624849ab3 Improve log tailing for Android 2016-03-02 14:02:26 +01:00
Tom Coleman
f49908a522 Merge pull request #6372 from meteor/release-1.3-new-skeleton-6306
Refactored app skeleton
2016-03-02 13:51:12 +11:00
Tom Coleman
36e3e2e6d4 Remove main field as we don't use it (yet) 2016-03-02 13:50:52 +11:00
Tom Coleman
4476895022 Refactored skeleton:
- Split files into the correct place, given the guide
 - Import html file
 - Removed test [it's not a demo]
 - Use ReactiveVar rather than Session
 - Added an info section to guide people further
2016-03-01 15:39:06 +11:00
Ben Newman
636c4b9046 Update tools/tests/apps/modules/.meteor/versions for beta.12. 2016-02-29 23:35:17 -05:00
Ben Newman
08c66c2b34 Work around Babel bug with const in async functions. 2016-02-29 23:07:45 -05:00
Ben Newman
62ccaaad89 Don't treat file.servePath as absolute. 2016-02-29 21:37:55 -05:00
Ben Newman
5c47891489 Allow custom stubs to override meteor-node-stubs.
Part of #6056.
2016-02-29 19:45:52 -05:00
Ben Newman
757660a85d Prevent erroneous calls to String.prototype.{to,toEnd}.
Fixes #5107.
2016-02-29 17:32:22 -05:00
Ben Newman
db437e23c3 Revert "Stop protecting against String.prototype modifications in shelljs"
This reverts commit 7a2e6de78e, reinstating
@dgreensp's earlier commit 98886f98ef.

Related: #5107
2016-02-29 16:57:57 -05:00
Ben Newman
9ff3cdc7eb Ensure every file the ImportScanner scans has a valid sourcePath.
Packages published before the modules package existed may acquire a
dependency on the modules package upon upgrading to Meteor 1.3, because
they depended on the ecmascript package, which now implies the modules
package. If the previously published isopacket does not provide a
sourcePath or path property, then we should use the servePath property
instead. With that fix in place, I am now strictly enforcing that all
files scanned by the ImportScanner actually exist on disk.

Should fix #5871.
2016-02-29 16:40:06 -05:00
Ben Newman
99cb96fcf7 Don't scan require calls in Browserify/Webpack bundles.
This analysis isn't perfect, but it addresses the biggest source of
dependency false positives, namely Browserify and Webpack bundles that
provide their own implementation of the require function.
2016-02-29 16:12:21 -05:00
Ben Newman
3271bb803d Make sure file.data instanceof Buffer. 2016-02-29 16:12:21 -05:00
Ben Newman
7acca944a9 Remove manual stream stub, now that we have meteor-node-stubs. 2016-02-29 16:12:21 -05:00
Ben Newman
4236cdafbf Test with meteor test --full-app instead of meteor test-app. 2016-02-29 15:42:59 -05:00
Tom Coleman
95db365484 Added a message for successful auth transfers 2016-02-29 20:06:20 +11:00
Tom Coleman
59e3a5c1ff Merge pull request #6338 from meteor/release-1.3-change-test-paths-6321
Changes to testing file matching patterns #6321
2016-02-29 11:18:42 +11:00
Tom Coleman
ab5ab15768 Rename test-app -> test and test --full-app
Our old "unit" test mode didn't really enforce "unit-ness" and was perfectly capable of running integration test. So it was confusing to call the two modes unit and integration test modes.

Instead, we call them "test mode" and "full app test mode", run with `meteor test` and `meteor test --full-app`.

The rules for test files were also simplified -- simply *.test[s].* for test mode, and *.app-test[s].* for full app tests. `tests/` directories are simply ignored again.
2016-02-29 11:16:54 +11:00
Tom Coleman
0cee429c7f Add a new file regexp for unit and integration tests
You can now differentiate test files based on their filename.

Also added an exclude for the acceptance-tests folder in all situations.

#6321
2016-02-29 11:11:44 +11:00
Tom Coleman
a22b7e4eff Fix bug where app would restart when you changed a test 2016-02-29 11:11:44 +11:00
Tom Coleman
a168ce9149 Merge pull request #6348 from meteor/release-1.3-tool-changes-for-galaxy
Changes to the tool due to #5787
2016-02-29 11:06:05 +11:00
Tom Coleman
18f112bfc7 Typo, slightly clearer 2016-02-29 11:04:31 +11:00