Merge branch 'mob/union-types' of github.com:spotify/backstage into mob/union-types

* 'mob/union-types' of github.com:spotify/backstage: (34 commits)
  fix(yarn): fixup yarn.lock
  docs(catalog/grqphql): updating docs
  chore(gql/catalog): fixing some code review comments
  chore(gql/catalog): fixing dependencies
  chore: reverting code
  feat(gql/catalog): to remove the duplication in the schema thanks to the limitations on implements, let's create the schema using javascript
  feat(gql/catalog): working on making the schema nice
  feat(gql/catalog): Reduce the amount of duplication a little for unions
  chore(catalog/gql): fixing csp for playground
  chore(catalog/gql): move the catalog schema out of src
  chore(gql/catalog): updating the return types from the catalog api
  chore(gql/catalog): removing the mock data scripts for catalog-graph  l
  chore(gql/catalog): actually read
  chore(gql/catalog): fixing bundling of graphql asse
  chore(gql/catalog): removing the mock-data stuff
  feat(gql/catalog): implement the label resolver
  feat(gql/catalog): Fixing some of the query issues
  chore(gql/catalog): making the client alittle more readabke
  chore(gql/catalog): Added some more metadata fields to the catalog entities
  feat(gql/catlaog): Tidying up the resolver for the annotations
  ...
This commit is contained in:
blam
2020-09-17 14:22:58 +02:00
5 changed files with 570 additions and 393 deletions
+6 -16
View File
@@ -13,21 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { CatalogClient } from './client';
import { getRootLogger } from '@backstage/backend-common';
import yn from 'yn';
import { startStandaloneServer } from './service/standaloneServer';
const port = process.env.PLUGIN_PORT ? Number(process.env.PLUGIN_PORT) : 7000;
const enableCors = yn(process.env.PLUGIN_CORS, { default: false });
const logger = getRootLogger();
startStandaloneServer({ port, enableCors, logger }).catch(err => {
logger.error(err);
process.exit(1);
});
process.on('SIGINT', () => {
logger.info('CTRL+C pressed; exiting.');
process.exit(0);
describe('Catalog GraphQL Module', () => {
it('create a new client', () => {
void new CatalogClient('http://localhost:1234');
expect(true).toBe(true);
});
});