1.0.18 • Published 4 years ago

malta-apollo-srv v1.0.18

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

npm version npm downloads npm downloads


This plugin is highly experimental, can be used on all files:

Parameters :
- types : a folder (relative to malta execution one) where an index.js will export all needed types
- resolvers : a folder (relative to malta execution one) where an index.js will export all needed resolvers
- context: a path to a file that will export the needed context to be used in Apollo - port: this is optional, default is 4000 - host: this is optional, default is localhost

Sample usage:

malta app/source/index.html public -plugins=malta-apollo-srv[types:\"graphql/types\",resolvers:\"graphql/resolvers\",context:\"graphql/context\"]

or in the .json file :

"app/source/index.html" : "public -plugins=malta-apollo-srv[types:'graphql/types',resolvers:'graphql/resolvers',context:'graphql/context']"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/source/index.html',
    'public',
    '-plugins=malta-apollo-srv[types:\"graphql/types\",resolvers:\"graphql/resolvers\",context:\"graphql/context\"]',
    '-options=showPath:false,watchInterval:500,verbose:0'
]).start();

a full example can be found here

1.0.18

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago