SE7ENSKY/grunt-group-css-media-queries

Can't find any CSS files (File: [no files])

hinok opened this issue · 2 comments

Hello,
Basic info about my dev environment

grunt-cli v0.1.11
grunt v0.4.2
node v0.10.23

I've just installed your module and added code below in my Gruntfile.js

group_css_media_queries: {
      options: {},
      files: {
        'web/assets/css/main.grouped.css': ['web/assets/css/main.css']
      },
    },

Unfortunetly it just doesn't work.
I've run task group_css_media_queries with verbose flag (-v) and get output:

grunt group_css_media_queries -v
Initializing
Command-line options: --verbose

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks.
Reading package.json...OK
Parsing package.json...OK
Initializing config...OK

Registering "grunt-contrib-jshint" local Npm module tasks.
Reading hidden-path/node_modules/grunt-contrib-jshint/package.json...OK
Parsing hidden-path/node_modules/grunt-contrib-jshint/package.json...OK
Loading "jshint.js" tasks...OK
+ jshint

Registering "grunt-contrib-nodeunit" local Npm module tasks.
Reading hidden-path/node_modules/grunt-contrib-nodeunit/package.json...OK
Parsing hidden-path/node_modules/grunt-contrib-nodeunit/package.json...OK
Loading "nodeunit.js" tasks...OK
+ nodeunit

Registering "grunt-contrib-uglify" local Npm module tasks.
Reading hidden-path/node_modules/grunt-contrib-uglify/package.json...OK
Parsing hidden-path/node_modules/grunt-contrib-uglify/package.json...OK
Loading "uglify.js" tasks...OK
+ uglify

Registering "grunt-contrib-concat" local Npm module tasks.
Reading hidden-path/node_modules/grunt-contrib-concat/package.json...OK
Parsing hidden-path/node_modules/grunt-contrib-concat/package.json...OK
Loading "concat.js" tasks...OK
+ concat

Registering "grunt-contrib-qunit" local Npm module tasks.
Reading hidden-path/node_modules/grunt-contrib-qunit/package.json...OK
Parsing hidden-path/node_modules/grunt-contrib-qunit/package.json...OK
Loading "qunit.js" tasks...OK
+ qunit

Registering "grunt-contrib-watch" local Npm module tasks.
Reading hidden-path/node_modules/grunt-contrib-watch/package.json...OK
Parsing hidden-path/node_modules/grunt-contrib-watch/package.json...OK
Loading "watch.js" tasks...OK
+ watch

Registering "grunt-contrib-imagemin" local Npm module tasks.
Reading hidden-path/node_modules/grunt-contrib-imagemin/package.json...OK
Parsing hidden-path/node_modules/grunt-contrib-imagemin/package.json...OK
Loading "imagemin.js" tasks...OK
+ imagemin

Registering "grunt-contrib-sass" local Npm module tasks.
Reading hidden-path/node_modules/grunt-contrib-sass/package.json...OK
Parsing hidden-path/node_modules/grunt-contrib-sass/package.json...OK
Loading "sass.js" tasks...OK
+ sass

Registering "grunt-contrib-compass" local Npm module tasks.
Reading hidden-path/node_modules/grunt-contrib-compass/package.json...OK
Parsing hidden-path/node_modules/grunt-contrib-compass/package.json...OK
Loading "compass.js" tasks...OK
+ compass

Registering "grunt-autoprefixer" local Npm module tasks.
Reading hidden-path/node_modules/grunt-autoprefixer/package.json...OK
Parsing hidden-path/node_modules/grunt-autoprefixer/package.json...OK
Loading "autoprefixer.js" tasks...OK
+ autoprefixer

Registering "grunt-contrib-connect" local Npm module tasks.
Reading hidden-path/node_modules/grunt-contrib-connect/package.json...OK
Parsing hidden-path/node_modules/grunt-contrib-connect/package.json...OK
Loading "connect.js" tasks...OK
+ connect

Registering "grunt-newer" local Npm module tasks.
Reading hidden-path/node_modules/grunt-newer/package.json...OK
Parsing hidden-path/node_modules/grunt-newer/package.json...OK
Loading "newer.js" tasks...OK
+ any-newer, newer, newer-postrun

Registering "grunt-contrib-clean" local Npm module tasks.
Reading hidden-path/node_modules/grunt-contrib-clean/package.json...OK
Parsing hidden-path/node_modules/grunt-contrib-clean/package.json...OK
Loading "clean.js" tasks...OK
+ clean

Registering "grunt-contrib-cssmin" local Npm module tasks.
Reading hidden-path/node_modules/grunt-contrib-cssmin/package.json...OK
Parsing hidden-path/node_modules/grunt-contrib-cssmin/package.json...OK
Loading "cssmin.js" tasks...OK
+ cssmin

Registering "grunt-contrib-copy" local Npm module tasks.
Reading hidden-path/node_modules/grunt-contrib-copy/package.json...OK
Parsing hidden-path/node_modules/grunt-contrib-copy/package.json...OK
Loading "copy.js" tasks...OK
+ copy

Registering "grunt-path-check" local Npm module tasks.
Reading hidden-path/node_modules/grunt-path-check/package.json...OK
Parsing hidden-path/node_modules/grunt-path-check/package.json...OK
Loading "grunt-path-check.js" tasks...OK
+ path-check

Registering "grunt-shell" local Npm module tasks.
Reading hidden-path/node_modules/grunt-shell/package.json...OK
Parsing hidden-path/node_modules/grunt-shell/package.json...OK
Loading "shell.js" tasks...OK
+ shell

Registering "grunt-group-css-media-queries" local Npm module tasks.
Reading hidden-path/node_modules/grunt-group-css-media-queries/package.json...OK
Parsing hidden-path/node_modules/grunt-group-css-media-queries/package.json...OK
Loading "group_css_media_queries.js" tasks...OK
+ group_css_media_queries

Registering "assemble" local Npm module tasks.
Reading hidden-path/node_modules/assemble/package.json...OK
Parsing hidden-path/node_modules/assemble/package.json...OK
Loading "assemble.js" tasks...OK
+ assemble
Loading "Gruntfile.js" tasks...OK
+ default, dist

Running tasks: group_css_media_queries

Running "group_css_media_queries" task

Running "group_css_media_queries:files" (group_css_media_queries) task
Verifying property group_css_media_queries.files exists in config...OK
File: [no files]
Options: (none)

Done, without errors

Thank you for help.
Dawid

Trouble was with 'web/assets/css/main.grouped.css': ['web/assets/css/main.css'], because this files definition means "build main.grouped.css" from files array ["..."]. This projects processes only single file input to single file output.
That was mistake in documentation. I'll fix this now.

Thanks!