|
2 | 2 | Package.describe({ |
3 | 3 | name: 'aldeed:simple-schema', |
4 | 4 | summary: 'A simple schema validation object with reactivity. Used by collection2 and autoform.', |
5 | | - version: '2.0.0', |
| 5 | + version: '1.13.1', |
6 | 6 | git: 'https://github.com/aldeed/meteor-simple-schema.git' |
7 | 7 | }); |
8 | 8 |
|
9 | 9 | Npm.depends({ |
10 | 10 | 'mongo-object': '3.0.1', |
11 | 11 | 'message-box': '0.2.7', |
12 | 12 | 'clone': '2.1.2' |
13 | | -}) |
| 13 | +}); |
14 | 14 |
|
15 | 15 | Package.onUse(function (api) { |
16 | | - api.versionsFrom(['1.3', '2.3', '3.0-alpha.19']) |
17 | | - api.use('ecmascript') |
18 | | - api.mainModule('lib/main.js') |
| 16 | + api.versionsFrom(['1.3', '2.3', '3.0-alpha.19']); |
| 17 | + api.use('ecmascript'); |
| 18 | + api.mainModule('lib/main.js'); |
19 | 19 | }); |
20 | 20 |
|
21 | 21 | Package.onTest(function (api) { |
| 22 | + api.use([ |
| 23 | + 'lmieulet:meteor-legacy-coverage', |
| 24 | + |
| 25 | + 'meteortesting:[email protected]', |
| 26 | + 'meteortesting:browser-tests', |
| 27 | + ]) |
| 28 | + |
| 29 | + api.versionsFrom(['2.3', '2.8.1']) |
| 30 | + |
22 | 31 | api.use([ |
23 | 32 | 'ecmascript', |
24 | 33 | 'tracker', |
25 | | - 'meteortesting:[email protected]', |
26 | | - 'meteortesting:[email protected]', |
27 | 34 | 'mongo', |
28 | 35 | 'aldeed:simple-schema' |
29 | | - ]) |
30 | | - api.mainModule('lib/main.tests.js') |
31 | | -}) |
| 36 | + ]); |
| 37 | + |
| 38 | + api.addFiles([ |
| 39 | + 'lib/clean/autoValue.tests.js', |
| 40 | + 'lib/clean/convertToProperType.tests.js', |
| 41 | + 'lib/clean/defaultValue.tests.js', |
| 42 | + 'lib/clean/setAutoValues.tests.js', |
| 43 | + 'lib/utility/getLastPartOfKey.tests.js', |
| 44 | + 'lib/clean.tests.js', |
| 45 | + 'lib/expandShorthand.tests.js', |
| 46 | + 'lib/humanize.tests.js', |
| 47 | + 'lib/SimpleSchema.tests.js', |
| 48 | + 'lib/SimpleSchema_allowedValues.tests.js', |
| 49 | + 'lib/SimpleSchema_autoValueFunctions.tests.js', |
| 50 | + 'lib/SimpleSchema_blackbox.tests.js', |
| 51 | + 'lib/SimpleSchema_custom.tests.js', |
| 52 | + 'lib/SimpleSchema_definition.tests.js', |
| 53 | + 'lib/SimpleSchema_extend.tests.js', |
| 54 | + 'lib/SimpleSchema_getObjectSchema.tests.js', |
| 55 | + 'lib/SimpleSchema_getQuickTypeForKey.tests.js', |
| 56 | + 'lib/SimpleSchema_labels.tests.js', |
| 57 | + 'lib/SimpleSchema_max.tests.js', |
| 58 | + 'lib/SimpleSchema_messages.tests.js', |
| 59 | + 'lib/SimpleSchema_min.tests.js', |
| 60 | + 'lib/SimpleSchema_minCount.tests.js', |
| 61 | + 'lib/SimpleSchema_namedContext.tests.js', |
| 62 | + 'lib/SimpleSchema_omit.tests.js', |
| 63 | + 'lib/SimpleSchema_oneOf.tests.js', |
| 64 | + 'lib/SimpleSchema_pick.tests.js', |
| 65 | + 'lib/SimpleSchema_regEx.tests.js', |
| 66 | + 'lib/SimpleSchema_required.tests.js', |
| 67 | + 'lib/SimpleSchema_rules.tests.js', |
| 68 | + 'lib/SimpleSchema_type.tests.js', |
| 69 | + 'lib/reactivity.tests.js' |
| 70 | + ]); |
| 71 | +}); |
0 commit comments