add license header

Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
Alexis Tyler
2019-06-14 11:08:16 +09:30
parent e81303d98b
commit 1da02e1610
7 changed files with 86 additions and 2 deletions

View File

@@ -1,3 +1,15 @@
/*
* Copyright 2005-2019, Lime Technology
* Copyright 2018-2019, Alexis Tyler
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
const env = process.env.NODE_ENV === 'production';
const GRAPHQL_PORT = process.env.GRAPHQL_PORT || 5000;

View File

@@ -1,4 +1,16 @@
module.exports = function ($injector, glob, get, graphql, graphqlDirective, mergeGraphqlSchemas, ApiManager, log, typeDefs, resolvers, loadState, AppError) {
/*
* Copyright 2005-2019, Lime Technology
* Copyright 2018-2019, Alexis Tyler
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
module.exports = function ($injector, glob, get, graphql, graphqlDirective, mergeGraphqlSchemas, ApiManager, log, typeDefs, resolvers, loadState, AppError) {
const apiManager = new ApiManager();
const { buildSchema } = graphql;
const { addDirectiveResolveFunctionsToSchema } = graphqlDirective;

View File

@@ -1,3 +1,15 @@
/*
* Copyright 2005-2019, Lime Technology
* Copyright 2018-2019, Alexis Tyler
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
module.exports = function (deepmerge, GraphQLJSON, GraphQLLong, GraphQLUUID) {
return deepmerge.all([
{

View File

@@ -1,3 +1,15 @@
/*
* Copyright 2005-2019, Lime Technology
* Copyright 2018-2019, Alexis Tyler
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
module.exports = function (path, mergeGraphqlSchemas) {
const { join } = path;
const { fileLoader, mergeTypes } = mergeGraphqlSchemas;

View File

@@ -1,3 +1,15 @@
/*
* Copyright 2005-2019, Lime Technology
* Copyright 2018-2019, Alexis Tyler
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
const path = require('path');
const am = require('am');
const camelcase = require('camelcase');

View File

@@ -1,4 +1,16 @@
/**
/*
* Copyright 2005-2019, Lime Technology
* Copyright 2018-2019, Alexis Tyler
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
/**
* The Graphql server.
*/
module.exports = function ($injector, fs, net, express, config, log, getEndpoints, stoppable) {

View File

@@ -1 +1,13 @@
/*
* Copyright 2005-2019, Lime Technology
* Copyright 2018-2019, Alexis Tyler
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
require('./app');