Skip to content

Instantly share code, notes, and snippets.

@terwanerik
Created April 16, 2018 12:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terwanerik/a2d64292578091931a4fdcaa3d6e159b to your computer and use it in GitHub Desktop.
Save terwanerik/a2d64292578091931a4fdcaa3d6e159b to your computer and use it in GitHub Desktop.
Vue component file template for PHPStorm/WebStorm/IntelliJ
#set( $regex = "([a-z])([A-Z]+)")
#set( $replacement = "$1-$2")
#set( $COMPONENT_NAME_KEBAB = $COMPONENT_NAME.replaceAll($regex, $replacement).toLowerCase())
<template>
<div class="$COMPONENT_NAME">
#[[$END$]]#
</div>
</template>
<script type="text/babel">
export default {
name: '${COMPONENT_NAME_KEBAB}'
}
</script>
<style>
.$COMPONENT_NAME {
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment