mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
65 lines
1.7 KiB
JavaScript
65 lines
1.7 KiB
JavaScript
Package.describe({
|
|
summary: "Given the set of the constraints, picks a satisfying configuration",
|
|
version: '2.0.0',
|
|
});
|
|
|
|
Npm.depends({
|
|
'lodash.has': '4.5.2',
|
|
'lodash.memoize': '4.1.2',
|
|
'lodash.isequal': '4.5.0',
|
|
'lodash.isempty': '4.4.0',
|
|
'lodash.zip': '4.2.0',
|
|
'lodash.groupby': '4.6.0',
|
|
'lodash.isstring': '4.0.1',
|
|
'lodash.isobject': '3.0.2'
|
|
});
|
|
|
|
Package.onUse(function (api) {
|
|
api.export('ConstraintSolver');
|
|
api.use([
|
|
'ecmascript',
|
|
'check',
|
|
'package-version-parser',
|
|
'logic-solver'
|
|
]);
|
|
api.addFiles([
|
|
'datatypes.js',
|
|
'catalog-cache.js',
|
|
'catalog-loader.js',
|
|
'constraint-solver-input.js',
|
|
'version-pricer.js',
|
|
'solver.js',
|
|
'constraint-solver.js']);
|
|
});
|
|
|
|
Package.onTest(function (api) {
|
|
api.use('constraint-solver');
|
|
api.use([
|
|
'tinytest',
|
|
'minimongo',
|
|
'package-version-parser',
|
|
'check'
|
|
]);
|
|
|
|
// Only test the package on the server. Mainly because of
|
|
// package-version-parser, which uses the semver npm module,
|
|
// this package is not "IE 8 clean". However, it works on
|
|
// modern browsers.
|
|
var where = ['server'];
|
|
|
|
// Data for old big, slow tests, which are hidden behind an environment
|
|
// variable
|
|
api.addFiles('gem-test-data.js', where);
|
|
// Data for a case that used to take 20 seconds with the old solver
|
|
api.addFiles('slow-test-data.js', where);
|
|
// Data for a case that used to cause a stack overflow
|
|
api.addFiles('stack-overflow-bug-test-data.js', where);
|
|
|
|
api.addFiles('datatypes-tests.js', where);
|
|
api.addFiles('catalog-cache-tests.js', where);
|
|
api.addFiles('constraint-solver-tests.js', where);
|
|
api.addFiles('benchmark-tests.js', where);
|
|
api.addFiles('input-tests.js', where);
|
|
api.addFiles('version-pricer-tests.js', where);
|
|
});
|