npm command mini tips and news for front-end developer at CodeGrid 3rd anniversary party in Tokyo
npm command mini tips and news for front-end developer at CodeGrid 3rd anniversary party in Tokyo
Nodemailerにpull req送って取り込まれたのはいいものの、npmにアップしてくれないのでどうしたものかと思ってたけど、そういえばnpm installはtarballのURLも指定できたことを思い出したので、forkした自分のリポジトリにtagつけてtarballつくった。 https://github.com/hokaccha/Nodemailer/downloads そうすると $ npm install https://github.com/hokaccha/Nodemailer/tarball/v0.2.2-patchedこれでパッチが当たったバージョンをインストールできる。 package.jsonに依存を書く場合は "dependencies": { "nodemailer": "https://github.com/hokaccha/Nodemailer/tar
今までtag打たないとtarball取れないと思ってたけど https://github.com/[usernmae]/[project]/tarball/[sha1] で取れることに気づいた。
Nov 24, 2012 先日、YUIコミッターのokuryu氏から、npmのプライベートリポジトリを作る手順をまとめたいい記事があるよと教えてもらいました。実は以前プライベートリポジトリの構築をしようとしてうまくいかずに諦めたことがあったので、記事に書いてある手順を読みながら、改めて手元の環境に構築できるかを試してみました。 CouchDBのインストール npmリポジトリのバックエンドには、CouchDBが使われているので先にこれをインストールします。手元の環境にはHomebrewがインストールされているので、今回は手っ取り早くbrewコマンドからインストールしました。 $ brew install couchdb npmのバックエンドとして使う場合には、CouchDBのsecure_rewriteオプションを無効化する必要があるようなので、以下のようにして設定を変更しておきましょう。
Specifics of npm's package.json handling DESCRIPTION This document is all you need to know about what's required in your package.json file. It must be actual JSON, not just a JavaScript object literal. A lot of the behavior described in this document is affected by the config settings described in npm-config(7). name The most important things in your package.json are the name and version fields. T
npmって意外と高機能で、色んなこと(こんなのとか)が出来る。 で、最近知ったのがnpm config。 https://github.com/isaacs/npm/blob/master/doc/config.md ちゃんとドキュメント見たことなかったから知らなかったけど、これで諸々の設定値を保存しておいたりできる、とのこと。 例えば $ npm config set foo bar $ npm config get foo barこんなカンジでkeyとvalueを設定する。list表示でまとめて確認も可能。 $ npm config list ; userconfig /home/sugyan/.npmrc foo = "bar" ; node install prefix = /home/sugyan/.nvm/v0.4.11 ; node bin location = /home/
全然季節外れだけど。 今日@muddydixonさんのTweet なんだこれ!ww URL 2011-06-07 15:30:57 via web を見て初めてnpmコマンドに隠しサブコマンドがあることを知った。npm xmasと打つとクリスマスツリーが出るのね。 こんなかんじ。 https://github.com/isaacs/npm/blob/master/lib/xmas.js ソース見てもよく分からなかったのでPerlで書き直してみた。 #!/usr/bin/env perl use strict; use warnings; use Encode 'encode_utf8'; my $s = ' ' . encode_utf8(pack 'U', 0x2605); my $f = encode_utf8(pack 'U', 0xFF0F); my $b = encode_utf
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く