File tree 2 files changed +25
-2
lines changed
2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ class EmberCliHelperView extends View
87
87
command = atom .config .get (' ember-cli-helper.pathToEmberExecutable' )
88
88
args = [task]
89
89
options =
90
- cwd : atom .project .getPaths ()[0 ] + ' / '
90
+ cwd : atom .project .getPaths ()[0 ] + atom . config . get ( ' ember-cli-helper.emberProjectPath ' )
91
91
stdout = (out )=> @ addLine out
92
92
stderr = (out )=> @ addLine out .fontcolor (' red' )
93
93
exit = (code )=>
@@ -126,7 +126,7 @@ class EmberCliHelperView extends View
126
126
args = [' generate' , query, " type:object" ]
127
127
args .push " coffee:true" if atom .config .get ' ember-cli-helper.generateCoffeescript'
128
128
options =
129
- cwd : atom .project .getPaths ()[0 ]
129
+ cwd : atom .project .getPaths ()[0 ] + atom . config . get ( ' ember-cli-helper.emberProjectPath ' )
130
130
stdout = (out )=> @ addLine out .fontcolor (" orange" )
131
131
exit = (code )-> atom .beep () unless code == 0
132
132
try
Original file line number Diff line number Diff line change @@ -5,17 +5,40 @@ module.exports =
5
5
6
6
config :
7
7
generateCoffeescript :
8
+ title : ' Generate CoffeeScript'
9
+ description : ' Enable to generate CoffeeScript files instead of JavaScript'
8
10
type : ' boolean'
9
11
default : false
10
12
11
13
pathToNodeExecutable :
14
+ title : ' Path to Node Executable'
15
+ description : """
16
+ For the package to work correctly, you need to specify the path to node
17
+ on your computer
18
+ """
12
19
type : ' string'
13
20
default : ' /usr/local/bin/node'
14
21
15
22
pathToEmberExecutable :
23
+ title : ' Path to Ember Executable'
24
+ description : """
25
+ For the package to work correctly, you need to specify the path to the
26
+ global ember executable on your computer
27
+ """
16
28
type : ' string'
17
29
default : ' /usr/local/bin/ember'
18
30
31
+ emberProjectPath :
32
+ title : ' Ember Project Path'
33
+ description : """
34
+ Change only if your Ember project is not in the root of your project,
35
+ i.e. if the Ember project is a subdirectory of the directory that's
36
+ currently open in Atom. Particularly useful with project-manager, where
37
+ you can change settings on a per-project basis.
38
+ """
39
+ type : ' string'
40
+ default : ' /'
41
+
19
42
20
43
activate : (state = {}) ->
21
44
@emberCliHelperView = new EmberCliHelperView (state .emberCliHelperViewState )
You can’t perform that action at this time.
0 commit comments