updated so that all command executions use local npm packages. ( and added live-server).
This commit is contained in:
		
							parent
							
								
									22c7b5cd25
								
							
						
					
					
						commit
						d0bfed6c98
					
				| @ -57,7 +57,7 @@ gulp.task('help', taskListing.withFilters(function(taskName) { | ||||
| gulp.task('serve-and-sync', ['build-docs'], function (cb) { | ||||
| 
 | ||||
|   // execCommands(['harp server'], {}, cb);
 | ||||
|   execCommands(['npm run harp'], {}, cb); | ||||
|   execCommands(['npm run harp -- server .'], {}, cb); | ||||
| 
 | ||||
|   var browserSync = require('browser-sync').create(); | ||||
|   browserSync.init({ | ||||
| @ -78,7 +78,7 @@ gulp.task('serve-and-sync', ['build-docs'], function (cb) { | ||||
| }); | ||||
| 
 | ||||
| gulp.task('serve-and-watch', function (cb) { | ||||
|   execCommands(['harp server'], {}, cb); | ||||
|   execCommands(['npm run harp -- server .'], {}, cb); | ||||
|   devGuideExamplesWatch(_devguideShredOptions); | ||||
| }); | ||||
| 
 | ||||
| @ -168,8 +168,8 @@ gulp.task('git-changed-examples', ['_shred-devguide-examples'], function(){ | ||||
| }); | ||||
| 
 | ||||
| gulp.task('check-deploy', function() { | ||||
|   return execPromise(['harp compile . ./deploy'], {}).then(function() { | ||||
|     execPromise('live-server', {cwd: './deploy'}); | ||||
|   return execPromise(['npm run harp -- compile . ./deploy'], {}).then(function() { | ||||
|     execPromise('npm run live-server ./deploy'); | ||||
|     return askDeploy(); | ||||
|   }).then(function(shouldDeploy) { | ||||
|     if (shouldDeploy) { | ||||
|  | ||||
| @ -6,7 +6,8 @@ | ||||
|   "main": "index.js", | ||||
|   "scripts": { | ||||
|     "test": "echo \"Error: no test specified\" && exit 1", | ||||
|     "harp": "harp server .", | ||||
|     "harp": "harp", | ||||
|     "live-server": "live-server", | ||||
|     "test-api-builder": "jasmine-node public/api-builder" | ||||
|   }, | ||||
|   "repository": { | ||||
| @ -43,6 +44,7 @@ | ||||
|     "karma": "^0.13.9", | ||||
|     "karma-chrome-launcher": "^0.2.0", | ||||
|     "karma-jasmine": "^0.3.6", | ||||
|     "live-server": "^0.8.1", | ||||
|     "lodash": "^3.10.1", | ||||
|     "marked": "^0.3.5", | ||||
|     "minimatch": "^2.0.10", | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user