Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #79 from atdrago/feature/adam/enhance-readme
Browse files Browse the repository at this point in the history
Feature/adam/enhance readme
  • Loading branch information
atdrago committed May 11, 2016
2 parents c67b2e5 + 2aeea40 commit e976474
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 15 deletions.
50 changes: 35 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,50 @@
# Negative

Use Negative to visually compare differences between two scenes. Negative is great for web and application development, when trying to match your build to the provided comp.
> An app for making visual comparison.
![Negative Demo](negative-demo.gif)

## Shortcuts
- <kbd>&#8984;G</kbd> - Take a screenshot
- <kbd>&larr;</kbd> <kbd>&uarr;</kbd> <kbd>&rarr;</kbd> <kbd>&darr;</kbd> - Move the window 1px
- <kbd>&#8679;&larr;</kbd> <kbd>&#8679;&uarr;</kbd> <kbd>&#8679;&rarr;</kbd> <kbd>&#8679;&darr;</kbd> - Move the window 10px
- <kbd>&#8984;F</kbd> - Fit window to image
- <kbd>&#8984;T</kbd> - New tab
- <kbd>&#8984;}</kbd> <kbd>&#8984;{</kbd> - Select next or previous tab
- <kbd>&#8997;&#8984;}</kbd> <kbd>&#8997;&#8984;{</kbd> - Select next or previous tab + fit window to image
- <kbd>&#8963;&#8984;H</kbd> - Hide or show Negative (from any app)
## User Documentation

## Build Process
- [Usage](docs/usage.md)

1. [Install Node.js](https://nodejs.org/en/) v4 or greater
## Build Negative.app

Currently only Mac OS X is supported.

1. [Install Node.js](https://nodejs.org/en/) v4 or v5
2. `git clone https://github.com/atdrago/negative.git`
3. `cd negative`
4. `git checkout tags/v0.6.0`
4. `npm install`
5. `npm run build`
6. Locate and copy `dist/Negative-darwin-x64/Negative.app` to your `Applications` folder

## Support
Currently only Mac OS X is supported.
## Testing

*Important:* Tests get run against the **built app**. If you are attempting to run tests and the results are not what you expected, you need to run `npm run build` again.

1. `npm run build`
2. `npm run test`

## Developing

### Compiling
- `gulp` - Compile, combine, and minify files for the renderer process. This isn't necessary for files in the main process. Make sure this is running when working on UI.

### NPM Scripts
- `npm start` - Start the app with the following environment variables:
- NODE_ENV=development
- ELECTRON_ENABLE_LOGGING=true
- `npm run build` - Build the production app
1. Compiles JavaScript and Sass
2. Copies necessary files to `./release/`
3. Runs `npm install --production` in `./release/`
4. Builds the app moves it to `./dist/`
- `npm run lint` - Run ESLint
- `npm run test` - Run Mocha tests

## Contributing
All contributions are welcome!! Please check [negative/issues](https://github.com/atdrago/negative/issues) for things that need attention, or feel free to create your own. Please make sure you create an issue *first*, and then do the work and a submit a PR.

## About
Created by [Adam Drago](http://adamdrago.com). Icon by [Tiffany Wang](mailto:[email protected]). Built on [Electron](http://electron.atom.io/).
16 changes: 16 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Negative Usage

## Shortcuts
| Keys | Function |
|---|---|
| Command + G | Take a Screenshot |
| Arrow Keys | Move the Window 1px |
| Shift + Arrow Keys | Move the Window 10px |
| Command + F | Fit Window to Image |
| Command + T | New Tab |
| Command + W | Close Tab |
| Command + } | Next Tab |
| Command + { | Previous Tab |
| Command + Shift + } | Next Tab and Resize |
| Command + Shift + { | Previous Tab and Resize |
| Command + Control + H | Hide or show Negative (from any app) |

0 comments on commit e976474

Please sign in to comment.