grunt-connect

AngularJS with Grunt - Connect to another server

夙愿已清 提交于 2019-12-06 09:04:59
问题 I have created an AngularJS application using grunt, bower and yeoman. I guess the Gruntfile.js has changed after 2014 January (not sure). Here is my gruntfile.js // Generated on 2014-04-03 using generator-angular 0.8.0 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Load grunt tasks automatically require

Grunt Watch repeatedly showing “Warning: must provide pattern”

寵の児 提交于 2019-12-06 02:50:50
问题 I'm having trouble configuring Grunt to watch my project files, rebuild and update a page hosted in a connect server. If I run any of the build tasks and then 'watch' as part of a combined task, then 'watch' seems to get stuck in a loop, endlessly printing the message. Running "watch" task Waiting... Warning: must provide pattern If instead I just run $ grunt watch , it will happily watch my source files and compile/build as appropriate. I think the relevant task configurations are these:

AngularJS with Grunt - Connect to another server

扶醉桌前 提交于 2019-12-04 14:52:22
I have created an AngularJS application using grunt, bower and yeoman. I guess the Gruntfile.js has changed after 2014 January (not sure). Here is my gruntfile.js // Generated on 2014-04-03 using generator-angular 0.8.0 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Load grunt tasks automatically require('load-grunt-tasks')(grunt); // Time how long tasks take. Can help when optimizing build times require(

Grunt Watch repeatedly showing “Warning: must provide pattern”

我怕爱的太早我们不能终老 提交于 2019-12-04 06:20:06
I'm having trouble configuring Grunt to watch my project files, rebuild and update a page hosted in a connect server. If I run any of the build tasks and then 'watch' as part of a combined task, then 'watch' seems to get stuck in a loop, endlessly printing the message. Running "watch" task Waiting... Warning: must provide pattern If instead I just run $ grunt watch , it will happily watch my source files and compile/build as appropriate. I think the relevant task configurations are these: watch: { html: { files: [ '<%= site.partials %>', '<%= site.layouts %>', '<%= site.pages %>' ], tasks: [