gruntjs

Protractor 0.16.1 e2e AngularJS - Starting selenium standalone server… events.js:72 Error: spawn ENOENT

别说谁变了你拦得住时间么 提交于 2019-12-19 07:17:31
问题 Attempted Project: https://github.com/yearofmoo/angularjs-seed-repo Environment: Windows 7 64-bit NodeJS v 0.10.24 Protractor v 0.16.1 grunt v0.4.2 grunt-cli v0.1.11 Notes: For selenium, install_selenium_standalone has been replaced by webdriver-manager binary around 12/2/13 according to [Julie's post][1]. This seems to be related to the issue. Also, git must be installed in the project directory and npm install must be run using Git Bash in Windows. Error in Git Bash: $ grunt test:e2e -

How to pass in package.json array to grunt.js

こ雲淡風輕ζ 提交于 2019-12-19 05:19:18
问题 is there a way to pass in an array to grunt.js from the package.json file? I've tried a few different ways and none of them seem to work. I currently have: /*global module:false*/ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: '<json:package.json>', lint: { files: '<%= pkg.lint.join(", ") %>' } // Default task 'lint qunit concat min' grunt.registerTask('default', 'lint'); }; package.json { "lint": [ "grunt.js", "test.js" ] } The only solution that I have

Grunt imagemin running but not minifying

眉间皱痕 提交于 2019-12-19 04:39:10
问题 Image-min is running normally but i get 0 images minified why? after run the code on my terminal: $ grunt imagemin Running "imagemin:dist" (imagemin) task Minified 0 images (saved 0 B) Done, without errors. I am not understand, I tried loads different images and still not compressing. imagemin part on my grunt: //Image min =============================== var imagemin; config.imagemin = imagemin = {}; imagemin.dist = { options: { optimizationLevel: 5, progressive: true, }, dynamic: { files: [{

grunt-express-server with contrib-watch

南笙酒味 提交于 2019-12-19 04:04:37
问题 I am trying to use both grunt-express-server and grunt-contrib-watch however, as soon as my express server starts, it no longer seems to do any watching or reloading. I have the server setup to spawn in the background. My project is here: https://github.com/RyanHirsch/firem Here is my Gruntfile.js module.exports = function(grunt) { require('load-grunt-tasks')(grunt); // Project configuration. grunt.initConfig({ watch: { options: { livereload: true, }, express: { files: [ 'index.html', 'server

Codeigniter and React.JS setup

点点圈 提交于 2019-12-19 03:32:44
问题 Im planning to have Codeigniter and ReactJS for my new project, I need to know how to setup the project folders and the build process for the .jsx files to be .js and then all the .js files to be concatenated and minified to be min.js I'm thinking of using GruntJS 回答1: Try Gulp instead I might suggest you use gulp instead, it's much more beginner friendly IMO. If I was setting up such a project I might start with a folder structure like this, and install my node_modules. I quite like to use

Grunt server does not use virtual host name for my app..vhost and httpd are set up but grunt is not using them

好久不见. 提交于 2019-12-19 03:17:17
问题 So I am trying to setup my app with a name rather than using 127 0 0 1. Every single time I run grunt, my address is http://127.0.0.1:9000/#/ ... I've tried many things and nothing is working...I always get redirected to that place. Here are my files: httpd.conf <VirtualHost *:80> DocumentRoot "/Users/myusername/Sites/MyApp/app" ServerName myapp.dev <Directory "/Users/myusername/Sites/MyApp/app"> Options FollowSymLinks MultiViews Indexes AllowOverride All Order allow,deny Deny from none Allow

Grunt cssmin rebasing a relative URI?

大城市里の小女人 提交于 2019-12-19 02:39:40
问题 I'm currently setting up grunt-usemin for our project but I'm running in a small issue with the cssmin task. Our project depends on a few external libraries, some which bring a long some extra assets (like images or fonts). The problem is these libraries do not have the same folder structure. This is an example of the different folder structures lib |--lib1 | |--style1.css | +--image1.png +--lib2 |--styles | +--style2.css +--images +--image2.png In the index.html all the stylesheets are

Grunt - Watch a file and SFTP when it's changed

假如想象 提交于 2019-12-19 02:34:31
问题 I'm trying to automatically upload a .css file, when it's compiled from Sass. This is what I've got in my Gruntfile.js : module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { coffee: { files: ['**/*.coffee'], tasks: ['coffee'] }, scripts: { files: ['**/*.scss'], tasks: ['compass'] }, sftp: { files: ['**/*.css'], tasks: ['sftp-deploy'] } }, coffee: { compile: { files: { 'testing.js': 'testing.coffee' } } }, compass: {

Grunt Command Line Parameters

跟風遠走 提交于 2019-12-18 18:41:22
问题 I have a Grunt build file. My build file has a task that looks like the following: myTask: { options: { configFile: "config/default.js", args: { } }, dev: { configFile: 'config/local.js', options: { args: {} }, }, test: { configFile: 'config/remote.js', options: { args: {} } } } ... grunt.registerTask('customTask', ['myTask:dev']); grunt.registerTask('customTask-Test', ['myTask:test']); Currently, I can run the following from the command line: > grunt customTask Everything works fine. However

Grunt task(s) to minify single HTML file with CSS and Javascript

元气小坏坏 提交于 2019-12-18 16:49:40
问题 I'm doing a login page which I want to be as lightweight as possible for the quickest possible loading time. I have a single dependency (a configuration file) and everything else is coded on a single html file, called index.html . Although I have no problem in minifying JS, HTML and CSS seperately, e.g, in their respective .js, .html and .css files, I can't seem to find a way to minify a single html file which contains the 3 different aspects. For the HTML I'm using grunt-contrib-htmlmin but