@@ -90,9 +90,7 @@ class MvcCompileTask extends IncrementalFileTask {
90
90
if ( fileState === 'deleted' ) {
91
91
// @todo delete associated controller, view and styles
92
92
} else {
93
- const collection = this . findSourceCollection ( inputFile ) ;
94
- const parseAsCotroller = controllerRegex . test ( inputFile ) ;
95
- parseAlloyComponent ( view , collection . dir , collection . manifest , parseAsCotroller , restrictionPath ) ;
93
+ this . compileAlloyComponent ( filePath ) ;
96
94
}
97
95
} ) ;
98
96
@@ -123,7 +121,7 @@ class MvcCompileTask extends IncrementalFileTask {
123
121
*/
124
122
compileAlloyComponent ( inputFile ) {
125
123
const collection = this . findSourceCollection ( inputFile ) ;
126
- const parseAsCotroller = controllerRegex . test ( inputFile ) ;
124
+ const parseAsController = controllerRegex . test ( inputFile ) ;
127
125
let relativeComponentPath = inputFile . replace ( collection . dir , '' ) ;
128
126
relativeComponentPath = relativeComponentPath . replace ( new RegExp ( `^${ path . sep } ?(views|controllers)${ path . sep } ?` ) , '' ) ;
129
127
@@ -135,8 +133,8 @@ class MvcCompileTask extends IncrementalFileTask {
135
133
}
136
134
137
135
this . logger . info ( '[' + relativeComponentPath + '] ' + ( collection . manifest ? collection . manifest . id +
138
- ' ' : '' ) + `${ parseAsCotroller ? 'controller' : 'view' } processing...` ) ;
139
- this . parseAlloyComponent ( relativeComponentPath , collection . dir , collection . manifest , parseAsCotroller , this . restrictionPath ) ;
136
+ ' ' : '' ) + `${ parseAsController ? 'controller' : 'view' } processing...` ) ;
137
+ this . parseAlloyComponent ( relativeComponentPath , collection . dir , collection . manifest , parseAsController , this . restrictionPath ) ;
140
138
this . processed [ fullComponentIdentifier ] = true ;
141
139
}
142
140
}
0 commit comments