grunt-media-query-extractor
Advanced tools
Comparing version 0.1.0 to 1.0.0
@@ -23,2 +23,7 @@ /* | ||
}, | ||
bump: { | ||
options: { | ||
push: false | ||
} | ||
}, | ||
mqe: { | ||
@@ -25,0 +30,0 @@ options: { |
{ | ||
"name": "grunt-media-query-extractor", | ||
"description": "Combine and extract media queries for mobile-first responsive design", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"homepage": "https://github.com/bjork24/grunt-media-query-extractor", | ||
@@ -35,3 +35,4 @@ "author": { | ||
"load-grunt-tasks": "~0.3.0", | ||
"lodash": "~2.4.1" | ||
"lodash": "~2.4.1", | ||
"grunt-bump": "0.0.13" | ||
}, | ||
@@ -45,4 +46,5 @@ "peerDependencies": { | ||
"combine", | ||
"extract", | ||
"optimisation" | ||
] | ||
} |
@@ -40,18 +40,28 @@ # grunt-media-query-extractor | ||
#### options.separator | ||
Type: `String` | ||
Default value: `', '` | ||
#### log | ||
A string value that is used to do something with whatever. | ||
Type: `boolean` | ||
Default: `false` | ||
#### options.punctuation | ||
Type: `String` | ||
Default value: `'.'` | ||
Log processed media queries. | ||
A string value that is used to do something else with whatever else. | ||
#### hideComments | ||
Type: `boolean` | ||
Default: `false` | ||
Remove comments from processed stylesheets. | ||
#### breakpointCollections | ||
Type: `boolean` | ||
Default: `false` | ||
Combine extracted media queries into collections for dynamic stylesheet loading | ||
based on breakpoint. | ||
### Usage Examples | ||
#### Default Options | ||
In this example, the default options are used to do something with whatever. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result would be `Testing, 1 2 3.` | ||
In this example, all the css files in `test` are processed and moved to the folder `tmp` | ||
@@ -61,25 +71,12 @@ ```js | ||
mqe: { | ||
options: {}, | ||
files: { | ||
'dest/default_options': ['src/testing', 'src/123'], | ||
}, | ||
}, | ||
}); | ||
``` | ||
#### Custom Options | ||
In this example, custom options are used to do something else with whatever else. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result in this case would be `Testing: 1 2 3 !!!` | ||
```js | ||
grunt.initConfig({ | ||
mqe: { | ||
options: { | ||
separator: ': ', | ||
punctuation: ' !!!', | ||
log: true | ||
}, | ||
files: { | ||
'dest/default_options': ['src/testing', 'src/123'], | ||
}, | ||
}, | ||
}); | ||
your_target: { | ||
files: { | ||
'tmp': ['test/styles.css'] | ||
} | ||
} | ||
} | ||
}) | ||
``` | ||
@@ -94,2 +91,2 @@ | ||
## Release History | ||
_(Nothing yet)_ | ||
* February 12, 2014 - v1.0.0 - Initial release |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1119
0
32522
7
90