6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Atomでモデルだけ初期化した状態で起動スクリプトを挟む

Posted at

Atom開発者向け

src/window-bootstrap.coffee

atom.startEditorWindowすると起動してしまうのでコメントアウトして自分で定義したブートロードを挟む

# Like sands through the hourglass, so are the days of our lives.
startTime = Date.now()

require './window'

Atom = require './atom'
window.atom = Atom.loadOrCreate('editor')
atom.initialize()
# atom.startEditorWindow()
# window.atom.loadTime = Date.now() - startTime
# console.log "Window load time: #{atom.getWindowLoadTime()}ms"


cssPath = '/Applications/Atom.app/Contents/Resources/app/static/editor.less'
content = atom.themes.loadLessStylesheet cssPath
css = atom.themes.applyStylesheet cssPath, content

{TextEditorView} = require 'atom'
editorView = new TextEditorView {}
editorView.appendTo 'body'
window.editorView = editorView
editorView.editor.buffer.setText 'testtesttestest`'

clone した atomのディレクトリでcoffeeのビルドだけ行う

npm install
npm install grunt
grunt --gruntfile build/Gruntfile.coffee coffee install
6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?