From 581832d967b1c1aaf9f2e46b635343a71170a87d Mon Sep 17 00:00:00 2001 From: David Glasser Date: Mon, 25 Aug 2014 14:52:01 -0700 Subject: [PATCH] Update notices --- tools/upgraders.js | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/tools/upgraders.js b/tools/upgraders.js index 81297911fb..6c43a11d2b 100644 --- a/tools/upgraders.js +++ b/tools/upgraders.js @@ -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 ', 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 '. Check\n" + +" out the available packages by typing 'meteor search ' or by\n" + +" visiting atmospherejs.com.\n"); + } // How to do package-specific notices: // if (_.has(project.project.getConstraints(), 'accounts-ui')) { // console.log(