js库的分发

Distribution of js library

我想创建一个 js 库来帮助进行 jasmine 测试。分发此类库的 js 方式是什么?节点模块?凉亭?两个都?还有别的吗? js世界的行业标准是什么?

npm is the de facto standard for backend Node-based modules and is rapidly gaining traction for front-end development as well. bower is very popular for front-end things, although npm is actively trying to become the front-end standard as well.

这是一个意见问题,可能因此不适合 Whosebug,但我会说:不管 npm 是什么,如果你的库在前端,还需要 bower。