
/**
 * 
 * @param  {[type]} scope [description]
 * @return {[type]}       [description]
 */
module.exports = function dataForPackageJSON (scope) {

	var sails = scope.sails;

	// Override sails version temporarily
	var sailsVersionDependency = '~' + scope.sailsPackageJSON.version;
	sailsVersionDependency = 'git://github.com/balderdashy/sails.git#v0.10';

	return {
		name: scope.appName,
		'private': true,
		version: '0.0.0',
		description: 'a Sails application',
		dependencies: {
			'sails'			: sailsVersionDependency,
			'sails-disk'	: scope.sailsPackageJSON.dependencies['sails-disk'],
			'ejs'			: scope.sailsPackageJSON.dependencies['ejs'],
			'grunt'			: scope.sailsPackageJSON.dependencies['grunt']
		},
		scripts: {
			// TODO: Include this later when we have "sails test" ready.
			// test: './node_modules/mocha/bin/mocha -b',
			start: 'node app.js',
			debug: 'node debug app.js'
		},
		main: 'app.js',
		repository: '',
		author: scope.author,
		license: ''
	};
};

@@ -147,31 +147,71 @@
 %7B%0A%0A%09
-var sails = scope.sails
+scope.sailsPackageJSON = %7B version: '?.?.?', dependencies: %7B%7D %7D
 ;%0A%0A%09

Allow for running with bin/index by stubbing sailsPackageJSON