Skip to content

Commit

Permalink
rm dependency on babel
Browse files Browse the repository at this point in the history
  • Loading branch information
austinhallock committed Jul 16, 2020
1 parent d69c1f8 commit cdee9c8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
env: {
commonjs: true,
es6: true,
node: true
},
Expand All @@ -11,7 +10,6 @@ module.exports = {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 11
},
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ app.get('/parseWebsitesByNtee', function (req, res) {

const serverPromise = schemaPromise.then((schema) => {
({ typeDefs, resolvers, schemaDirectives } = schema)
console.log('tdr', typeDefs)
schema = buildFederatedSchema({ typeDefs, resolvers })
// https://github.com/apollographql/apollo-feature-requests/issues/145
SchemaDirectiveVisitor.visitSchemaDirectives(schema, schemaDirectives)
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
},
"author": "",
"devDependencies": {
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"babel-eslint": "^10.1.0",
"eslint": "^7.2.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.21.2",
Expand Down
6 changes: 3 additions & 3 deletions services/setup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'fs'
import _ from 'lodash'
import Promise from 'bluebird'
import {
import {
cknex, elasticsearch, ElasticsearchSetup, JobRunner, ScyllaSetup, Cache, PubSub
} from 'backend-shared'

Expand Down Expand Up @@ -29,7 +29,7 @@ async function setup () {
}))
const elasticSearchIndices = _.flatten(await Promise.map(graphqlFolders, async (folder) => {
const model = await import(`../graphql/${folder}/model.js`)

return model?.default?.getElasticSearchIndices?.() || []
}))

Expand All @@ -38,7 +38,7 @@ async function setup () {
(config.SCYLLA.CONTACT_POINTS[0] === 'localhost')

await Promise.all(_.filter([
shouldRunSetup && ScyllaSetup.setup(scyllaTables, {isDev})
shouldRunSetup && ScyllaSetup.setup(scyllaTables, { isDev })
.then(() => console.log('scylla setup')),
shouldRunSetup && ElasticsearchSetup.setup(elasticSearchIndices)
.then(() => console.log('elasticsearch setup'))
Expand Down

0 comments on commit cdee9c8

Please sign in to comment.