(echo 'module.exports = { files: [';
# find all files recursively
find . |
# exclude junk/system files
grep -v '.DS_Store$' |
# remove leading ./ and wrap the rest of the string in quotes, end with comma
sed -e 's/\.\///g' -e 's/\(.*\)/"\1",/g';
# close the object and export output to a file
echo ']}';) >> manifest.js