@@ -63,6 +63,14 @@ module.exports = function(grunt) {
63
63
} ,
64
64
} ,
65
65
shell : {
66
+ updateAngular : {
67
+ command : "grunt copy:angularSource --angularDest ng-sample/src" ,
68
+ options : {
69
+ execOptions : {
70
+ cwd : '..' ,
71
+ }
72
+ }
73
+ } ,
66
74
localInstallModules : {
67
75
command : "npm install \"<%= nsPackagePath %>\""
68
76
} ,
@@ -90,15 +98,6 @@ module.exports = function(grunt) {
90
98
}
91
99
} ) ;
92
100
93
- grunt . registerTask ( "checkAngular" , function ( ) {
94
- if ( ! grunt . file . exists ( path . join ( angularSrcPath , 'angular2' ) ) ) {
95
- grunt . fail . fatal ( "angular2 path does not exist." ) ;
96
- }
97
- if ( ! grunt . file . exists ( path . join ( angularSrcPath , 'nativescript-angular' ) ) ) {
98
- grunt . fail . fatal ( "nativescript-angular path does not exist." ) ;
99
- }
100
- } ) ;
101
-
102
101
grunt . registerTask ( "app" , [
103
102
"copy:appFiles" ,
104
103
"ts:build" ,
@@ -125,11 +124,6 @@ module.exports = function(grunt) {
125
124
"shell:localInstallModules" ,
126
125
] ) ;
127
126
128
- grunt . registerTask ( "updateAngular" , [
129
- "checkAngular" ,
130
- "copy:angularFiles" ,
131
- ] ) ;
132
-
133
127
grunt . registerTask ( "prepareQuerystringPackage" , function ( ) {
134
128
//The {N} require doesn't look for index.js automatically
135
129
//so we need to declare it as main
@@ -142,7 +136,7 @@ module.exports = function(grunt) {
142
136
143
137
grunt . registerTask ( "prepare" , [
144
138
"updateModules" ,
145
- "updateAngular" ,
139
+ "shell: updateAngular" ,
146
140
"prepareQuerystringPackage" ,
147
141
] ) ;
148
142
0 commit comments