├── .gitignore ├── README.md ├── build.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── settings.gradle ├── src ├── main │ ├── java │ │ └── org │ │ │ └── vuejs │ │ │ ├── VueJSFileFactory.java │ │ │ ├── codeInsight │ │ │ ├── VueJSDirectives.java │ │ │ └── attributes │ │ │ │ ├── VueJSAttributeDescriptor.java │ │ │ │ └── VueJSAttributeDescriptorsProvider.java │ │ │ └── lang │ │ │ ├── VueJSFileType.java │ │ │ └── VueJSIcons.java │ └── resources │ │ ├── META-INF │ │ └── plugin.xml │ │ └── icons │ │ ├── VueJS.png │ │ └── VueJSx2.png └── test │ └── java │ └── org │ └── vuejs │ ├── VueJSTestUtil.java │ └── codeInsight │ ├── AttributesTest.java │ └── data │ └── attributes │ ├── standard.after.html │ └── standard.html ├── vuejs-plugin.ipr └── vuejs-plugin.iws /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .idea/ 3 | /out/ 4 | 5 | ## Java.gitignore 6 | 7 | *.class 8 | 9 | # Mobile Tools for Java (J2ME) 10 | .mtj.tmp/ 11 | 12 | # Package Files # 13 | *.jar 14 | *.war 15 | *.ear 16 | 17 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 18 | hs_err_pid* 19 | 20 | 21 | ## Gradle.gitignore 22 | 23 | .gradle 24 | build/ 25 | 26 | # Ignore Gradle GUI config 27 | gradle-app.setting 28 | 29 | # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) 30 | !gradle-wrapper.jar 31 | 32 | # Cache of project 33 | .gradletasknamecache 34 | 35 | gradle.properties 36 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Deprecated 2 | In favor of the [Vue.JS plugin](https://github.com/JetBrains/intellij-plugins/tree/master/vuejs) that comes with IntelliJ now 3 | 4 | # Vue.js Support Plugin 5 | 6 | Vue.js Support for the Intellij Platform (WebStorm, PhpStorm, Rubymine, Intellij, etc) 7 | 8 | # Install 9 | You can install it via Settings -> Plugins -> Browse repositories -> (search for) Vue.js 10 | 11 | Or download it from here and install it manually: 12 | https://plugins.jetbrains.com/plugin/8057?pr=phpStorm 13 | 14 | # Useful tips 15 | ### Highlight and formating for SCSS/SASS/LESS styles in `.vue` files 16 | 17 | To get proper formating you just have to insert `rel="stylesheet/` in the ` 28 | ``` 29 | 30 | # Contributing 31 | This project is still a work in progress. I welcome ideas and additions. My goal is to make it have similar functionality and features as the [angularjs-plugin](https://github.com/JetBrains/intellij-plugins/tree/master/AngularJS). 32 | -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | } 5 | } 6 | 7 | plugins { 8 | id "org.jetbrains.intellij" version "0.0.43" 9 | } 10 | 11 | apply plugin: 'idea' 12 | apply plugin: 'org.jetbrains.intellij' 13 | apply plugin: 'java' 14 | 15 | compileJava { 16 | sourceCompatibility = 1.8 17 | targetCompatibility = 1.8 18 | } 19 | 20 | version = getVersionName() 21 | 22 | intellij { 23 | version '2016.1' 24 | plugins ['JavascriptLanguage'] 25 | pluginName 'Vue.js' 26 | 27 | publish { 28 | pluginId '8057' 29 | username "$JETBRAINS_USERNAME" 30 | password "$JETBRAINS_PASSWORD" 31 | } 32 | } 33 | 34 | test { 35 | testLogging { 36 | exceptionFormat = 'full' 37 | } 38 | } 39 | 40 | repositories { 41 | mavenCentral() 42 | } 43 | 44 | /* 45 | * Gets the version name from the latest Git tag 46 | */ 47 | def getVersionName() { 48 | def stdout = new ByteArrayOutputStream() 49 | try { 50 | exec { 51 | commandLine 'git', 'describe', '--tags' 52 | standardOutput = stdout 53 | } 54 | } catch (ignored) { 55 | return '0.0.0' 56 | } 57 | 58 | def version = stdout.toString().trim() 59 | if (version.startsWith('v')) 60 | version = version.substring(1) 61 | 62 | return version 63 | } 64 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postalservice14/vuejs-plugin/b8d4dbfb68b1fa6d9985f4a8df1f6bbcb3a66033/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Mar 29 12:54:07 PDT 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-bin.zip 7 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # Attempt to set APP_HOME 46 | # Resolve links: $0 may be a link 47 | PRG="$0" 48 | # Need this for relative symlinks. 49 | while [ -h "$PRG" ] ; do 50 | ls=`ls -ld "$PRG"` 51 | link=`expr "$ls" : '.*-> \(.*\)$'` 52 | if expr "$link" : '/.*' > /dev/null; then 53 | PRG="$link" 54 | else 55 | PRG=`dirname "$PRG"`"/$link" 56 | fi 57 | done 58 | SAVED="`pwd`" 59 | cd "`dirname \"$PRG\"`/" >/dev/null 60 | APP_HOME="`pwd -P`" 61 | cd "$SAVED" >/dev/null 62 | 63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 64 | 65 | # Determine the Java command to use to start the JVM. 66 | if [ -n "$JAVA_HOME" ] ; then 67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 68 | # IBM's JDK on AIX uses strange locations for the executables 69 | JAVACMD="$JAVA_HOME/jre/sh/java" 70 | else 71 | JAVACMD="$JAVA_HOME/bin/java" 72 | fi 73 | if [ ! -x "$JAVACMD" ] ; then 74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 75 | 76 | Please set the JAVA_HOME variable in your environment to match the 77 | location of your Java installation." 78 | fi 79 | else 80 | JAVACMD="java" 81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 82 | 83 | Please set the JAVA_HOME variable in your environment to match the 84 | location of your Java installation." 85 | fi 86 | 87 | # Increase the maximum file descriptors if we can. 88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 89 | MAX_FD_LIMIT=`ulimit -H -n` 90 | if [ $? -eq 0 ] ; then 91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 92 | MAX_FD="$MAX_FD_LIMIT" 93 | fi 94 | ulimit -n $MAX_FD 95 | if [ $? -ne 0 ] ; then 96 | warn "Could not set maximum file descriptor limit: $MAX_FD" 97 | fi 98 | else 99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 100 | fi 101 | fi 102 | 103 | # For Darwin, add options to specify how the application appears in the dock 104 | if $darwin; then 105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 106 | fi 107 | 108 | # For Cygwin, switch paths to Windows format before running java 109 | if $cygwin ; then 110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 112 | JAVACMD=`cygpath --unix "$JAVACMD"` 113 | 114 | # We build the pattern for arguments to be converted via cygpath 115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 116 | SEP="" 117 | for dir in $ROOTDIRSRAW ; do 118 | ROOTDIRS="$ROOTDIRS$SEP$dir" 119 | SEP="|" 120 | done 121 | OURCYGPATTERN="(^($ROOTDIRS))" 122 | # Add a user-defined pattern to the cygpath arguments 123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 125 | fi 126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 127 | i=0 128 | for arg in "$@" ; do 129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 131 | 132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 134 | else 135 | eval `echo args$i`="\"$arg\"" 136 | fi 137 | i=$((i+1)) 138 | done 139 | case $i in 140 | (0) set -- ;; 141 | (1) set -- "$args0" ;; 142 | (2) set -- "$args0" "$args1" ;; 143 | (3) set -- "$args0" "$args1" "$args2" ;; 144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 150 | esac 151 | fi 152 | 153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 154 | function splitJvmOpts() { 155 | JVM_OPTS=("$@") 156 | } 157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 159 | 160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 161 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'Vue.js' 2 | -------------------------------------------------------------------------------- /src/main/java/org/vuejs/VueJSFileFactory.java: -------------------------------------------------------------------------------- 1 | package org.vuejs; 2 | 3 | import com.intellij.openapi.fileTypes.FileTypeConsumer; 4 | import com.intellij.openapi.fileTypes.FileTypeFactory; 5 | import org.jetbrains.annotations.NotNull; 6 | import org.vuejs.lang.VueJSFileType; 7 | 8 | public class VueJSFileFactory extends FileTypeFactory { 9 | 10 | @Override 11 | public void createFileTypes(@NotNull FileTypeConsumer consumer) { 12 | consumer.consume(VueJSFileType.INSTANCE); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/org/vuejs/codeInsight/VueJSDirectives.java: -------------------------------------------------------------------------------- 1 | package org.vuejs.codeInsight; 2 | 3 | import java.util.Arrays; 4 | import java.util.List; 5 | 6 | public class VueJSDirectives { 7 | private static final List directives = Arrays.asList( 8 | "v-text", 9 | "v-html", 10 | "v-if", 11 | "v-show", 12 | "v-else", 13 | "v-for", 14 | "v-on", 15 | "v-bind", 16 | "v-model", 17 | "v-ref", 18 | "v-el", 19 | "v-pre", 20 | "v-cloak", 21 | "v-once", 22 | "v-else-if", 23 | ); 24 | 25 | public static List getDirectives() { 26 | return directives; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/org/vuejs/codeInsight/attributes/VueJSAttributeDescriptor.java: -------------------------------------------------------------------------------- 1 | package org.vuejs.codeInsight.attributes; 2 | 3 | import com.intellij.lang.javascript.psi.JSImplicitElementProvider; 4 | import com.intellij.openapi.project.Project; 5 | import com.intellij.psi.PsiElement; 6 | import com.intellij.psi.stubs.StubIndexKey; 7 | import com.intellij.util.ArrayUtil; 8 | import com.intellij.xml.impl.BasicXmlAttributeDescriptor; 9 | import com.intellij.xml.impl.XmlAttributeDescriptorEx; 10 | import org.jetbrains.annotations.NonNls; 11 | import org.jetbrains.annotations.NotNull; 12 | import org.jetbrains.annotations.Nullable; 13 | 14 | public class VueJSAttributeDescriptor extends BasicXmlAttributeDescriptor implements XmlAttributeDescriptorEx { 15 | 16 | private final Project project; 17 | private final String attributeName; 18 | private final StubIndexKey index; 19 | 20 | public VueJSAttributeDescriptor(final Project project, String attributeName, final StubIndexKey index) { 21 | this.project = project; 22 | this.attributeName = attributeName; 23 | this.index = index; 24 | } 25 | 26 | @Nullable 27 | @Override 28 | public String handleTargetRename(@NotNull @NonNls String newTargetName) { 29 | return newTargetName; 30 | } 31 | 32 | @Override 33 | public boolean isRequired() { 34 | return false; 35 | } 36 | 37 | @Override 38 | public boolean hasIdType() { 39 | return false; 40 | } 41 | 42 | @Override 43 | public boolean hasIdRefType() { 44 | return false; 45 | } 46 | 47 | @Override 48 | public boolean isEnumerated() { 49 | return index != null; 50 | } 51 | 52 | @Override 53 | public PsiElement getDeclaration() { 54 | return null; 55 | } 56 | 57 | @Override 58 | public String getName() { 59 | return attributeName; 60 | } 61 | 62 | @Override 63 | public void init(PsiElement element) { 64 | } 65 | 66 | @Override 67 | public Object[] getDependences() { 68 | return ArrayUtil.EMPTY_OBJECT_ARRAY; 69 | } 70 | 71 | @Override 72 | public boolean isFixed() { 73 | return false; 74 | } 75 | 76 | @Override 77 | public String getDefaultValue() { 78 | return null; 79 | } 80 | 81 | @Override 82 | public String[] getEnumeratedValues() { 83 | return ArrayUtil.EMPTY_STRING_ARRAY; 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /src/main/java/org/vuejs/codeInsight/attributes/VueJSAttributeDescriptorsProvider.java: -------------------------------------------------------------------------------- 1 | package org.vuejs.codeInsight.attributes; 2 | 3 | import com.intellij.psi.xml.XmlTag; 4 | import com.intellij.xml.XmlAttributeDescriptor; 5 | import com.intellij.xml.XmlAttributeDescriptorsProvider; 6 | import org.jetbrains.annotations.Nullable; 7 | import org.vuejs.codeInsight.VueJSDirectives; 8 | 9 | import java.util.LinkedHashMap; 10 | import java.util.Map; 11 | 12 | public class VueJSAttributeDescriptorsProvider implements XmlAttributeDescriptorsProvider { 13 | @Override 14 | public XmlAttributeDescriptor[] getAttributeDescriptors(XmlTag context) { 15 | final Map result = new LinkedHashMap<>(); 16 | for (String attributeName : VueJSDirectives.getDirectives()) { 17 | result.put(attributeName, new VueJSAttributeDescriptor(context.getProject(), attributeName, null)); 18 | } 19 | return result.values().toArray(new XmlAttributeDescriptor[result.size()]); 20 | } 21 | 22 | @Nullable 23 | @Override 24 | public XmlAttributeDescriptor getAttributeDescriptor(String attributeName, XmlTag context) { 25 | if (VueJSDirectives.getDirectives().contains(attributeName)) { 26 | return new VueJSAttributeDescriptor(context.getProject(), attributeName, null); 27 | } 28 | 29 | return null; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/org/vuejs/lang/VueJSFileType.java: -------------------------------------------------------------------------------- 1 | package org.vuejs.lang; 2 | 3 | import com.intellij.lang.html.HTMLLanguage; 4 | import com.intellij.openapi.fileTypes.LanguageFileType; 5 | import org.jetbrains.annotations.NotNull; 6 | import org.jetbrains.annotations.Nullable; 7 | 8 | import javax.swing.*; 9 | 10 | public class VueJSFileType extends LanguageFileType { 11 | 12 | public static final VueJSFileType INSTANCE = new VueJSFileType(); 13 | 14 | private VueJSFileType() { 15 | super(HTMLLanguage.INSTANCE); 16 | } 17 | 18 | @NotNull 19 | @Override 20 | public String getName() { 21 | return "Vue.js file"; 22 | } 23 | 24 | @NotNull 25 | @Override 26 | public String getDescription() { 27 | return "Vue.js Template"; 28 | } 29 | 30 | @NotNull 31 | @Override 32 | public String getDefaultExtension() { 33 | return "vue"; 34 | } 35 | 36 | @Nullable 37 | @Override 38 | public Icon getIcon() { 39 | return VueJSIcons.FILE; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/org/vuejs/lang/VueJSIcons.java: -------------------------------------------------------------------------------- 1 | package org.vuejs.lang; 2 | 3 | import com.intellij.openapi.util.IconLoader; 4 | 5 | import javax.swing.*; 6 | 7 | class VueJSIcons { 8 | static final Icon FILE = IconLoader.getIcon("/icons/VueJS.png"); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/resources/META-INF/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | org.vuejs 3 | Vue.js 4 | Support for Vue.js 5 | 1.0.1 6 | John Kelly 7 | 8 | 10 |
11 |
1.1.0
12 |
Fixed autocompletion for real. Increased *.vue file recognition. Fixed plugin loading issues. 13 |
1.0.1
14 |
Fixed autocompletion. Added very limited *.vue file recognition. 15 |
1.0.0
16 |
Basic v attribute autocompletion 17 |
18 | 19 | ]]> 20 |
21 | 22 | 23 | 24 | JavaScript 25 | com.intellij.modules.lang 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 |
-------------------------------------------------------------------------------- /src/main/resources/icons/VueJS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postalservice14/vuejs-plugin/b8d4dbfb68b1fa6d9985f4a8df1f6bbcb3a66033/src/main/resources/icons/VueJS.png -------------------------------------------------------------------------------- /src/main/resources/icons/VueJSx2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/postalservice14/vuejs-plugin/b8d4dbfb68b1fa6d9985f4a8df1f6bbcb3a66033/src/main/resources/icons/VueJSx2.png -------------------------------------------------------------------------------- /src/test/java/org/vuejs/VueJSTestUtil.java: -------------------------------------------------------------------------------- 1 | package org.vuejs; 2 | 3 | import com.intellij.openapi.application.PathManager; 4 | 5 | public class VueJSTestUtil { 6 | public static String getBaseTestDataPath(Class clazz) { 7 | return PathManager.getJarPathForClass(clazz) + "/" + clazz.getPackage().getName().replace('.', '/') + "/data/"; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/test/java/org/vuejs/codeInsight/AttributesTest.java: -------------------------------------------------------------------------------- 1 | package org.vuejs.codeInsight; 2 | 3 | import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase; 4 | import org.vuejs.VueJSTestUtil; 5 | 6 | public class AttributesTest extends LightPlatformCodeInsightFixtureTestCase { 7 | @Override 8 | protected String getTestDataPath() { 9 | return VueJSTestUtil.getBaseTestDataPath(getClass()) + "attributes"; 10 | } 11 | 12 | @Override 13 | protected boolean isWriteActionRequired() { 14 | return getTestName(true).contains("Completion"); 15 | } 16 | 17 | public void testStandardAttributesCompletion() { 18 | myFixture.testCompletion("standard.html", "standard.after.html"); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/test/java/org/vuejs/codeInsight/data/attributes/standard.after.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
9 | -------------------------------------------------------------------------------- /src/test/java/org/vuejs/codeInsight/data/attributes/standard.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | -------------------------------------------------------------------------------- /vuejs-plugin.ipr: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 87 | 88 | 89 | 1.6 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /vuejs-plugin.iws: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 35 | 36 | 50 | 51 | 52 | 53 | 54 | 55 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 95 | 96 | 97 | 111 | 112 | 113 | 129 | 130 | 131 | 132 | 146 | 147 | 148 | 151 | 152 | 153 | 154 | localhost 155 | 5050 156 | 157 | 158 | 159 | 160 | 173 | 174 | 175 | 176 | 177 | 178 | 204 | 205 | 206 | 207 | 208 | --------------------------------------------------------------------------------