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