Created
October 1, 2014 15:37
-
-
Save anandthakker/8132d7238a35ec73af0c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = | |
class MyPackageView | |
atom.deserializers.add(this) | |
constructor: (@data) -> #property assigned | |
serialize: -> { deserializer: 'MyPackageView', data: @data } | |
@deserialize: ({data}) -> new MyPackageView(data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log 'Requiring MyPackageView!' | |
MyPackageView = require './my-package-view' | |
module.exports = | |
view: null | |
activate: (state) -> | |
@view = new MyPackageView(state ? {hello: 'world'}) | |
deactivate: -> | |
serialize: -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "my-package", | |
"main": "./my-package", | |
"version": "0.0.0", | |
"description": "A short description of your package", | |
"activationEvents": ["my-package:toggle"], | |
"repository": "https://github.com/atom/my-package", | |
"license": "MIT", | |
"engines": { | |
"atom": ">0.50.0" | |
}, | |
"dependencies": { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment