Skip to content

Commit

Permalink
Switched to titleize for propercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Locklear committed Mar 19, 2015
1 parent 1082a73 commit 45a9bfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ uglify = require 'gulp-uglify'
buffer = require 'vinyl-buffer'
pkg = require './package.json'
source = require 'vinyl-source-stream'
titleize = require 'titleize'

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

Expand All @@ -30,7 +31,7 @@ banner = [
" * @license <%= pkg.license %>"
" */"].join("\n")

properName = module.shortcut.charAt(0).toUpperCase() + module.shortcut.substr(1)
properName = titleize(module.shortcut)

# -- Tasks ---------------------------------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"gulp-util": "*",
"mocha": "*",
"should": "*",
"titleize": "^1.0.0",
"vinyl-buffer": "*",
"vinyl-source-stream": "*"
},
Expand Down

0 comments on commit 45a9bfd

Please sign in to comment.