Skip to content

Commit

Permalink
Update builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 6, 2016
1 parent 3424001 commit 27d8542
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion assets/css/bloggy.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/bloggy.en_ES.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions assets/js/bloggy.en_US.js

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions assets/js/bloggy.js

This file was deleted.

18 changes: 10 additions & 8 deletions gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ strip = require 'gulp-strip-css-comments'
browserSync = require 'browser-sync'
reload = browserSync.reload

PORT =
GHOST: 2368
BROWSERSYNC: 3000
CONST =
DEFAULT_LANG : 'en_US'
SUPPORTED_LANGS : [ 'en_ES' ]
PORT:
GHOST: 2368
BROWSERSYNC: 3000

# -- Files ---------------------------------------------------------------------

Expand All @@ -39,7 +42,6 @@ src =
main : 'assets/js/src/i18n/index.coffee'
languages :
path: 'assets/js/src/i18n'
supported: ['en_ES']

main : [ 'assets/js/src/__init.coffee'
'assets/js/src/main.coffee' ]
Expand Down Expand Up @@ -76,7 +78,7 @@ gulp.task 'css', ->
return

gulp.task 'js i18n', ->
src.js.i18n.languages.supported.forEach (lang) ->
CONST.SUPPORTED_LANGS.forEach (lang) ->
gulp.src src.js.main
.pipe addsrc "#{src.js.i18n.languages.path}/index.coffee"
.pipe addsrc "#{src.js.i18n.languages.path}/#{lang}.coffee"
Expand All @@ -94,18 +96,18 @@ gulp.task 'js default', ->
.pipe changed dist.js
.pipe coffee().on 'error', gutil.log
.pipe addsrc src.js.vendor
.pipe concat dist.name + ".js"
.pipe concat dist.name + ".#{CONST.DEFAULT_LANG}.js"
.pipe uglify()
.pipe header banner, pkg: pkg
.pipe gulp.dest dist.js
return

gulp.task 'server', ->
browserSync.init null,
proxy: "http://127.0.0.1:#{PORT.GHOST}"
proxy: "http://127.0.0.1:#{CONST.PORT.GHOST}"
files: ["assets/**/*.*"]
reloadDelay: 300
port: PORT.BROWSERSYNC
port: CONST.PORT.BROWSERSYNC
return

gulp.task 'build', ['css', 'js']
Expand Down

0 comments on commit 27d8542

Please sign in to comment.