This repository has been archived by the owner on May 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from Ferrari/npm-weekly-6
翻譯 npm 週報 #6
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
title: npm 週報 2015-02-24 | ||
date: 2015-02-24 12:00:00 | ||
tags: | ||
categories: npm 週報 | ||
--- | ||
|
||
我們決定將改變排程,將週報改到星期二,這也是為什麼你現在會看到這篇的原因。不過你仍然可以選擇[直接收到週報](https://www.npmjs.com/npm-weekly)的方式。 | ||
|
||
## CLI 的新功能 | ||
|
||
npm 的最新版號是 2.6.0。在這版本中加入一個新的指令 `npm logout`,在以 auth tokens 取代帳號密碼這種更好認證方法的路上,又向前邁進了一步。 | ||
|
||
當你登入到支援 token-based 認證方式的套件庫,這個指令將告訴伺服器終止 token 的 session,所有裝置上的 token 都將無效,而不單只有目前使用的裝置。 | ||
|
||
## npm@3 將會有什麼改變 | ||
|
||
![](http://media.tumblr.com/a9bc8311e63c86db3d2debd6dc7eea72/tumblr_inline_nkag6xyiwC1t68bpr.png) | ||
|
||
在上週的週報中有提到在 npm@3 將會有扁平化的 node_modules 目錄結構。這個星期我們將展示它會對於 npm 其他的工具的影響。舉個例子,當你安裝 event-emiiter。如果你執行 ls node_modules,你將會看到所有的依存套件處在同一層中,但是當你執行 npm ls 的指令,你會看到依存關係樹。這是因為 npm 工具將會知道依存套件之間真正的關聯。 | ||
|
||
## 每月達到十億次的下載量 | ||
|
||
![](http://media.tumblr.com/cb372793ebfbc90e243c8be357422188/tumblr_inline_nkag7ewgMe1t68bpr.png) | ||
|
||
We crossed a big threshold here at npm. For the first time, our “downloads in the last month” ticker passed 1,000,000,000. We had our first 30-day window where more than 1 billion packages were downloaded. That’s a lot of packages. | ||
npm 跨過了一個[重大的里程碑](https://twitter.com/seldo/status/566403297368485888),這是我們的「月下載次數」首次超過了十億次的下載量。 | ||
|
||
## jQuery 開發者,歡迎! | ||
|
||
如果你沒注意到這個消息,jQuery 擴充套件庫目前只提供讀取的功能,他們建議開發者們將擴充發佈到 npm 上。我們撰寫了提供開發者可以輕鬆轉換,以 [Publishing your jQuery plugin to npm, the quick and dirty way](http://blog.npmjs.org/post/111475741445/publishing-your-jquery-plugin-to-npm-the-quick) 這篇文章作為開頭。 |