Skip to content

Commit

Permalink
Merge branch 'master' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
nwalton3 committed Jan 30, 2015
2 parents 4258ce8 + 1a22c88 commit c293bc9
Show file tree
Hide file tree
Showing 8 changed files with 1,966 additions and 2,954 deletions.
73 changes: 39 additions & 34 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ module.exports = (grunt) ->
#debugInfo: true
trace: true
loadPath: ['src/sass/','src/sass/shared/']
sourcemap: true
compile:
files:[
expand: true
Expand All @@ -83,15 +82,13 @@ module.exports = (grunt) ->
dest: 'css/'
ext: '.css'
]
# autoprefixer:
# compile:
# files:[
# expand: true
# cwd: 'css/'
# src: '*.css'
# dest: 'css/'
# ext: '.css'
# ]

autoprefixer:
options:
map: true
browsers: ['last 4 versions', '> 1%']
files:
src: 'css/*.css'

jade:
options:
Expand All @@ -104,37 +101,45 @@ module.exports = (grunt) ->
dest: ''
ext: '.html'
]

newer:
options:
override: (detail, include) ->
if detail.task is 'sass' or detail.task is 'jade'
include true
# checkForModifiedImports grunt, detail.path, detail.time, include
else
include false

connect:
livereload:
server:
options:
hostname: '0.0.0.0'
port: 9001
middleware: (connect, options) ->
return [lrSnippet, folderMount(connect, '.')]
regarde:
uglify:
files: ['src/js/**/*.js']
tasks: ['jshint', 'uglify', 'livereload']

watch:
options:
spawn: false
sass:
files: ['src/sass/**/*.sass', 'src/sass/**/*.scss']
tasks: ['sass', 'livereload']
tasks: ['newer:sass']
css:
options:
livereload: true
files: ['css/**/*']
tasks: ['newer:autoprefixer']
jade:
files: ['src/jade/**/*.jade']
tasks: ['jade', 'livereload']
image:
files: ['img/*']
tasks: ['livereload']
tasks: ['newer:jade']
js:
files: ['src/js/script.js', 'src/js/touch.js']
tasks: ['newer:jshint', 'newer:uglify']
livereload:
files: ['img/*', '*.html', 'js/*.min.js']
options:
livereload: true

# grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-uglify')
grunt.loadNpmTasks('grunt-contrib-sass')
#grunt.loadNpmTasks('grunt-autoprefixer')
grunt.loadNpmTasks('grunt-contrib-jade')
grunt.loadNpmTasks('grunt-regarde')
grunt.loadNpmTasks('grunt-contrib-connect')
grunt.loadNpmTasks('grunt-contrib-livereload')
grunt.loadNpmTasks('grunt-contrib-jshint');
require('load-grunt-tasks')(grunt);

# Default task(s).
grunt.registerTask('compile', ['sass', 'jade', 'jshint', 'uglify'])
grunt.registerTask('default', ['compile', 'livereload-start', 'connect', 'regarde'])
grunt.registerTask('compile', ['sass', 'autoprefixer', 'jade', 'jshint', 'uglify'])
grunt.registerTask('default', ['compile', 'connect', 'watch'])
30 changes: 15 additions & 15 deletions css/base.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions css/byu-header-bar.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c293bc9

Please sign in to comment.