TermKit icon indicating copy to clipboard operation
TermKit copied to clipboard

use npm for install

Open ritch opened this issue 13 years ago • 5 comments

Since npm is already a dependency I suggest you create this as an npm package. It would change this:

  1. Install the Mac development tools (Xcode and friends).
  2. Install node.js.
  3. If not covered in #2, install npm: curl http://npmjs.org/install.sh | sh
  4. Install node-mime: npm install mime
  5. Clone the TermKit repository: git clone [email protected]:unconed/TermKit.git --recursive
  6. Users of older git versions will need to type: git submodule update --init
  7. Run the NodeKit daemon: cd TermKit/Node; node nodekit.js
  8. Unzip and run the Mac app in Build/TermKit.zip

Into this:

  1. Install the Mac development tools (Xcode and friends).
  2. Install node.js.
  3. If not covered in #2, install npm: curl http://npmjs.org/install.sh | sh
  4. $ npm install termkit

Where number 4 automates 5, 6, 7 and 8.

Just a thought. If you are interested in adding this, I'd be glad to help with #4.

ritch avatar May 19 '11 23:05 ritch

+1 for this idea. Not sure if there a specific reason why this can't be done.

shazmoh avatar May 21 '11 23:05 shazmoh

I don't think that's the intention, since the final product will be a self containing app...

djbe avatar May 22 '11 22:05 djbe

Well for now, it could be the means of installing for the people who want to use it now. Eventually the packaged app can either make use of this method, or bundle the node modules. Perhaps both? Npm is the simplest way to manage node dependencies, there's no reason to over complicate it.

ritch avatar May 23 '11 00:05 ritch

or 4. $npm install termkit-dev

to install specifically from cutting edge git, and download package for stable releases. Might I also suggest that running termkit.app also start up the node.js server, and provide a log window.

kriswill avatar Jun 21 '11 23:06 kriswill

setting up a package.json file was working great for me. (Currently working through the recent socket.io 0.7 and git submodule changes)

I got my package.json file from Floby's branch

Is there a reason why the socket.io is a submodule instead of a npm install?

kbrock avatar Jul 26 '11 01:07 kbrock