src/build.js
function getProjectName(dir) {
    return fs.readFileAsync(path.join(dir, 'package.json'))
        .then(JSON.parse & _.name)
        .catchThrow(new Error('Failed to parse package.json from the project'));
}
function getProjectName(dir) {
    return fs.readFileAsync(path.join(dir, 'package.json'))
        .then(JSON.parse & _.name)
        .catchThrow(new Error('Failed to parse package.json from the project'));
}
function getProjectName ( dir ) { return fs . readFileAsync ( path . join ( dir , 'package.json' ) ) . then ( JSON . parse & _ . name ) . catchThrow ( new Error ( 'Failed to parse package.json from the project' ) ) ; }
Opens package.json and extrats its contents. Returns a promise containing
the file list to be zipped and the package.json content parsed

@param {String} dir
@return {Promise}
Opens package . json and extrats its contents . Returns a promise containing the file list to be zipped and the package . json content parsed