Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dist: trusty
sudo: required
language: node_js
node_js:
- "8"
- "20"
addons:
chrome: stable
cache:
Expand Down
46 changes: 18 additions & 28 deletions package.js
Original file line number Diff line number Diff line change
@@ -1,46 +1,36 @@
/* eslint-disable no-var, prefer-arrow-callback */
var packages = [
'ecmascript',
'isobuild:[email protected]',
];
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',
name: "swydo:graphql",
version: "2.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',
],
name: "compile-graphql",
use: ["ecmascript"],
sources: ["compiler.js", "plugin.js"],
npmDependencies: {
graphql: '15.5.0',
'graphql-tag': '2.11.0',
graphql: "16.8.1",
"graphql-tag": "2.12.6",
},
});

Package.onUse(function use(api) {
api.versionsFrom('1.3.2.4');
api.versionsFrom('3.0');

api.use(packages, ['server', 'client']);
api.use(packages, ["server", "client"]);
});

Package.onTest(function test(api) {
api.use(packages, ['server', 'client']);
api.use('swydo:graphql');
api.use(packages, ["server", "client"]);
api.use("swydo:graphql");

api.use([
'meteortesting:mocha',
]);
api.use(["meteortesting:mocha"]);

api.mainModule('specs/server.spec.js', 'server');
api.mainModule('specs/client.spec.js', 'client');
api.mainModule("specs/server.spec.js", "server");
api.mainModule("specs/client.spec.js", "client");
});
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "meteor-graphql",
"private": true,
"version": "1.0.0",
"version": "2.0.0",
"description": "Import GraphQL files in Meteor",
"main": "lib/setup.js",
"dependencies": {},
"devDependencies": {
"chai": "^4.1.2",
"eslint": "^4.18.1",
"eslint-config-airbnb-base": "^14.0.0",
"chai": "^4.3.7",
"eslint": "^8.47.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-import-resolver-meteor": "^0.4.0",
"eslint-plugin-import": "2.20.2"
"eslint-plugin-import": "2.28.1"
},
"scripts": {
"eslint": "eslint ./lib",
Expand Down