Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
- [misc] project structure redesigned, all web related files stored i…
Browse files Browse the repository at this point in the history
…n build/assets folder, making project root cleaner
  • Loading branch information
mrhyde committed Sep 4, 2014
1 parent 3096b3b commit f8b683e
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 9 deletions.
13 changes: 10 additions & 3 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,22 @@ module.exports = (grunt) ->
path:
source:
root: 'source'
assets: '<%= path.source.root %>/assets'
fonts: '<%= path.source.root %>/fonts'
images: '<%= path.source.root %>/images'
styles: '<%= path.source.root %>/styles'
sprites: '<%= path.source.root %>/sprites'
layouts: '<%= path.source.root %>/layouts'
scripts: '<%= path.source.root %>/scripts'
sprites: '<%= path.source.root %>/sprites'
boilerplates: '<%= path.source.root %>/boilerplates'

build:
root: 'build'
assets: '<%= path.build.root %>/assets'
styles: '<%= path.build.root %>/styles'
fonts: '<%= path.build.assets %>/fonts'
images: '<%= path.build.assets %>/images'
styles: '<%= path.build.assets %>/styles'
scripts: '<%= path.build.assets %>/scripts'
sprites: '<%= path.build.assets %>/sprites'

# Specify files
file:
Expand All @@ -34,6 +40,7 @@ module.exports = (grunt) ->
prefixed: '<%= path.build.styles %>/style.prefixed.css'
tidy: '<%= path.build.styles %>/style.tidy.css'
min: '<%= path.build.styles %>/style.min.css'
sprite: '<%= path.build.sprites %>/sprite.png'

grunt.loadTasks 'tasks'

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Kotsu",
"version": "0.3.5",
"version": "0.4.0",
"title": "Clean, opinionated foundation for new projects — to boldly go where no man has gone before",
"author": "LotusTM",
"private": true,
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions source/layouts/_layout.nj
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
<!-- <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700&amp;subset=latin,cyrillic"> -->

<!-- CSS -->
<!-- build:[href] /styles/style.min.css -->
<link rel="stylesheet" href="/styles/style.prefixed.css">
<!-- build:[href] /assets/styles/style.min.css -->
<link rel="stylesheet" href="/assets/styles/style.prefixed.css">
<!-- /build -->

<!-- Sitemap -->
Expand Down
9 changes: 7 additions & 2 deletions tasks/grunt-contrib-copy.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ module.exports = ->
dest: '<%= path.build.root %>/'
,
expand: true
cwd: '<%= path.source.assets %>/'
cwd: '<%= path.source.images %>/'
src: ['**']
dest: '<%= path.build.assets %>/'
dest: '<%= path.build.images %>/'
,
expand: true
cwd: '<%= path.source.fonts %>/'
src: ['**']
dest: '<%= path.build.fonts %>/'
]
2 changes: 1 addition & 1 deletion tasks/grunt-spritesmith.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = ->
@config 'sprite',
build:
src: ['<%= path.source.sprites %>/{,**/}*.png']
destImg: '<%= path.build.assets %>/images/sprites.png'
destImg: '<%= file.build.sprite %>'
destCSS: '<%= path.source.styles %>/generic/_sprites.map.scss'
padding: 2
engine: 'pngsmith'
Expand Down

0 comments on commit f8b683e

Please sign in to comment.