Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
generator-jekyllrb
Advanced tools
Supercharge Jekyll development with Yeoman. Yo, Jekyllrb!
Generator-jekyllrb wraps the Jekyll static site generator in a Yeoman development workflow. Scaffold your site with Yo, manage front end packages with Bower, and automate development and build tasks with Grunt.
Generator-jekyllrb is ideal for developing performant static sites and prototyping dynamic sites and apps (especially if the final version uses Yeoman too). It's also a great introduction to Yeoman if you're not familiar with JavaScript MV* frameworks.
During setup you can choose:
Generator-jekyllrb always includes:
jekyll doctor
npm install -g generator-jekyllrb
yo jekyllrb
Compiles all files and opens the site in your default browser. A watch task watches for changes to files, recompiles if necessary, and injects the changes into the browser with LiveReload.
Checks code quality with Jshint, CSS Lint and CSSCSS, and Jekyll health with jekyll doctor
.
Builds an optimized site to the dist directory. Usemin blocks are concatenated, CSS, images, and HTML are minified, JavaScript is uglified, and assets are revved for cache busting.
grunt serve:dist
will run grunt build
and open the result in your default browser
grunt
on its own is a special task that runs grunt check
, any tests you've added, and grunt build
.
Every task and target in the Gruntfile can be run individually (e.g., grunt jshint:all
or grunt compass:server
). Edit the tasks and add new ones to fit your needs.
Bower is a package manager for front-end components. Use it to download and manage CSS, JavaScript, and preprocessor tools for your site. Everything in the _bower_components directory is available while running grunt serve
.
To include components in the build, place them inside of a Usemin block or add them to the copy:dist
task. This workflow will be streamlined with the release of Usemin 2.0.
To deploy your built code to GitHub pages, Heroku, or wherever, try grunt-build-control: https://github.com/robwierzbowski/grunt-build-control. Coming soon preconfigured as a generator option.
Getting started with Yeoman
Getting started with Grunt
Wrapping an existing site in Yeoman isn't hard, but it takes a little manual editing.
compass
task in the Gruntfile.grunt serve
, grunt dist
, and grunt serve:dist
. Check that the files you expect are being transferred to the dist directory.Post bugs and feature requests to the Github issue tracker. In lieu of a formal styleguide, take care to maintain the existing coding style. Lint and test your code using Grunt.
FAQs
Supercharge Jekyll development with Yeoman. Yo, Jekyllrb!
The npm package generator-jekyllrb receives a total of 15 weekly downloads. As such, generator-jekyllrb popularity was classified as not popular.
We found that generator-jekyllrb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.