Skip to content

Commit

Permalink
Current to Part 5 of the blog series - http://brianmajewski.com/2015/…
Browse files Browse the repository at this point in the history
  • Loading branch information
bmajewski committed Feb 21, 2015
1 parent 18b0d51 commit 82df0f2
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
@@ -0,0 +1,3 @@
{
"directory": "public/components"
}
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -86,4 +86,5 @@ build/Release
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules

public/components

20 changes: 20 additions & 0 deletions bower.json
@@ -0,0 +1,20 @@
{
"name": "relearning-backbone",
"version": "1.0.0",
"homepage": "https://github.com/bmajewski/relearning-backbone",
"authors": [
"Brian M <hireme@brianmajewski.com>"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"public/components",
"test",
"tests"
],
"dependencies": {
"requirejs": "~2.1.16"
}
}
3 changes: 3 additions & 0 deletions public/app/main.js
@@ -0,0 +1,3 @@
define(function (require) {
console.log('require module loading working');
});
7 changes: 7 additions & 0 deletions public/assets/css/bootstrap-lumen.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/assets/css/styles.css
@@ -1,3 +1,3 @@
h3 {
color: #4169e1;
body {
margin: 20px;
}
3 changes: 3 additions & 0 deletions public/index.html
Expand Up @@ -4,7 +4,10 @@
<base href="/">
<meta charset="UTF-8">
<title>Relearning Backbone</title>
<link rel="stylesheet" href="assets/css/bootstrap-lumen.min.css">
<link rel="stylesheet" href="assets/css/styles.css">

<script src="components/requirejs/require.js" data-main="require-main.js"></script>
</head>
<body>
<h3>Relearning Backbone</h3>
Expand Down
9 changes: 9 additions & 0 deletions public/require-main.js
@@ -0,0 +1,9 @@
requirejs.config({
baseUrl: "app",

paths: {

}
});

require(['main']);

0 comments on commit 82df0f2

Please sign in to comment.