This repository has been archived by the owner on Nov 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit de857ad
Showing
10 changed files
with
189 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"extends": "standard", | ||
"parser": "babel-eslint", | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true, | ||
}, | ||
"globals": { | ||
"atom": true, | ||
}, | ||
"plugins": [ | ||
"promise" | ||
], | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.DS_Store | ||
npm-debug.log | ||
node_modules |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
notifications: | ||
email: | ||
on_success: never | ||
on_failure: change | ||
|
||
script: 'curl -s https://raw.githubusercontent.com/atom/ci/master/build-package.sh | sh' | ||
|
||
git: | ||
depth: 10 | ||
|
||
sudo: false | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
env: | ||
global: | ||
- APM_TEST_PACKAGES="" | ||
|
||
matrix: | ||
- ATOM_CHANNEL=stable | ||
- ATOM_CHANNEL=beta | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- build-essential | ||
- git | ||
- libgnome-keyring-dev | ||
- fakeroot | ||
|
||
branches: | ||
only: | ||
- master |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2016 Joe Fitzgerald | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# `run` [](https://travis-ci.org/atom-community/run) [](https://ci.appveyor.com/project/joefitzgerald/run/branch/master) | ||
|
||
`run` launches your app using run providers. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: "{build}" | ||
|
||
platform: x64 | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
clone_depth: 10 | ||
|
||
skip_tags: true | ||
|
||
environment: | ||
APM_TEST_PACKAGES: | ||
|
||
matrix: | ||
- ATOM_CHANNEL: stable | ||
- ATOM_CHANNEL: beta | ||
|
||
install: | ||
- ps: Install-Product node 5 | ||
|
||
build_script: | ||
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/atom/ci/master/build-package.ps1')) | ||
|
||
test: off | ||
deploy: off |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use babel' | ||
|
||
import {CompositeDisposable} from 'atom' | ||
|
||
export default { | ||
subscriptions: null, | ||
|
||
activate () { | ||
this.subscriptions = new CompositeDisposable() | ||
}, | ||
|
||
deactivate () { | ||
if (this.subscriptions) { | ||
this.subscriptions.dispose() | ||
} | ||
this.subscriptions = null | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"name": "run", | ||
"description": "Run your app using run providers.", | ||
"keywords": [ | ||
"run", | ||
"launch", | ||
"invoke", | ||
"spawn", | ||
"exec" | ||
], | ||
"main": "./lib/main", | ||
"version": "0.0.0", | ||
"repository": "https://github.com/atom-community/run", | ||
"license": "MIT", | ||
"engines": { | ||
"atom": ">=1.5.3 <2.0.0" | ||
}, | ||
"author": "Joe Fitzgerald <[email protected]> (http://github.com/joefitzgerald)", | ||
"homepage": "https://atom.io/packages/run", | ||
"bugs": { | ||
"url": "https://github.com/atom-community/run/issues" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^2.4.0", | ||
"babel-eslint": "^6.0.0-beta.6", | ||
"eslint-config-standard": "^5.1.0", | ||
"eslint-plugin-standard": "^1.3.2", | ||
"eslint-plugin-promise": "^1.1.0" | ||
}, | ||
"configSchema": {}, | ||
"standard": { | ||
"globals": [ | ||
"atom", | ||
"waitsForPromise" | ||
] | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"env": { | ||
"jasmine": true, | ||
}, | ||
"globals": { | ||
"waitsForPromise": true, | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
'use babel' | ||
/* eslint-env jasmine */ | ||
|
||
describe('run', () => { | ||
let mainModule = null | ||
|
||
beforeEach(() => { | ||
waitsForPromise(() => { | ||
return atom.packages.activatePackage('run').then((pack) => { | ||
mainModule = pack.mainModule | ||
}) | ||
}) | ||
}) | ||
|
||
describe('when the run package is activated', () => { | ||
it('activates successfully', () => { | ||
expect(mainModule).toBeDefined() | ||
expect(mainModule).toBeTruthy() | ||
expect(mainModule.subscriptions).toBeDefined() | ||
expect(mainModule.subscriptions).toBeTruthy() | ||
}) | ||
}) | ||
}) |