Created
          March 18, 2014 22:10 
        
      - 
      
- 
        Save rainbowstudio/9630845 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| sass: { | |
| options: { | |
| includePaths: [ | |
| 'bower_components/foundation/scss', | |
| require('node-bourbon').includePaths | |
| ] | |
| }, | |
| dist: { | |
| options: { | |
| //outputStyle: 'compressed' | |
| outputStyle: 'nested', | |
| sourceComments: 'map' | |
| }, | |
| files: { | |
| 'css/styles.css': 'scss/styles.scss' | |
| } | |
| } | |
| }, | |
| uglify: { | |
| general: { | |
| files: { | |
| 'js/general.min.js': [// Fchier de sortie | |
| 'bower_components/foundation/js/foundation/foundation.js', | |
| 'bower_components/foundation/js/foundation/foundation.topbar.js', | |
| 'js/app.js' | |
| ] | |
| } | |
| } | |
| }, | |
| watch: { | |
| grunt: { files: ['Gruntfile.js'] }, | |
| sass: { | |
| files: 'scss/**/*.scss', | |
| tasks: ['sass'] | |
| } | |
| // , | |
| // uglify: { | |
| // files: ['js/**/*.js', '!js/general.min.js'], | |
| // tasks: ['uglify'] | |
| // } | |
| } | |
| }); | |
| grunt.loadNpmTasks('grunt-sass'); | |
| grunt.loadNpmTasks('grunt-contrib-uglify'); | |
| grunt.loadNpmTasks('grunt-contrib-watch'); | |
| grunt.registerTask('build', ['sass']); | |
| grunt.registerTask('default', ['build','watch']); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment