FrontCow is a Yeoman generator that initialize your front-end workflow in a minute!
##What is FrontCow Cute logo, big time saving... When it comes to make a website you have to set your workflow, prepare your libraries, your files structures. FrontCow handle all this to save your time, lunch it and go grab a coffee, when you'll be back, you're ready to work.
FrontCow use the amazing Foundation5 front-end framework powered by Zurb, which is "The most advanced responsive front-end framework in the world".
FrontCow gives you the possibility to add the Bourbon SASS library to your project to get a lot a nice SASS mixins, and FontAwesome, the popular iconic webfont.
FrontCow is developed with the Atomic Design architecture in mind, so it will create and organize your SCSS in a particulare file system:
├── app
│ ├── css
│ │ ├── main.css _(generated)_
│ │ └── main_override.css
│ ├── fonts
│ ├── js
│ ├── medias
│ │ ├── images
│ │ └── tmp
│ └── scss
│ │ ├── _your-project-name_
│ │ │ ├── quarks
│ │ │ ├── atoms
│ │ │ ├── molecules
│ │ │ ├── organisms
│ │ │ ├── templates
│ │ │ ├── pages
│ │ │ ├── utilites
│ │ │ └── _imports.scss
│ │ ├── _foundation-settings.scss _(foundation custom settings)_
│ │ ├── __your-project-name_.scss
│ │ └── main.scss
│ └── index.html
├── dist
├── .editorconfig
├── .gitignore
├── .jshintrc
├── LICENSE
└── package.json
Available Scaffolding Options:
- Project/Site naming
- CSS Preprocessing with SCSS
- Bourbon SASS Mixin library
- Font Awesome popular iconic webfont
- IE8+ Support via RespondJS
Included by default:
- Template inspiration from HTML5 Boilerplate
- Feature detection with Modernizr
- JavaScript Linting with JSHint
- Built in preview server with LiveReload
- .editorconfig for consistent coding styles within text editors
- JavaScript unit testing with Jasmine
- Automatic build process that includes concatenation, image optimization, CSS and HTML minification, and JS uglification.
- Sourcemaps for JavaScript and either SCSS.
Trick question. It's not a thing. It's this guy:
Basically, he wears a top hat, lives in your computer, and waits for you to tell him what kind of application you wish to create.
Not every new computer comes with a Yeoman pre-installed. He lives in the npm package repository. You only have to ask for him once, then he packs up and moves into your hard drive. Make sure you clean up, he likes new and shiny things.
$ npm install -g yo
Yeoman travels light. He didn't pack any generators when he moved in. You can think of a generator like a plug-in. You get to choose what type of application you wish to create, such as a Backbone application or even a Chrome extension.
- Install generato-frontcow form npm, run:
$ npm install -g generator-frontcow
- Initiate the generator, run:
$ yo frontcow
- Import bower libraries, run:
$ bower install
$ grunt
Default Grunt task starts the workflow with SASS watch & build, create a localhost and open you chrome browser to be ready to work.$ grunt validate-js
Validate the JS with jshint.$ grunt publish
Publish your work: Generated all your distribution files into your dist folder, ready to be published (very magical).$ grunt server-dist
Create a localhost on the dist folder to see the result of your generated files.
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced.
If you'd like to get to know Yeoman better and meet some of his friends, Grunt and Bower, check out the complete Getting Started Guide.
MIT