diff --git a/.gitignore b/.gitignore index 13afa13..063e36e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,6 @@ *# .#* .DS_Store +./thestore/lib +node_modules *~ diff --git a/Makefile b/Makefile index 64f4245..0c64aed 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,10 @@ ECHO= /bin/echo all: index.html store.js +init: + bower install jquery backbone underscore + npm install + .nw.html: $(NOWEAVE) -filter l2h -delay -x -index -autodefs c -html $*.nw > $*.html diff --git a/backbonestore.nw b/backbonestore.nw index 42975d7..1a8cd18 100644 --- a/backbonestore.nw +++ b/backbonestore.nw @@ -1,4 +1,4 @@ -% -*- Mode: noweb; noweb-code-mode: javascript-mode ; noweb-doc-mode: latex-mode -*- +% -*- Mode: poly-noweb+coffee; -*- \documentclass{article} \usepackage{noweb} \usepackage[T1]{fontenc} diff --git a/package.json b/package.json new file mode 100644 index 0000000..d8a2203 --- /dev/null +++ b/package.json @@ -0,0 +1,28 @@ +{ + "name": "the-backbone-store", + "version": "1.0.0", + "description": "A Backbone Tutorial", + "main": "backbone.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+ssh://git@github.com/elfsternberg/The-Backbone-Store.git" + }, + "keywords": [ + "tutorial", + "backbone", + "jquery" + ], + "devDependencies": { + "coffee-script": "1.6.x", + "http-server": "0.9.x" + }, + "author": "Elf M. Sternberg ", + "license": "MIT", + "bugs": { + "url": "https://github.com/elfsternberg/The-Backbone-Store/issues" + }, + "homepage": "https://github.com/elfsternberg/The-Backbone-Store#readme" +} diff --git a/data/items.json b/thestore/data/items.json similarity index 100% rename from data/items.json rename to thestore/data/items.json diff --git a/images/AdventuresInOdyssey.jpg b/thestore/images/AdventuresInOdyssey.jpg similarity index 100% rename from images/AdventuresInOdyssey.jpg rename to thestore/images/AdventuresInOdyssey.jpg diff --git a/images/AdventuresInOdyssey_t.jpg b/thestore/images/AdventuresInOdyssey_t.jpg similarity index 100% rename from images/AdventuresInOdyssey_t.jpg rename to thestore/images/AdventuresInOdyssey_t.jpg diff --git a/images/AmericanAttorneys.jpg b/thestore/images/AmericanAttorneys.jpg similarity index 100% rename from images/AmericanAttorneys.jpg rename to thestore/images/AmericanAttorneys.jpg diff --git a/images/AmericanAttorneys_t.jpg b/thestore/images/AmericanAttorneys_t.jpg similarity index 100% rename from images/AmericanAttorneys_t.jpg rename to thestore/images/AmericanAttorneys_t.jpg diff --git a/images/BritishCivilLightTransport.jpg b/thestore/images/BritishCivilLightTransport.jpg similarity index 100% rename from images/BritishCivilLightTransport.jpg rename to thestore/images/BritishCivilLightTransport.jpg diff --git a/images/BritishCivilLightTransport_t.jpg b/thestore/images/BritishCivilLightTransport_t.jpg similarity index 100% rename from images/BritishCivilLightTransport_t.jpg rename to thestore/images/BritishCivilLightTransport_t.jpg diff --git a/images/PeriodsofMentalAssimilation.jpg b/thestore/images/PeriodsofMentalAssimilation.jpg similarity index 100% rename from images/PeriodsofMentalAssimilation.jpg rename to thestore/images/PeriodsofMentalAssimilation.jpg diff --git a/images/PeriodsofMentalAssimilation_t.jpg b/thestore/images/PeriodsofMentalAssimilation_t.jpg similarity index 100% rename from images/PeriodsofMentalAssimilation_t.jpg rename to thestore/images/PeriodsofMentalAssimilation_t.jpg diff --git a/images/Pulaski.jpg b/thestore/images/Pulaski.jpg similarity index 100% rename from images/Pulaski.jpg rename to thestore/images/Pulaski.jpg diff --git a/images/Pulaski_t.jpg b/thestore/images/Pulaski_t.jpg similarity index 100% rename from images/Pulaski_t.jpg rename to thestore/images/Pulaski_t.jpg diff --git a/images/StealthMonkeyVirus.png b/thestore/images/StealthMonkeyVirus.png similarity index 100% rename from images/StealthMonkeyVirus.png rename to thestore/images/StealthMonkeyVirus.png diff --git a/images/StealthMonkeyVirus_t.jpg b/thestore/images/StealthMonkeyVirus_t.jpg similarity index 100% rename from images/StealthMonkeyVirus_t.jpg rename to thestore/images/StealthMonkeyVirus_t.jpg diff --git a/images/SumsofMagnolia.jpg b/thestore/images/SumsofMagnolia.jpg similarity index 100% rename from images/SumsofMagnolia.jpg rename to thestore/images/SumsofMagnolia.jpg diff --git a/images/SumsofMagnolia_t.jpg b/thestore/images/SumsofMagnolia_t.jpg similarity index 100% rename from images/SumsofMagnolia_t.jpg rename to thestore/images/SumsofMagnolia_t.jpg diff --git a/index.html b/thestore/index.html similarity index 91% rename from index.html rename to thestore/index.html index 1f26fa4..d5c7e89 100644 --- a/index.html +++ b/thestore/index.html @@ -67,9 +67,9 @@
- - - + + + diff --git a/jsonstore.css b/thestore/jsonstore.css similarity index 100% rename from jsonstore.css rename to thestore/jsonstore.css diff --git a/backbone.js b/thestore/lib/backbone.js similarity index 100% rename from backbone.js rename to thestore/lib/backbone.js diff --git a/jquery-1.6.2.min.js b/thestore/lib/jquery-1.6.2.min.js similarity index 100% rename from jquery-1.6.2.min.js rename to thestore/lib/jquery-1.6.2.min.js diff --git a/underscore.js b/thestore/lib/underscore.js similarity index 100% rename from underscore.js rename to thestore/lib/underscore.js diff --git a/store.js b/thestore/store.js similarity index 100% rename from store.js rename to thestore/store.js