Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
grunt-kssgen
Advanced tools
KSS styleguide generator for grunt. - Alternative to grunt-kss since it is dead
DEPRECATED: grunt-kss is back and much better maintained than this one so go use that instead please :)
KSS styleguide generator for Grunt.
This plugin requires Grunt ~0.4.x
npm install grunt-kssgen --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-kssgen');
To set up the kssgen config, add a section named kssgen
to the data object passed into grunt.initConfig()
, in your project's Gruntfile.
grunt.initConfig({
kssgen: {
options: {
css: '/path/to/style.css',
},
dist: {
files: {
'/path/to/destdir': ['/path/to/sourcedir']
}
}
}
});
Then, once you've added the config information above, you can add the kss build step to an existing task (not shown) or can create your own task. Here is an example task that you can create:
grunt.registerTask('styleguide', [
// Add other tasks here if needed
'kssgen'
// Add other tasks here if needed
]);
Finally, you can call kssgen by running grunt styleguide
(or directly by grunt kssgen
).
Type: String
Default value: generator/handlebars/template
(KSS default)
A string value that is used to use a custom template to build your styleguide.
Type: Array
Default value: []
Specify the location of custom handlebars helpers; see http://bit.ly/kss-helpers
Type: String
Default value: null
A string value that is used to use a custom mask for detecting stylesheets.
Type: String
Default value: null
A string value that is used to use a custom property name when parsing KSS comments.
Type: String
Default value: null
A string value that is used to use including a CSS stylesheet for your styleguide.
Type: String
Default value: null
A string value that is used to use including a JavaScript file for your styleguide.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
FAQs
KSS styleguide generator for Grunt.
The npm package grunt-kssgen receives a total of 8 weekly downloads. As such, grunt-kssgen popularity was classified as not popular.
We found that grunt-kssgen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.