SMACSS or BEM Skeleton Generator is a command line tool that helps you create SMACSS or BEM skeleton.
Why should you use this tool?
Because generate skeleton is a boring a task. Let the machines do the boring job.
Who's this tool useful to?
Frontend Developer who loves make CSS in a modular way.
Who'll not find this tool useful?
Creative Designer who says "I can modify a CSS file but I'm not able to create a new one."
And astronauts too.
- Checkout this repository in your Sites folder (eg. ~/Sites/SmacssSkeletonGenerator)
git clone https://github.com/fabiofabbrucci/SmacssSkeletonGenerator
- Add execution permission to smacsssg.sh typing
chmod +x smacsssg.sh
- Create an alias in your .bash_profile adding:
alias ssg='~/Sites/SmacssSkeletonGenerator/smacsssg.sh'
To create the skeleton of new module you don't need anything!
Simply type:
ssg
Step 1 - Name of Module
Step 1 - Separator
Step 2 - Components of Module
Step 3 - Get the output
In this step you'll find a ready to use _nameofmodule.scss file.
Otherwise you can copy your Skeleton and be ready to use it.
Thanks to all people who's helping me improving and make me loving my job.