lib/meteor/build.js
function smartJsonWarning(pathToApp) {
  var pathToSmartJSON = path.join(pathToApp, 'smart.json');
  return new Promise(function (resolve, reject) {
    fs.readFile(pathToSmartJSON, { endcoding: 'urf8' }, function (err, data) {
      if (err) {
        // if the file does not exist, then we are ok anyway
        return err.code !== 'ENOENT' ? reject(err) : resolve();
      } else {
        // since the file exists, first print a warning, then resolve ...
        process.stdout.write(chalk.yellow(
          tools.banner([
            'we have detected a smart.json file in ' + pathToApp,
            'since Gagarin no longer supports meteorite, this file will be ignored',
          ].join('\n'), {})
        ));
        process.stdout.write('\n');
        resolve();
      }
    });
  });
}
function smartJsonWarning(pathToApp) {
  var pathToSmartJSON = path.join(pathToApp, 'smart.json');
  return new Promise(function (resolve, reject) {
    fs.readFile(pathToSmartJSON, { endcoding: 'urf8' }, function (err, data) {
      if (err) {
        // if the file does not exist, then we are ok anyway
        return err.code !== 'ENOENT' ? reject(err) : resolve();
      } else {
        // since the file exists, first print a warning, then resolve ...
        process.stdout.write(chalk.yellow(
          tools.banner([
            'we have detected a smart.json file in ' + pathToApp,
            'since Gagarin no longer supports meteorite, this file will be ignored',
          ].join('\n'), {})
        ));
        process.stdout.write('\n');
        resolve();
      }
    });
  });
}
function smartJsonWarning ( pathToApp ) { var pathToSmartJSON = path . join ( pathToApp , 'smart.json' ) ; return new Promise ( function ( resolve , reject ) { fs . readFile ( pathToSmartJSON , { endcoding : 'urf8' } , function ( err , data ) { if ( err ) { // if the file does not exist, then we are ok anyway return err . code !== 'ENOENT' ? reject ( err ) : resolve ( ) ; } else { // since the file exists, first print a warning, then resolve ... process . stdout . write ( chalk . yellow ( tools . banner ( [ 'we have detected a smart.json file in ' + pathToApp , 'since Gagarin no longer supports meteorite, this file will be ignored' , ] . join ( '\n' ) , { } ) ) ) ; process . stdout . write ( '\n' ) ; resolve ( ) ; } } ) ; } ) ; }
Look for "smart.json" file. If there's one, print warning
before resolving.

@param {string} pathToApp
Look for smart . json file . If there s one print warning before resolving .