Shell script to build a Sass architecture from a Manifest.
First, you should have a Sass manifest file, let's say main.scss
.
You then simply have to call sass-init
on this file to generate your Sass architecture:
$ ./sass-init.sh main.scss
sass-init
comes with two available options:
- file extension (
scss
by default, can besass
) - optional underscore prefix (
prefix
by default, can beno-prefix
)
$ ./sass-init.sh main.scss sass
$ ./sass-init.sh main.scss scss no-prefix
$ ./sass-init.sh main.scss sass no-prefix
- Create all directories
- Create all files
- Accept both SASS and SCSS syntaxes
- Accept both simple and double quotes
- Reject comment lines
- Accept lines with extension already specified
- Accept parameters in any order
Windows users: be sure your shell script use Unix line endings