Skip to content

Commit

Permalink
integrated sass in grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Alabor committed Sep 2, 2013
1 parent 041aa02 commit 2599eb8
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -4,5 +4,7 @@ config/config.js
config/spotify_appkey.key
npm-debug.log
src/client/public/js/kaffeeundkuchen.min.js
src/client/public/css/kaffeeundkuchen.css
bower_components/
tmp/
tmp/
.sass-cache/
13 changes: 11 additions & 2 deletions Gruntfile.js
Expand Up @@ -28,11 +28,20 @@ module.exports = function(grunt) {
, dest: 'src/client/public/js/<%= pkg.name %>.min.js'
}
}

, sass: {
build: {
files: {
'src/client/public/css/<%= pkg.name %>.css': 'src/client/sass/main.scss'
}
}
}
});

grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat')
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-sass');

grunt.registerTask('default', ['browserify', 'concat', 'uglify']);
grunt.registerTask('default', ['browserify', 'concat', 'uglify', 'sass']);
};
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -35,7 +35,8 @@
"grunt": "~0.4.1",
"grunt-browserify": "~1.2.4",
"grunt-contrib-uglify": "~0.2.2",
"grunt-contrib-concat": "~0.3.0"
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-sass": "~0.5.0"
},
"scripts": {
"start": "node src/app.js",
Expand Down
@@ -1,5 +1,5 @@
@import "/client/assets/style/playlist";
@import "/client/assets/style/overlay";
@import "playlist";
@import "overlay";

form {
padding: 5px;
Expand Down
File renamed without changes.
File renamed without changes.
7 changes: 4 additions & 3 deletions src/client/views/index.html
Expand Up @@ -3,10 +3,11 @@
<head>
<meta charset="utf-8">
<title>Kaffee Und Kuchen</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<script src="js/kaffeeundkuchen.min.js"></script>
<link href="css/kaffeeundkuchen.css" rel="stylesheet" />
</head>
<body>
<nav>
Expand Down

0 comments on commit 2599eb8

Please sign in to comment.