Plugin for gulp which generates WordPress theme style.css files from package.json.
First, install gulp-wpstylecss
as a development dependency:
npm install --save-dev gulp-wpstylecss
Then, add it to your gulpfile.js
:
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.
Type: String
Default value: _s.titleize(_s.humanize(pkg.name))
The contents of the Theme Name
field.
Type: String
Default value: pkg.description
The contents of the Description
field.
Type: String
Default value: pkg.version
The contents of the Version
field.
Type: String
Default value: pkg.homepage
The contents of the Theme URI
field.
Type: Array
Default value: pkg.keywords
The contents of the Tags
field.
Type: String
Default value: pkg.author.name
The contents of the Author
field.
Type: String
Default value: pkg.author.url
The contents of the Author URI
field.
Type: String
Default value: pkg.license
The contents of the License
field.
Type: String
Default value: null
The contents of the License URI
field.