Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
vue template create
# brew install gnu-sed
name=`echo -n "${var1}" | gsed -e 's/-/ /g' -e 's/\b\(.\)/\u\1/g' -e 's/ //g' `
rm -rf $PWD/$name.vue
rm -rf $PWD/$name.scss
echo '<template>
<div class="'$1'">
export default {
<style lang="scss" scoped>
@import "./'${name}'.scss";
' >> $PWD/$name.vue
echo '.'$1' {
}' >> $PWD/$name.scss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment