gruntjs

Is there a grunt plugin that can download a directory from ftp?

谁说我不能喝 提交于 2020-01-14 03:39:05
问题 I need to automate a task (via grunt) that downloads contents of one folder on a ftp server, and then uploads to another (folder or server - doesn't matter, both are plausable). While there are several great plugins for deploying to ftp (doing the upload part), like grunt-ftpush, grunt-ftp-deploy, grunt-ftp-upload and grunt-ftpscript, I haven't been able to find one which performs the download part. There a node module like https://nodejsmodules.org/pkg/ftp-get, but nothing for grunt. 回答1:

grunt-init template conditional prompts

混江龙づ霸主 提交于 2020-01-14 03:31:07
问题 I'm creating a new grunt-init template for my project and was wondering if there is a way to do conditional prompts based on the answers given to previous prompts. My main goal is to be able to use the Github API to create an issue when I create a new module in my project. After asking for the module information, I would ask if a Github issue should be created. If yes, then ask for information like assignee, milestone, labels. If no, I don't care about any of those features. Right now, I can

Different SASS/Coffeescript Variable Values Based on Build

我是研究僧i 提交于 2020-01-13 17:59:52
问题 I am trying to create a build system for a front-end framework that will create different paths in SASS (and possibly Coffeescript) based on where I am deploying to. So for example, I might have an image file I am referencing in my SASS locally in ../images/image.png , and this works fine in my local environment. However, my client has a very locked down environment that has to be done in a different way (getting their images from a CDN). So their image path might look like ~Some_service_call

Different SASS/Coffeescript Variable Values Based on Build

岁酱吖の 提交于 2020-01-13 17:58:02
问题 I am trying to create a build system for a front-end framework that will create different paths in SASS (and possibly Coffeescript) based on where I am deploying to. So for example, I might have an image file I am referencing in my SASS locally in ../images/image.png , and this works fine in my local environment. However, my client has a very locked down environment that has to be done in a different way (getting their images from a CDN). So their image path might look like ~Some_service_call

Yeoman - task “requirejs” not found

柔情痞子 提交于 2020-01-13 16:03:54
问题 I'm having problems with yeoman, specifically, when I try to run grunt, it fails on the requirejs, stating simply that "The task 'requirejs' doesn't exist". That is really strange, since in my gruntfile I have the options definition for requirejs, and I also have it installed in the package.json file. Do you know what could be the problem? Thank you! // Generated on 2013-03-14 using generator-webapp 0.1.5 "use strict"; var lrSnippet = require("grunt-contrib-livereload/lib/utils")

Yeoman - task “requirejs” not found

那年仲夏 提交于 2020-01-13 16:02:28
问题 I'm having problems with yeoman, specifically, when I try to run grunt, it fails on the requirejs, stating simply that "The task 'requirejs' doesn't exist". That is really strange, since in my gruntfile I have the options definition for requirejs, and I also have it installed in the package.json file. Do you know what could be the problem? Thank you! // Generated on 2013-03-14 using generator-webapp 0.1.5 "use strict"; var lrSnippet = require("grunt-contrib-livereload/lib/utils")

Module not found error in AngularJS unit test

随声附和 提交于 2020-01-13 13:52:44
问题 I'm trying a very simple test with Karma/Jasmine, to unit test my AngularJS app. This seems to work beforeEach( module('myApp') ); it('should blah', function () { expect(true).toBe(true); }); while this doesnt beforeEach( function () { module('myApp') } ); it('should blah', function () { expect(true).toBe(true); }); I want to be able to do other stuff beforeEach test suite, but it's not giving me any meaningful errors to be able to debug it, the only one I see is TypeError: 'undefined' is not

Module not found error in AngularJS unit test

匆匆过客 提交于 2020-01-13 13:52:25
问题 I'm trying a very simple test with Karma/Jasmine, to unit test my AngularJS app. This seems to work beforeEach( module('myApp') ); it('should blah', function () { expect(true).toBe(true); }); while this doesnt beforeEach( function () { module('myApp') } ); it('should blah', function () { expect(true).toBe(true); }); I want to be able to do other stuff beforeEach test suite, but it's not giving me any meaningful errors to be able to debug it, the only one I see is TypeError: 'undefined' is not

grunt karma testing on vagrant when host changes sources grunt/karma doesn't detect it

谁说胖子不能爱 提交于 2020-01-13 10:15:29
问题 This took me ages to find out but can't seem to find a solution for this one. Using vagrant I run a Fedora 20 guest that runs grunt/karma. The sources I edit on my host but when I save grunt isn't detecting the change so no tests are being done. Figured it was a configuration problem so tried many combinations of things here without success. Finally I opened a second ssh to the guest vagrang ssh and changed the file in the other ssh terminal echo " " >> app/js/app.js and see that now grunt

grunt karma testing on vagrant when host changes sources grunt/karma doesn't detect it

怎甘沉沦 提交于 2020-01-13 10:14:52
问题 This took me ages to find out but can't seem to find a solution for this one. Using vagrant I run a Fedora 20 guest that runs grunt/karma. The sources I edit on my host but when I save grunt isn't detecting the change so no tests are being done. Figured it was a configuration problem so tried many combinations of things here without success. Finally I opened a second ssh to the guest vagrang ssh and changed the file in the other ssh terminal echo " " >> app/js/app.js and see that now grunt