forked from brzpegasus/ember-cli-nwjs
-
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
1 parent
3ad4f7f
commit 5a49472
Showing
1 changed file
with
35 additions
and
5 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 |
---|---|---|
|
@@ -7,15 +7,16 @@ It also provides a convenient command (`ember nw`) to both build the app and lau | |
|
||
## Usage | ||
|
||
* `ember addon:install ember-cli-node-webkit` | ||
``` | ||
ember install:addon ember-cli-node-webkit | ||
``` | ||
|
||
or | ||
|
||
* `npm install --save-dev ember-cli-node-webkit` | ||
* `ember g node-webkit` | ||
This will install the addon to your Ember CLI project as a dev dependency, and apply the necessary configuration from the `node-webkit` blueprint. | ||
|
||
## Command | ||
|
||
The addon makes the following command available for you to use in your Ember CLI project: | ||
|
||
* `ember nw` | ||
|
||
To specify a specific target environment: | ||
|
@@ -36,3 +37,32 @@ This addon will try to determine the path to the NW.js executable based on the c | |
* Other: `nw` (assuming it is in your PATH) | ||
|
||
You can always change this value by specifying an environment property called `NW_PATH` that points to the binary file. The addon will read in the value via `process.env.NW_PATH` and use it, if present. | ||
|
||
## Working with master | ||
|
||
To install the addon from `master`, run the following: | ||
|
||
``` | ||
git clone [email protected]:brzpegasus/ember-cli-node-webkit.git | ||
cd ember-cli-node-webkit | ||
npm link | ||
``` | ||
|
||
Then, navigate to your Ember CLI project and add the addon as a dev dependency in your `package.json`. The version doesn't really matter, so long as it satisfies the `npm link`'ed package version. The package just needs to be listed so Ember CLI can discover the addon: | ||
|
||
```json | ||
{ | ||
"devDependencies": { | ||
"ember-cli-node-webkit": "*" | ||
} | ||
} | ||
``` | ||
|
||
Finally, run the following to finish installing: | ||
|
||
``` | ||
npm link ember-cli-node-webkit | ||
npm install | ||
bower install | ||
ember g node-webkit | ||
``` |