 
   getPackagePath: ->
     packagePath = @miniEditor.getText()
-    packageName = _.dasherize(fsUtils.base(packagePath))
+    packageName = _.dasherize(path.basename(packagePath))
     fsUtils.join(fsUtils.directory(packagePath), packageName)
 
   validPackagePath: ->

$ = require 'jquery'
_ = require 'underscore'
fsUtils = require 'fs-utils'

module.exports =
class PackageGeneratorView extends View


  createPackageFiles: ->
    templatePath = fsUtils.resolveOnLoadPath(fsUtils.join("package-generator", "template"))
    packageName = path.basename(@getPackagePath())

    for path in fsUtils.listTree(templatePath)
      relativePath = path.replace(templatePath, "")
