plugins are now extensions

This commit is contained in:
Corey Johnson 2011-10-26 11:46:03 -07:00
parent 1f8d0c8a8e
commit 69f2d44bcd
25 changed files with 16 additions and 16 deletions

View File

@ -8,7 +8,7 @@ task :build do
dest = File.join(built_dir, contents_dir, "Resources")
%w( index.html src docs static plugins test vendor ).each do |dir|
%w( index.html src docs static extensions test vendor ).each do |dir|
rm_rf File.join(dest, dir)
cp_r dir, File.join(dest, dir)
end
@ -19,7 +19,7 @@ task :build do
"http://coffeescript.org/ - (try `npm i -g coffee-script`)"
end
%w( src plugins ).each do |dir|
%w( src extensions ).each do |dir|
Dir["#{dir}/**/*.coffee"].each do |file|
sh "coffee -c #{dest}/#{dir}"
end

View File

@ -2,7 +2,7 @@ _ = require 'underscore'
File = require 'fs'
Chrome = require 'chrome'
Plugin = require 'plugin'
Extension = require 'extension'
EditorPane = require 'editor/editor-pane'
{bindKey} = require 'keybinder'
@ -13,7 +13,7 @@ ace = require 'ace/ace'
{UndoManager} = require 'ace/undomanager'
module.exports =
class Editor extends Plugin
class Editor extends Extension
filename: null
keymap: ->

View File

@ -1,8 +1,8 @@
Plugin = require 'plugin'
Extension = require 'extension'
FileFinderPane = require 'filefinder/filefinderpane'
module.exports =
class Filefinder extends Plugin
class Filefinder extends Extension
keymap: ->
'Command-T': => @pane.toggle()
# really wish i could put up/down keyboad shortcuts here

View File

Before

Width:  |  Height:  |  Size: 518 B

After

Width:  |  Height:  |  Size: 518 B

View File

@ -1,11 +1,11 @@
_ = require 'underscore'
File = require 'fs'
Plugin = require 'plugin'
Extension = require 'extension'
ProjectPane = require 'project/projectpane'
module.exports =
class Project extends Plugin
class Project extends Extension
keymap: ->
'Command-Ctrl-N': -> @pane.toggle()

View File

@ -45,7 +45,7 @@
}
#project li.dir {
background: url('plugins/project/images/dir-toggle.png') 9px 6px no-repeat;
background: url('extensions/project/images/dir-toggle.png') 9px 6px no-repeat;
}
#project li.dir.open {

View File

@ -1,11 +1,11 @@
$ = require 'jquery'
Plugin = require 'plugin'
Extension = require 'extension'
File = require 'fs'
TabsPane = require 'tabs/tabspane'
module.exports =
class Tabs extends Plugin
class Tabs extends Extension
# The Editor pane we're managing.
editor: null

View File

@ -3,12 +3,12 @@ _ = require 'underscore'
Pane = require 'pane'
File = require 'fs'
Plugin = require 'plugin'
Extension = require 'extension'
{CoffeeScript} = require 'coffee-script'
module.exports =
class TinyTest extends Plugin
class TinyTest extends Extension
keymap: ->
'Command-Ctrl-T': 'runTests'

View File

@ -2,7 +2,7 @@ resourcePath = OSX.NSBundle.mainBundle.resourcePath
paths = [
"#{resourcePath}/src"
"#{resourcePath}/plugins"
"#{resourcePath}/extensions"
"#{resourcePath}/vendor"
]

View File

@ -5,14 +5,14 @@ root = OSX.NSBundle.mainBundle.resourcePath
resolve = (path) ->
# use a list of known load paths in the tests
paths = require.paths
require.paths = [ "#{root}/src", "#{root}/plugins", "#{root}/vendor" ]
require.paths = [ "#{root}/src", "#{root}/extensions", "#{root}/vendor" ]
path = require.resolve path
require.paths = paths
path
assert.equal resolve('underscore'), "#{root}/vendor/underscore.js"
assert.equal resolve('app'), "#{root}/src/app.js"
assert.equal resolve('tabs/tabs'), "#{root}/plugins/tabs/tabs.js"
assert.equal resolve('tabs/tabs'), "#{root}/extensions/tabs/tabs.js"
# assert.equal resolve('./document'), "#{root}/src/document.js"
# assert.equal resolve('../README.md'), "#{root}/README.md"