Skip to content

Commit

Permalink
Removed promises pollyfill, updated readme and version bump (#36)
Browse files Browse the repository at this point in the history
* Removed promises pollyfill, updated readme and version bump

* updated appveyor node version

* Updated Travis CI test file
  • Loading branch information
Alan Smith authored Aug 10, 2016
1 parent 9cbca0e commit 83fd983
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 18 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
language: node_js
node_js:
- "0.10"
- "0.11"
- "4.0.0"
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ node-auto-launch

---

Launch applications or executables at login (Mac, Windows and Linux). Perfect for [NW.js](https://github.com/nwjs/nw.js) and [Electron](http://electron.atom.io/) apps.
Launch applications or executables at login (Mac, Windows and Linux). Perfect for [NW.js](https://github.com/nwjs/nw.js) and [Electron](http://electron.atom.io/) apps. Also handles Electron updates on Windows so the correct version of your app is launched when using the auto updater.

## Notes
- Node V4 or greater is required.
- With v3.0 the ES6-Promise dependency has been removed. This module automatically overwrote Promise in the global namespace. If upgrading to v3 check to make sure this will not affect your project.

## Installation

Expand Down Expand Up @@ -41,7 +45,7 @@ appLauncher.isEnabled().then(function(enabled){
if(enabled) return;
return appLauncher.enable()
}).then(function(err){

});
```

Expand Down
8 changes: 1 addition & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# Test against these versions of Node.js.
environment:
matrix:
- nodejs_version: "0.10"
- nodejs_version: "0.11"

# Allow failing jobs for bleeding-edge Node.js versions.
matrix:
allow_failures:
- nodejs_version: "0.11"
- nodejs_version: "4.0.0"

platform:
- x86
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "auto-launch",
"version": "2.1.0",
"version": "3.0.0",
"description": "Launch node applications or executables at login (Mac, Windows, and Linux)",
"main": "dist/index.js",
"scripts": {
"test": "gulp test"
},
"engines" : {
"node": ">=4.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/4ver/node-auto-launch"
Expand All @@ -14,6 +17,7 @@
"login",
"launch",
"node-webkit",
"electron",
"boot",
"login-items"
],
Expand All @@ -40,7 +44,6 @@
"homepage": "https://github.com/4ver/node-auto-launch",
"dependencies": {
"applescript": "^1.0.0",
"es6-promise": "^3.1.2",
"mkdirp": "^0.5.1",
"untildify": "^2.1.0",
"winreg": "1.0.1"
Expand Down
1 change: 0 additions & 1 deletion src/AutoLaunchLinux.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
fs = require('fs')
mkdirp = require('mkdirp')
untildify = require('untildify')
Promise = require('es6-promise').Promise

module.exports =
getDir: (opts) ->
Expand Down
1 change: 0 additions & 1 deletion src/AutoLaunchMac.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
applescript = require 'applescript'
Promise = require('es6-promise').Promise

tellTo = 'tell application "System Events" to '

Expand Down
1 change: 0 additions & 1 deletion src/AutoLaunchWindows.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
fs = require 'fs'
path = require 'path'
Winreg = require 'winreg'
Promise = require('es6-promise').Promise

regKey = new Winreg
hive: Winreg.HKCU
Expand Down
2 changes: 0 additions & 2 deletions src/index.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Promise = require('es6-promise').Promise

# Public: REPLACE_WITH_DESCRIPTION
module.exports = class AutoLaunch

Expand Down

0 comments on commit 83fd983

Please sign in to comment.