Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ gulp.task 'webserver', ->
gulp.task 'livereload', ->
server.listen 35729, (err) ->
console.log err if err?
gulp.watch('scripts/coffee/**/*.coffee', ['scripts'])
gulp.watch('styles/scss/init.scss', ['styles'])
gulp.watch('*.html', ['html'])

# Compiles CoffeeScript files into js file
# and reloads the page
Expand Down Expand Up @@ -57,15 +60,5 @@ gulp.task 'html', ->

# The default task
gulp.task 'default', ->
gulp.run 'webserver', 'livereload', 'scripts', 'styles'

# Watches files for changes
gulp.watch 'scripts/coffee/**', ->
gulp.run 'scripts'

gulp.watch 'styles/scss/**', ->
gulp.run 'styles'

gulp.watch '*.html', ->
gulp.run 'html'
gulp.start 'webserver', 'livereload', 'scripts', 'styles'

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dependencies": {},
"devDependencies": {
"connect": "~2.12.0",
"gulp": "~3.4.1",
"gulp": "latest",
"gulp-coffee": "~1.2.5",
"gulp-concat": "~2.1.7",
"gulp-livereload": "~0.2.0",
Expand Down