@@ -4,8 +4,6 @@ var path = require('path');
4
4
5
5
var ideTemplate = require ( 'ide-template' ) ;
6
6
7
- var webStorm = { } ;
8
-
9
7
/**
10
8
* Using the generator's ./templates/idea/fileTemplates/<javascriptTarget>
11
9
* recursively copy the file templates to the local user's webstorm preferences folder.
@@ -60,65 +58,29 @@ function angularityToolNode(parameters) {
60
58
showConsoleOnStdOut : 'false' ,
61
59
showConsoleOnStdErr : 'false' ,
62
60
synchronizeAfterRun : 'true' ,
63
- exec : angularityExecParam ( parameters ) ,
64
- filter : [
65
- {
61
+ exec : [ {
62
+ name : 'COMMAND' ,
63
+ value : 'angularity.cmd'
64
+ } , {
65
+ name : 'PARAMETERS' ,
66
+ value : parameters
67
+ } , {
68
+ name : 'WORKING_DIRECTORY' ,
69
+ value : '$ProjectFileDir$'
70
+ } ] ,
71
+ filter : [ {
66
72
name : 'NAME' ,
67
73
value : 'File'
68
- } ,
69
- {
74
+ } , {
70
75
name : 'DESCRIPTION' ,
71
76
value : 'Match the standard console output to make error messages clickable.'
72
- } ,
73
- {
77
+ } , {
74
78
name : 'REGEXP' ,
75
79
value : '$FILE_PATH$\\:$LINE$\\:$COLUMN$'
76
- }
77
- ]
80
+ } ]
78
81
} ;
79
82
}
80
83
81
- /**
82
- * Determine the correct path values for the External Tools based on the OS.
83
- * Unix can use the global angularity alias, windows is given absolute paths to the binaries.
84
- * @param parameters
85
- * @returns {* }
86
- */
87
- function angularityExecParam ( parameters ) {
88
-
89
- if ( ideTemplate . util . platform === 'windows' ) {
90
- return [
91
- {
92
- name : 'COMMAND' ,
93
- value : 'C:\\Program Files\\nodejs\\node.exe'
94
- } ,
95
- {
96
- name : 'PARAMETERS' ,
97
- value : '"' + path . resolve ( __dirname , '..' , '..' , '..' , 'bin' , 'cli.js' ) + '" ' + parameters
98
- } ,
99
- {
100
- name : 'WORKING_DIRECTORY' ,
101
- value : '$ProjectFileDir$'
102
- }
103
- ] ;
104
- } else {
105
- return [
106
- {
107
- name : 'COMMAND' ,
108
- value : 'angularity'
109
- } ,
110
- {
111
- name : 'PARAMETERS' ,
112
- value : parameters
113
- } ,
114
- {
115
- name : 'WORKING_DIRECTORY' ,
116
- value : '$ProjectFileDir$'
117
- }
118
- ] ;
119
- }
120
- }
121
-
122
84
module . exports = {
123
85
generateAngularityWebStormTools : generateAngularityWebStormTools ,
124
86
copyFileTemplates : copyFileTemplates
0 commit comments