Skip to content

Instantly share code, notes, and snippets.

@domachine
Created May 30, 2016 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domachine/479ca77a5e3fcad41378a6a0c1d795e2 to your computer and use it in GitHub Desktop.
Save domachine/479ca77a5e3fcad41378a6a0c1d795e2 to your computer and use it in GitHub Desktop.
webdesignio Component building
#!/bin/bash
for component in src/components/*; do
echo $component
browserify \
--extension .jsx \
-t babelify \
-t rollupify \
-s $(basename $(basename $component .js) .jsx) \
-o components/$(basename $(basename $component .js) .jsx).js \
${component}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment