Skip to content

Commit

Permalink
fix: Remove postinstall, export taskbarLocation (#226)
Browse files Browse the repository at this point in the history
* Remove postinstall

* Export taskbar position

* Update travis

* Fix export

* Correct export
  • Loading branch information
amaury1093 authored Jun 11, 2019
1 parent 6000538 commit 941b3be
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ install:
- yarn install
script:
- yarn lint
- yarn build
- yarn test
1 change: 1 addition & 0 deletions examples/arrow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Thanks @leilarrossi for this example, see https://github.com/maxogden/menubar/is

- Clone the repository.
- Run `yarn install` from the root folder.
- Run `yarn build` from the root folder.
- `cd` into this directory.
- Run `yarn install` to install this example's dependencies.
- Run `yarn start` from this directory to run app.
1 change: 1 addition & 0 deletions examples/hello-world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This is a simple Hello World menubar app that will just open a window that says

- Clone the repository.
- Run `yarn install` from the root folder.
- Run `yarn build` from the root folder.
- `cd` into this directory.
- Run `yarn install` to install this example's dependencies.
- Run `yarn start` from this directory to run app.
1 change: 1 addition & 0 deletions examples/native-menu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Courtesy of @tslater in https://github.com/maxogden/menubar/issues/178.

- Clone the repository.
- Run `yarn install` from the root folder.
- Run `yarn build` from the root folder.
- `cd` into this directory.
- Run `yarn install` to install this example's dependencies.
- Run `yarn start` from this directory to run app.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"prebuild": "rimraf lib/",
"build": "tsc",
"lint": "tslint --project .",
"postinstall": "yarn build",
"test": "jest"
},
"types": "lib/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { app } from 'electron';
import { Menubar } from './Menubar';
import { Options } from './types';

export * from './util/getWindowPosition';
export { Menubar };

export function menubar (options?: Partial<Options> | string) {
Expand Down
2 changes: 1 addition & 1 deletion src/util/getWindowPosition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Tray } from 'electron';
*
* @param tray - The Electron Tray instance.
*/
function taskbarLocation (tray: Tray) {
export function taskbarLocation (tray: Tray) {
const trayBounds = tray.getBounds();

// Determine taskbar location
Expand Down

0 comments on commit 941b3be

Please # to comment.