 {View} = require "atom"
 _ = require "underscore"
-AdmZip = require 'adm-zip'
+zip = require '../../utils/zip'
 path = require 'path'
 fs = require 'fs'
 request = require 'request'

    @div class: 'overlay from-top select-list', =>
      @ol outlet: 'list', class: 'list-group package-list'
      @button 'Cancel', click: 'destroy', class: "btn btn-lg"

  attach: ->
    request = request.defaults({jar: true})

    root = atom.project.path

    readdir(root)
    # filter butterfly packages

    # show up
    .then (map) =>
      @showPackageList map
    .catch (err) =>
      console.log err.message
      console.trace err.stack

