Featuring:
Setting up all this stuff takes forever. I don't want to have to do it again.
-
Clone the repo
git clone [email protected]:rrjamie/backbone-scaffold.git
-
Delete the original origin
git remote rm origin
-
Install Grunt (globally):
npm -g install grunt-cli
-
Install project dependencies:
npm install
-
Get to work!
Grunt is used to automate some commons tasks:
grunt serve
- Starts a server you can preview your work on. Visit
http://localhost:3001/app/ to preview
your work in progress.
grunt build
- Builds the site in to the build
directory
grunt clean
- Destroy the build directory
grunt test
- Run the Qunit Tests (under Phantomjs)
grunt libs
- Build the dependend libraries (those in vendor/
) and
copy them in to app/lib
. This is distinct from the regular build step.
This project relies on grunt
and you need to install grunt-cli
globally,
and npm install
the project's dependencies.
To run the tests headless, you will need PhantomJS
The vendor
folder contains a variety of dependencies that are used in the
scaffold. It also includes a per-dependency Gruntfile.js
which describes
how to call each dependency's build system. These can be built and
copied in to the app/libs
directory with grunt libs
. It is recommended
you commit the files in app/libs
for convenience.
To rebuild the dependencies:
- Initialize Git submodules:
git submodule update --init --recursive
grunt libs
This is not done automatically as part of the grunt build
command.
Most of the software is copyright their original owners, and subject to their original license of each respective project, including any modifications I have made.
If I have neglected to include a license or attribution for any code please notify me.
The small remainder of the work is licensed under an MIT license.
Thanks to the authors all of these components and to my wondeful employer @mobify.