mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
28 lines
837 B
JavaScript
28 lines
837 B
JavaScript
|
|
Package.describe({
|
|
summary: "Collection of small helpers: _.map, _.each, ...",
|
|
version: '1.6.2-rc300.2',
|
|
});
|
|
|
|
Npm.depends({
|
|
'@types/underscore': '1.11.9',
|
|
});
|
|
Package.onUse(function (api) {
|
|
api.export('_');
|
|
|
|
// NOTE: we patch _.each and various other functions that polymorphically take
|
|
// objects, arrays, and array-like objects (such as the querySelectorAll
|
|
// return value, document.images, and 'arguments') such that objects with a
|
|
// numeric length field whose constructor === Object are still treated as
|
|
// objects, not as arrays. Search for looksLikeArray.
|
|
api.addFiles(['pre.js', 'underscore.js', 'post.js']);
|
|
|
|
api.addAssets('underscore.d.ts', 'server');
|
|
});
|
|
|
|
|
|
Package.onTest(function (api) {
|
|
// Also turn off the strong 'meteor' dependency in the test slice
|
|
api.use('meteor', {unordered: true});
|
|
});
|