@@ -261,49 +261,6 @@ module.exports = function (grunt) {
261261 }
262262 } ) ;
263263
264- grunt . registerTask ( 'updateFixtures' , 'updates package and bower fixtures' , function ( target ) {
265- var genVer = require ( './package.json' ) . version ;
266- var dest = __dirname + ( ( target === 'deps' ) ? '/angular-fullstack-deps/' : '/test/fixtures/' ) ;
267- var appName = ( target === 'deps' ) ? 'angular-fullstack-deps' : 'tempApp' ;
268-
269- var processJson = function ( s , d ) {
270- // read file, strip all ejs conditionals, and parse as json
271- var json = JSON . parse ( fs . readFileSync ( path . resolve ( s ) , 'utf8' ) . replace ( / < % ( .* ) % > / g, '' ) ) ;
272- // set properties
273- json . name = appName , json . version = genVer ;
274- if ( target === 'deps' ) { json . private = false ; }
275- // stringify json and write it to the destination
276- fs . writeFileSync ( path . resolve ( d ) , JSON . stringify ( json , null , 2 ) ) ;
277- } ;
278-
279- processJson ( 'templates/app/_package.json' , dest + 'package.json' ) ;
280- processJson ( 'templates/app/_bower.json' , dest + 'bower.json' ) ;
281- } ) ;
282-
283- grunt . registerTask ( 'installFixtures' , 'install package and bower fixtures' , function ( ) {
284- var done = this . async ( ) ;
285-
286- shell . cd ( 'test/fixtures' ) ;
287- grunt . log . ok ( 'installing npm dependencies for generated app' ) ;
288- child_process . exec ( 'npm install --quiet' , { cwd : '../fixtures' } , function ( error , stdout , stderr ) {
289-
290- grunt . log . ok ( 'installing bower dependencies for generated app' ) ;
291- child_process . exec ( 'bower install' , { cwd : '../fixtures' } , function ( error , stdout , stderr ) {
292-
293- if ( ! process . env . SAUCE_USERNAME ) {
294- grunt . log . ok ( 'running npm run-script update-webdriver' ) ;
295- child_process . exec ( 'npm run-script update-webdriver' , function ( ) {
296- shell . cd ( '../../' ) ;
297- done ( ) ;
298- } ) ;
299- } else {
300- shell . cd ( '../../' ) ;
301- done ( ) ;
302- }
303- } )
304- } ) ;
305- } ) ;
306-
307264 grunt . registerTask ( 'test' , function ( target , option ) {
308265 if ( target === 'fast' ) {
309266 grunt . task . run ( [
0 commit comments