Skip to content

Commit

Permalink
Merge pull request #8 from jpsirois/assets-folder
Browse files Browse the repository at this point in the history
Add `assets` folder for a cleanier `app` folder hierarchy
  • Loading branch information
toddmotto committed Sep 20, 2013
2 parents b1d00eb + 91d7f2c commit 183d33b
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
15 changes: 8 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ module.exports = function (grunt) {
project: {
src: 'src',
app: 'app',
assets: '<%= project.app %>/assets',
css: [
'<%= project.src %>/scss/style.scss'
],
Expand Down Expand Up @@ -104,7 +105,7 @@ module.exports = function (grunt) {
concat: {
dev: {
files: {
'<%= project.app %>/js/scripts.min.js': '<%= project.js %>'
'<%= project.assets %>/js/scripts.min.js': '<%= project.js %>'
}
},
options: {
Expand All @@ -125,7 +126,7 @@ module.exports = function (grunt) {
},
dist: {
files: {
'<%= project.app %>/js/scripts.min.js': '<%= project.js %>'
'<%= project.assets %>/js/scripts.min.js': '<%= project.js %>'
}
}
},
Expand All @@ -142,7 +143,7 @@ module.exports = function (grunt) {
banner: '<%= tag.banner %>'
},
files: {
'<%= project.app %>/css/style.min.css': '<%= project.css %>'
'<%= project.assets %>/css/style.min.css': '<%= project.css %>'
}
},
dist: {
Expand All @@ -151,7 +152,7 @@ module.exports = function (grunt) {
banner: '<%= tag.banner %>'
},
files: {
'<%= project.app %>/css/style.min.css': '<%= project.css %>'
'<%= project.assets %>/css/style.min.css': '<%= project.css %>'
}
}
},
Expand Down Expand Up @@ -187,9 +188,9 @@ module.exports = function (grunt) {
},
files: [
'<%= project.app %>/index.html',
'<%= project.app %>/css/*.css',
'<%= project.app %>/js/{,*/}*.js',
'<%= project.app %>/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
'<%= project.assets %>/css/*.css',
'<%= project.assets %>/js/{,*/}*.js',
'<%= project.assets %>/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
]
}
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@

<link href="//www.google-analytics.com" rel="dns-prefetch">
<link href="//ajax.googleapis.com" rel="dns-prefetch">
<link href="css/style.min.css" rel="stylesheet">
<link href="assets/css/style.min.css" rel="stylesheet">

<script src="js/vendor/modernizr-2.6.2.min.js"></script>
<script src="assets/js/vendor/modernizr-2.6.2.min.js"></script>

</head>
<body>

<header class="header" role="banner">
<div class="logo">
<a href="/">
<img src="img/logo.svg" alt="Logo">
<img src="assets/img/logo.svg" alt="Logo">
</a>
</div>
<nav class="nav" role="navigation">
Expand All @@ -45,8 +45,8 @@
</footer>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.10.2.min.js"><\/script>');</script>
<script src="js/scripts.min.js"></script>
<script>window.jQuery || document.write('<script src="assets/js/vendor/jquery-1.10.2.min.js"><\/script>');</script>
<script src="assets/js/scripts.min.js"></script>

<script>
(function(f,i,r,e,s,h,l){i['GoogleAnalyticsObject']=s;f[s]=f[s]||function(){
Expand Down

0 comments on commit 183d33b

Please sign in to comment.