Skip to content

Commit d0d3d6a

Browse files
committed
build: make the AngularJS plugin an optional dependency
This plugin should not force the installation of AngularJS. If it is installed we'll provide completion items, if it isn't nothing will be added to the completion popup.
1 parent eef4133 commit d0d3d6a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<idea-plugin>
2+
<extensions defaultExtensionNs="com.github.lppedd.idea-conventional-commit">
3+
<commitTypeProvider implementation="com.github.lppedd.cc.angular2.Angular2CommitTypeProvider" />
4+
<commitScopeProvider implementation="com.github.lppedd.cc.angular2.Angular2CommitScopeProvider" />
5+
</extensions>
6+
</idea-plugin>

src/main/resources/META-INF/plugin.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
</vendor>
1010

1111
<depends>com.intellij.modules.platform</depends>
12-
<depends>AngularJS</depends>
1312
<depends>com.github.lppedd.idea-conventional-commit</depends>
14-
15-
<extensions defaultExtensionNs="com.github.lppedd.idea-conventional-commit">
16-
<commitTypeProvider implementation="com.github.lppedd.cc.angular2.Angular2CommitTypeProvider" />
17-
<commitScopeProvider implementation="com.github.lppedd.cc.angular2.Angular2CommitScopeProvider" />
18-
</extensions>
13+
<depends optional="true" config-file="angular_js.xml">AngularJS</depends>
1914
</idea-plugin>

0 commit comments

Comments
 (0)