Skip to content

Instantly share code, notes, and snippets.

@uupaa
Last active August 29, 2015 14:12
Show Gist options
  • Select an option

  • Save uupaa/5bf7b9886ab5437b8a71 to your computer and use it in GitHub Desktop.

Select an option

Save uupaa/5bf7b9886ab5437b8a71 to your computer and use it in GitHub Desktop.
node-webkit install and settings

NW.js(node-webkit) をインストールし設定します

https://github.com/rogerwang/node-webkit#downloads から Mac 64bit 版の最新を取得し、適当なディレクトリ(例: ~/workspace)以下に展開します

$ tree -d

~/workspace
    ├── MyExample.js
    ├── WebModule
    └── nw
        └── nwjs.app

シェルの設定ファイル(例: .zshrc)に、nw コマンドを追加します。

alias nw="~/workspace/nw/nwjs.app/Contents/MacOS/nwjs"

上記の設定を行うと、$ nw test コマンドで、NW.js を使ったテストが実行可能になります。

$ cd ~/workspace/MyExample.js
$ nw test

    ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment