cheapsteak
4/22/2016 - 7:07 PM

file-manifest-generator.md

(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