Scaffld
A friendly web application scaffolding utility
Installation
npm install -g scaffld
Basic Usage
- Create a directory for your new application
mkdir new-app
- Move to the new directory
cd new-app
- Create a project
scaffld new
- Start a connect server to access your project at http://localhost:4444
grunt connect
Arguments
--jquery
Scaffold the project with the latest version of jQuery (2.0+).
--jquery-legacy
Scaffold the project with jQuery 1.9.1 for IE 6, IE 7 and IE 8 support.
--modernizr
Scaffold the project with the development version of Modernizr.
--less
Scaffold the project to use LESS as a CSS preprocessor.
--backbone
Scaffold the project to use Backbone as the application framework. This includes the latest versions of jQuery (2.0+) and lodash.
Generators
Use generators to add boilerplate application files after you have set up a new project.
*Generators are not yet functional. This is only a preliminary specification.
JavaScript Generators
Generic
scaffld generate js-client-desktop <name>
Creates a new entry point file where modules can be instantiated.scaffld generate js-helper <name>
Creates a generic modulescaffld generate js-plugin <name>
jQuery
scaffld generate jquery-plugin <name>
Backbone
scaffld generate backbone-model <name>
scaffld generate backbone-collection <name>
scaffld generate backbone-view <name>
LESS Generators
scaffld generate less-block <name>
scaffld generate less-element <name>
scaffld generate less-page <name>
scaffld generate less-theme <name>
scaffld generate less-util <name>