Last active
March 24, 2017 08:20
-
-
Save fracz/dfe3ad75b3b9c04e3481a2f296a18115 to your computer and use it in GitHub Desktop.
Coffeescript Angular templates for IntelliJ IDEA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template name="aw" value="@org.springframework.beans.factory.annotation.Autowired private $CLASS_NAME$ $FIELD_NAME$;" description="Adds @Autowired field" toReformat="true" toShortenFQNames="true"> | |
<variable name="CLASS_NAME" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="FIELD_NAME" expression="" defaultValue="decapitalize(CLASS_NAME)" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_DECLARATION" value="true" /> | |
</context> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template name="cl" value="console.log($END$);" description="console.log" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="CoffeeScript" value="true" /> | |
<option name="JAVA_SCRIPT" value="true" /> | |
<option name="TypeScript" value="true" /> | |
</context> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template name="comp" value="angular.module('ewida').component '$COMPONENT_NAME$', templateUrl: '$PATH$$FILENAME$.html' controller: class constructor: () -> $onInit: => $END$ " description="New component" toReformat="true" toShortenFQNames="true"> | |
<variable name="COMPONENT_NAME" expression="" defaultValue="decapitalize(camelCase(groovyScript("_1.replaceAll(\"-\",\"_\")", fileNameWithoutExtension())))" alwaysStopAt="false" /> | |
<variable name="PATH" expression="" defaultValue="groovyScript("_editor.getVirtualFile().getPath().replace(_editor.getProject().getBaseDir().getPath(), \"\").replace(_editor.getVirtualFile().getName(), \"\").replace(\"/src/EWIDA/Frontend/\", \"\")")" alwaysStopAt="false" /> | |
<variable name="FILENAME" expression="" defaultValue="groovyScript("_1.replaceAll(\"_\",\"-\")", snakeCase(decapitalize(COMPONENT_NAME))" alwaysStopAt="false" /> | |
<context> | |
<option name="CoffeeScript" value="true" /> | |
</context> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment