gruntjs

Unexpected grunt-http error when posting to Atlassian Confluence api

筅森魡賤 提交于 2019-12-12 04:53:17
问题 Attempting to create a wiki page on an Atlassian wiki. I previously was using a python script and this code worked no problem: data = json.dumps({"type":"page", "data":"testData", "title":postTitle,"space":{"key":"EB"}, "body":{"storage":{"value": content,"representation":"storage"}}}) r = requests.post("https://estech.atlassian.net/wiki/rest/api/content/", data=data, headers=headers, auth=(confluenceLogin['username'], confluenceLogin['password'])) Now I'm trying to use the following grunt

How to automatically run a single phpunit test when it is updated?

我与影子孤独终老i 提交于 2019-12-12 04:34:32
问题 I am using Laravel 5.3 and unfortunately when you run gulp tdd , a change to 1 file runs the entire test suite which now takes nearly 2 minutes. With reference to this post, I started using Grunt to run specific tests when specific files are changed. Sample Gruntfile below: Gruntfile.js: var phpunit = 'vendor/bin/phpunit '; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { HomeSrc: { files: [ 'app/Http/**/HomeController.php', 'resources/views/home/**/*.php' ], tasks: [

Running tests with localStorage

狂风中的少年 提交于 2019-12-12 03:48:34
问题 i have followed this tutorial from Codelab and yeoman. When implemented right you are using local storage to store the TodoList. I have problems with setting up with my tests, to test if this works. This is what i've got so far: 'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('yeoTodoApp'), module('LocalStorageModule')); var MainCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller,

Grunt Connect , Nodemon same port issue

别等时光非礼了梦想. 提交于 2019-12-12 03:33:51
问题 I am trying to run angular admin template and node server by grunt and nodemon.All runs well..Problem is when i try to send any request from client-side to server-side its showing 404 error. For both i am using same port which is 2300. If i change the port number of server.js then it returns result..I can not run them by same port. I am sending request http://localhost:2300/test Here is my Gruntfile : // Generated on 2015-01-21 using generator-angular 0.9.2 'use strict'; // # Globbing // for

PhpStorm fail to list grunt tasks

孤者浪人 提交于 2019-12-12 03:26:54
问题 I've been using PhpStorm's grunt task runner for a while now. But after a update to PhpStorm to version 10 it stopped working. I'm getting and error; Failed to list grunt tasks in /js/gruntfile.js: process finished with exit code 3 (a non-zero exit code means an error) Running tasks: /usr/local/lib/node_modules/grunt-cli/bin/grunt, _intellij_grunt_tasks_fetcher Warning: Task "/usr/local/lib/node_modules/grunt-cli/bin/grunt" not found. Use --force to continue Aborted due to warnings. Process

npm install command doing nothing

一个人想着一个人 提交于 2019-12-12 03:03:50
问题 I have a package.json with the following contents: { "name": "useless-app", "version": "1.0.0", "dependencies": {}, "devDependencies": { "grunt": "~0.4.1", "grunt-contrib-copy": "~0.4.0", "grunt-contrib-concat": "~0.2.0", "grunt-contrib-coffee": "~0.6.6", "grunt-contrib-jst": "~0.5.0", "grunt-contrib-uglify": "~0.2.0", "grunt-contrib-compass": "~0.2.0", "grunt-contrib-jshint": "~0.4.3", "grunt-contrib-cssmin": "~0.6.0", "grunt-contrib-connect": "0.3.0", "grunt-contrib-clean": "0.4.0", "grunt

IdleProvider.windowInterrupt is not a function

感情迁移 提交于 2019-12-12 03:01:43
问题 I am trying to get the most basic possible implementation of ng-Idle working in node.js on my devbox. Towards this end, I have taken the minimal sample shown at this link, and have installed it in what was a working minimal installation of node.js , which I implemented using the instructions which I have documented at a file sharing site at this link. All I did to the working minimal node.js app was to go into a minimalist working app, 1.) Tyoe bower install ng-idle in the root folder of the

Combining a task (grunt-bump) to start after a prompt via the grunt-prompt task

a 夏天 提交于 2019-12-12 02:58:08
问题 With Grunt I'm running a task which bumps my version number in my package.json file. But I want to prompt the user which versions he/she want's to update. If it's a normal update you run a minor increment (x.+1.x), and when its a patch or hotfix it should run a (x.x.+1). For this I have 2 grunt tasks: /* * Bump the version number to a new version */ bump: { options: { files: ['package.json'], updateConfigs: [], commit: true, commitMessage: 'Release v<%= pkg.version %>', commitFiles: ['package

Interpolated array in Grunt template is interpreted as a string

吃可爱长大的小学妹 提交于 2019-12-12 02:56:09
问题 Previous title: "Why is Grunt's concat task not using dynamic configuration values?" I am trying to dynamically configure the files that are concatenated by Grunt, and in doing so I came across this issue where the grunt-contrib-concat plugin does not seem to pick up the dynamically set values. At first I thought I was doing something wrong, but after creating my own task and using the same dynamic values everything came out just as intended. So that leaves the question of why is the grunt

Parameters binding in grunt tasks

坚强是说给别人听的谎言 提交于 2019-12-12 02:56:02
问题 I have problem with grunt tasks: watch: { jshint: { files: ['Gruntfile.js', '<%= version %>/src/**/*.js', '<%= version %>/src/*.js'], tasks: ['jshint', 'concat', 'uglify'], options: { livereload: true } } }, I call it in a function grunt.registerTask('server', 'A task that runs server', function(version) { if (arguments.length === 0) { grunt.log.writeln("Please specify Version in arguments (grunt "+this.name+":version)"); } else { grunt.log.writeln(this.name + ", " + version ); grunt.config