Skip to content

Instantly share code, notes, and snippets.

@cheapsteak
Created April 22, 2016 19:07
Show Gist options
  • Select an option

  • Save cheapsteak/b8224bc5da1fa55ebd60d4c7407fbfbc to your computer and use it in GitHub Desktop.

Select an option

Save cheapsteak/b8224bc5da1fa55ebd60d4c7407fbfbc to your computer and use it in GitHub Desktop.
(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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment