Generator to automate the most common tasks in day-to-day of a Front End project.
Scaffold is a generator to automate the most common tasks in day-to-day of a Front End project. He uses some tools like Yeoman, Grunt e Bower. This generator is all-in-one and have five versions: Mobile, Web, Responsive, Single Page and Single Page Mobile. So you don't need to download each version to scaffolding your project. Just select which version is perfect for you and let the generator do all the stuff.
*If you are new to Yeoman, you will find a lot of answers to your questions in their getting started guide.
npm install -g generator-scaffold
yo scaffold
and follow all the steps on the screen.yo scaffold:start
yo scaffold:build
If a previous project was built using Scaffold you will need to install all dependencies locally to run. For this you just need to execute yo scaffold:install
and the generator will install all NPM packages and all Bower dependencies.
The Scaffold has a sub generator to help you to create files more quickly.
Just execute yo scaffold:create
and follow the steps to generate a new blank page, with a new .less and .js (optional). Only works with non single page projects.
This generator make use of various tools to improve your web development workflow when using Grunt:
The Scaffold uses some default folders to work. These folders follow a pattern and cannot be renamed.
dev: All development files without any compression, including HTML templates, images, LESS files and JS.
staging: All stage files. Everytime that you start the server, the Scaffold generator will generate all needed files for view in browser. That is the version of your project without any optimization. The code you see on the browser is exactly the same inside this folder. Is important that you do not delete this because bower put all dependencies inside this folder.
build: Every build that you do the generator put all files on this folder. These files were highly optimized using several Grunt tasks and are ready to be published on your web server.
grunt: The core of Scaffold. All tasks and options used for Grunt. Is highly recommended that you do not modify this files.
MIT