Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
generator-inuit
Advanced tools
A Yeoman generator for Harry Robert's inuit.css framework with SMACSS and grunt support
A Yeoman generator for Harry Robert's inuit css framework.
NOTE: Requires Sass 3.3
To install generator-inuit from npm, run:
npm install -g generator-inuit
Then, from your projects directory, initiate the generator:
yo inuit
Below are 3 of the most helpful references to understanding Inuit and OOCSS concepts.
MindBEMding – getting your head ’round BEM syntax
The open/closed principle applied to CSS
The single responsibility principle applied to CSS
Choose which inuit objects/abstractions you want to use in your project.
To skip this step, simply press enter as these can be configured manually once your project has been generated via the _vars.scss file.
Jonathan Snook's SMACSS guide helps organise your site's CSS into flexible, maintainable chunks.
Files created are;
These files are placed in the css/src directory and automatically imported into css/style.scss.
Two more directories are added place your Sass partials into;
For more info on SMACSS, visit SMACSS website.
Grunt helps automate your workflow.
####Tasks
Development
grunt serve
grunt watch
Production
grunt build
There are way more things you can do with grunt like Responsive Images, HTML Partials, Compass, and loads more, so feel free to add more to your gruntfile and package.json.
NOTE: Saying no to grunt option will generate a basic watch file to watch for Sass changes via the command line
yo inuit:sassmod "module-name"
Note: you will be prompted by the sub-generator to overwrite style.scss with the new changes. Please choose yes and then enter.
Yeoman is more than just a tool. It's a workflow; a collection of tools and best practices working in harmony to make developing for the web even better.
Find out more at yeoman.io
v0.6.5 - Found dependency in quotes sass module using !global (Sass 3.3)
v0.6.4 - Fixed error in gruntfile
v0.6.3 - Added missing grunt tasks to grunt build
v0.6.0 - Restructured scaffolding to separate files into app and dist. Added additional grunt tasks (autoprefixer, cssmin and rigger)
v0.5.2 - Fixed livereload issue and upgraded imagemin grunt package
v0.5.0 - Create partial sass files with sub-generator
v0.4.0 - Activate inuit modules
v0.3.0 - Grunt option/support
v0.2.0 - SMACSS option/support
v0.1.0 - Basic bowser install of inuit.css
Two people deserve a mention for helping me get a couple of the features done in one way or another.
Ritchie Anesco for helping out with the inuit objects & abstrations feature
Remy Bach for this article which enabled me to write content to the _vars.scss and style.scss files via a simple 'find hook and replace' solution.
FAQs
A Yeoman generator for Harry Robert's inuit.css framework with SMACSS and grunt support
The npm package generator-inuit receives a total of 1 weekly downloads. As such, generator-inuit popularity was classified as not popular.
We found that generator-inuit 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.