Files
atom/src/app/package.coffee
Corey Johnson & Kevin Sawicki 659c6bbd56 Remove old style package support
All packages have been migrated to the new style.
2013-02-08 17:28:07 -08:00

19 lines
350 B
CoffeeScript

fs = require 'fs'
module.exports =
class Package
@build: (path) ->
TextMatePackage = require 'text-mate-package'
AtomPackage = require 'atom-package'
if TextMatePackage.testName(path)
new TextMatePackage(path)
else
new AtomPackage(path)
name: null
path: null
constructor: (@path) ->
@name = fs.base(@path)