mirror of
https://github.com/atom/atom.git
synced 2026-02-08 13:45:09 -05:00
17 lines
550 B
CoffeeScript
17 lines
550 B
CoffeeScript
# This file is the first thing loaded on startup.
|
|
|
|
console.log = (thing) -> OSX.NSLog thing.toString() if thing?
|
|
|
|
# load require() function
|
|
root = OSX.NSBundle.mainBundle.resourcePath
|
|
code = OSX.NSString.stringWithContentsOfFile "#{root}/src/require.js"
|
|
eval "(function(){ #{code} })(this);"
|
|
|
|
console.log 'require tests:'
|
|
console.log require.resolve 'underscore'
|
|
console.log require.resolve 'osx'
|
|
console.log require.resolve 'ace/requirejs/text!ace/css/editor.css'
|
|
console.log require.resolve 'ace/keyboard/keybinding'
|
|
|
|
this._ = require 'underscore'
|