Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhartington/ionic-atom
WIP
https://github.com/mhartington/ionic-atom
Last synced: 14 days ago
JSON representation
WIP
- Host: GitHub
- URL: https://github.com/mhartington/ionic-atom
- Owner: mhartington
- License: mit
- Created: 2015-08-21T16:19:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-25T23:44:28.000Z (over 9 years ago)
- Last Synced: 2024-10-26T14:00:30.104Z (2 months ago)
- Language: CoffeeScript
- Size: 92.8 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# atomic package
Notes for development:
This is coffeescript, indents matter here... sad face
### Add a command to the command-palette
Create a method on the main class
```
module.exports = Atomic =
atomicView: null
modalPanel: null
subscriptions: nullactivate: (state) ->
start: ->
console.log "Start running"
```Then add the following to the activate method
```
activate: (state) ->
@subscriptions.add atom.commands.add 'atom-workspace', "atomic:start", => @start()
```### Including ionic-app-lib
Loophole is need to avoid any unsafe-eval erros.
```
npm i --save loophole ionic-app-lib
```Then import it.
```
{allowUnsafeEval, allowUnsafeNewFunction} = require 'loophole'{cordova, serve, start} = allowUnsafeEval -> allowUnsafeNewFunction -> require 'ionic-app-lib'
```It needs to go through `allowUnsafeEval` and then `allowUnsafeNewFunction`