Merge branch 'release-0.9.0' of https://github.com/meteor/meteor into release-0.9.0

This commit is contained in:
Maria Pacana
2014-08-25 15:53:35 -07:00

View File

@@ -23,17 +23,31 @@ var maybePrintNoticeHeader = function () {
printedNoticeHeaderThisProcess = true;
};
// We don't have any upgraders now, but this is an example of how to write
// some. (It probably makes sense to extract "print this message" or "print
// this message if a package is directly used" into helpers.)
var upgradersByName = {
"notices-for-0.9.0": function () {
maybePrintNoticeHeader();
console.log(
"0.9.0: Now your app can use packages from the Meteor Package Server!\n" +
" If you were previously using Atmosphere packages with mrt,\n" +
" run 'mrt migrate-app' to start using the same packages in our\n" +
" new system.");
if (fs.existsSync(path.join(project.project.rootDir, 'smart.json'))) {
// Meteorite apps:
console.log(
"0.9.0: Welcome to the new Meteor package system! You can now add any Meteor\n" +
" package to your app (from more than 1800 packages available on the\n" +
" Meteor Package Server) just by typing 'meteor add <packagename>', no\n" +
" Meteorite required.\n" +
"\n" +
" It looks like you have been using Meteorite with this project. To\n" +
" migrate your project automatically to the new system:\n" +
" (1) upgrade your Meteorite with 'npm install -g meteorite', then\n" +
" (2) run 'mrt migrate-app' inside the project.\n" +
" Having done this, you no longer need 'mrt' and can just use 'meteor'.\n");
} else {
// Non-Meteorite apps:
console.log(
"0.9.0: Welcome to the new Meteor package system! You can now add any Meteor\n" +
" package to your app (from more than 1800 packages available on the\n" +
" Meteor Package Server) just by typing 'meteor add <packagename>'. Check\n" +
" out the available packages by typing 'meteor search <term>' or by\n" +
" visiting atmospherejs.com.\n");
}
// How to do package-specific notices:
// if (_.has(project.project.getConstraints(), 'accounts-ui')) {
// console.log(