Gulp plugin for creating WordPress CSS header style
npm install @northernbeat/gulp-wpstylecss> Plugin for gulp which generates WordPress theme style.css files from package.json.
First, install gulp-wpstylecss as a development dependency:
``shell`
npm install --save-dev gulp-wpstylecss
Then, add it to your gulpfile.js:
`javascript
var wpstylecss = require("gulp-wpstylecss");
wpstylecss()
.pipe(gulp.dest('dist'));
`
pkg is the contents of the current project's package.json.
_s is underscore.string.
Falsy options will cause the corrosponding field to be omitted from the generated file, except option.name which is required.
#### options.name
Type: String_s.titleize(_s.humanize(pkg.name))
Default value:
The contents of the Theme Name field.
#### options.description
Type: Stringpkg.description
Default value:
The contents of the Description field.
#### options.version
Type: Stringpkg.version
Default value:
The contents of the Version field.
#### options.uri
Type: Stringpkg.homepage
Default value:
The contents of the Theme URI field.
#### options.tags
Type: Arraypkg.keywords
Default value:
The contents of the Tags field.
#### options.author
Type: Stringpkg.author.name
Default value:
The contents of the Author field.
#### options.authorUri
Type: Stringpkg.author.url
Default value:
The contents of the Author URI field.
#### options.license
Type: Stringpkg.license
Default value:
The contents of the License field.
#### options.licenseUri
Type: Stringnull
Default value:
The contents of the License URI` field.
[npm-url]: https://npmjs.org/package/gulp-wpstylecss
[npm-image]: https://badge.fury.io/js/gulp-wpstylecss.png
[travis-url]: http://travis-ci.org/stefanfisk/gulp-wpstylecss
[travis-image]: https://secure.travis-ci.org/stefanfisk/gulp-wpstylecss.png?branch=master
[coveralls-url]: https://coveralls.io/r/stefanfisk/gulp-wpstylecss
[coveralls-image]: https://coveralls.io/repos/stefanfisk/gulp-wpstylecss/badge.png
[depstat-url]: https://david-dm.org/stefanfisk/gulp-wpstylecss
[depstat-image]: https://david-dm.org/stefanfisk/gulp-wpstylecss.png