gruntjs

requires a peer of grunt@>=0.4.0

自闭症网瘾萝莉.ら 提交于 2019-12-05 01:22:08
Why do I get the error below? My grunt version is > v0.4.0 npm install grunt-contrib-concat --save-dev +-- UNMET PEER DEPENDENCY grunt@>=0.4.0 Error messages: ..Projects\Hartz\Hartz>npm install grunt-contrib-concat --save-dev Hartz@1.0.0 C:..\Projects\Hartz\Hartz +-- UNMET PEER DEPENDENCY grunt@>=0.4.0 `-- grunt-contrib-concat@1.0.1 npm WARN grunt-contrib-jshint@1.0.0 requires a peer of grunt@>=0.4.0 but none was installed. npm WARN grunt-contrib-concat@1.0.1 requires a peer of grunt@>=0.4.0 but none was installed. npm WARN Hartz@1.0.0 No repository field. grunt -V grunt-cli v1.2.0 grunt v1.0

Error generating source map - grunt and sass configuration

北慕城南 提交于 2019-12-05 01:16:03
问题 I am trying to use sass with grunt. I have installed ruby, sass and grunt in my path. The versions are, node: 0.10.20 npm: 1.3.11 grunt-cli: 0.1.13 grunt: 0.4.5 sass: 3.4.4 my package json is, "private": true, "devDependencies": { "express": "4.x", "grunt": "~0.4.1", "grunt-contrib-sass": "~0.3.0", "grunt-contrib-watch": "~0.4.4" } my grunt file is, module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), sass: { dist: { files: { 'style/style.css' :

Getting grunt karma to run one unit test

…衆ロ難τιáo~ 提交于 2019-12-05 01:12:01
I was wondering if anyone has got grunt karma to run just one spec that is changed on watch. This is my config below. The problem is that the line grunt.config('karma.unit.options.files', filepath); doesn't seem to be doing anything as all the specs still get run however foo does get output before the karma:unit:run gets fired. grunt.initConfig({ karma: { unit: { configFile: 'karma.conf.js', background: true, singleRun: false, options: { files: allFilesArray } } }, watch: { options: { spawn: false, livereload: true }, karma: { files: ['js/spec/**/*.spec.js', 'js/src/**/*.js'], tasks: ['karma

grunt-protractor-coverage 'no coverage object in the browser'

筅森魡賤 提交于 2019-12-05 00:44:30
问题 I have been running into a problem with grunt protractor coverage, and it seems to be an open issue. Others had this problem here ( https://github.com/r3b/grunt-protractor-coverage/issues/10 ), and the issue was closed, but not really resolved. I went ahead and reproduced the issue on my open source project https://github.com/peterhendrick/openSource. It's a mean.js template application and I've added grunt-protractor-coverage and it's dependencies. When I run the gruntfile, everything seems

Trying to set up Grunt to automate some testing, testing works fine in the browser but not at the command line

喜夏-厌秋 提交于 2019-12-05 00:35:53
问题 I'm currently trying to incorporate GruntJS with a few plugins (PhantomJS Qunit and Connect plugins). However, setting up a simple test is throwing me errors and I can't find the solution despite a few days of searching. I'm using a local web server (MAMP) and the website is running on a CMS. Running the tests by accessing the test template in a browser works fine, but when trying to access the same tools via the command line using sudo grunt test PhantomJS return an odd error: Running "qunit

How do we set a target in a grunt cssmin task?

筅森魡賤 提交于 2019-12-05 00:31:54
问题 I am trying out cssmin for Grunt According to the docs targets can be defined "according to the grunt Configuring tasks guide." When I create a cssmin task using that pattern, like: cssmin: { my_target: { minify: { src: 'path-to/default.css', dest: 'path-to/default.min.css' } } } the minified file is not created. If I remove the target level it works as expected. Do I do something wrong here? or are there other options than cssmin (In my research I picked this as everybody was pointing to it)

Why does Yeoman build without glyphicons?

独自空忆成欢 提交于 2019-12-05 00:16:32
问题 I'm working on a webapp generator and after running grunt I got a functional app which display fonts correctly. However, when I check in the dist/ directory I don't get any fonts files. The docs state that grunt command build the application for deployment , but the dist/ directory isn't autonomous. Gruntfile.js config My copy:dist task is as follow: dist: { files: [{ expand: true, dot: true, cwd: '<%= yeoman.app %>', dest: '<%= yeoman.dist %>', src: [ '*.{ico,png,txt}', '.htaccess', 'images/

'grunt' command doesn't do anything

不羁岁月 提交于 2019-12-05 00:12:47
I'm following the grunt getting started guide for my new app, but I'm having some trouble. This is my Gruntfile.js module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: {, build: { src: 'js/*.js', dest: 'build/*.min.js' } } }); // Load the plugin that provides the "uglify" task. grunt.loadNpmTasks('grunt-contrib-uglify'); // Default task(s). grunt.registerTask('default', ['uglify']); }; This is my package.json { "name": "My App", "version": "0.0.0", "description": "", "author": "", "license": "N/A", "devDependencies":

How do I get a grunt task working with a Cloudbees Jenkins build

社会主义新天地 提交于 2019-12-04 23:47:01
问题 I'm trying to get a Jenkins build up and running on Cloudbees. I've successfully gotten NodeJs installed and my source pulled from my BitBucket repository. I am trying to run my grunt task to minify and concatenate my JS and CSS files before deploying. However, I am not able to run the grunt program, even though it is successfully installed. Below is my build script: curl -s -o use-node https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/node/use-node NODE_VERSION=0.8.0 \

Grunt - delete all files and files in sub-directories with specific file extension

杀马特。学长 韩版系。学妹 提交于 2019-12-04 23:45:55
I need to delete all files with a specific file extension in a directory and all of its sub-directories using Grunt.js and I guess I probably need a module to do so? I've looked at clean but that seems to be for deleting whole directories rather than specific files. My directory looks like: build/img/ build/img/ico build/img/logos and the file extension I want to delete is: Any file with the extension of .png~ , .gif~ or .jpg~ Any ideas? go-oleg You can configure the grunt-contrib-clean task to remove those files like this: clean : { yourTarget : { src : [ "build/img/**/*.png~", "build/img/**/