diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b37e43d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bower_components diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..b0913d6 --- /dev/null +++ b/bower.json @@ -0,0 +1,27 @@ +{ + "name": "site", + "homepage": "https://github.com/jankosacc/site", + "authors": [ + "jankos " + ], + "description": "", + "main": "index.html", + "moduleType": [], + "license": "MIT", + "private": true, + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "dependencies": { + "bootstrap": "^3.3.6", + "requirejs": "^2.1.22", + "backbone": "^1.2.3", + "mustache.js": "mustache#^2.2.1", + "normalize-css": "normalize.css#^3.0.3", + "text": "requirejs-text#^2.0.14" + } +} diff --git a/index.html b/index.html index e7fdcb3..c94c9d7 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,9 @@ site + +
@@ -23,6 +25,5 @@

Main

© 2016 Jan Kos
- diff --git a/js/app.js b/js/app.js new file mode 100644 index 0000000..db3501b --- /dev/null +++ b/js/app.js @@ -0,0 +1,9 @@ +define(['jquery', 'underscore', 'backbone', 'router'], +function ($, _, Backbone, SiteRouter) { + var initialize = function(){ + SiteRouter.initialize(); + }; + return { + initialize: initialize + }; +}); diff --git a/js/main.js b/js/main.js new file mode 100644 index 0000000..a29eb5a --- /dev/null +++ b/js/main.js @@ -0,0 +1,28 @@ +require.config({ + paths: { + 'jquery': '/bower_components/jquery/dist/jquery', + 'underscore': '/bower_components/underscore/underscore', + 'backbone': '/bower_components/backbone/backbone', + 'mustache': '/bower_components/mustache.js/mustache', + 'text': '/bower_components/requirejs-text/text' + }, + shim: { + 'jquery': { + exports: '$' + }, + 'underscore': { + exports: '_' + }, + 'backbone': { + deps: ['underscore', 'jquery'], + exports: 'Backbone' + }, + 'mustache': { + exports: 'Mustache' + } + } +}); + +require(['app'], function (App) { + App.initialize(); +});