forked from Swydo/meteor-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
46 lines (39 loc) · 943 Bytes
/
package.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* eslint-disable no-var, prefer-arrow-callback */
var packages = [
'ecmascript',
'isobuild:[email protected]',
];
Package.describe({
name: 'swydo:graphql',
version: '1.0.0',
summary: 'Compiler plugin that supports GraphQL files in Meteor',
git: 'https://github.com/swydo/meteor-graphql',
documentation: 'README.md',
});
Package.registerBuildPlugin({
name: 'compile-graphql',
use: [
'ecmascript',
],
sources: [
'compiler.js',
'plugin.js',
],
npmDependencies: {
graphql: '15.5.0',
'graphql-tag': '2.11.0',
},
});
Package.onUse(function use(api) {
api.versionsFrom('1.3.2.4');
api.use(packages, ['server', 'client']);
});
Package.onTest(function test(api) {
api.use(packages, ['server', 'client']);
api.use('swydo:graphql');
api.use([
'meteortesting:mocha',
]);
api.mainModule('specs/server.spec.js', 'server');
api.mainModule('specs/client.spec.js', 'client');
});