Skip to content

Commit

Permalink
refactor(SLB-201): symlink autoloaders instead of building them to th…
Browse files Browse the repository at this point in the history
…e outside
  • Loading branch information
pmelab committed Jan 23, 2024
1 parent 990d8ce commit 40d8dd4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions apps/cms/config/sync/graphql.graphql_servers.main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
uuid: f31854e4-2c2b-4687-9553-9f2d1f87028c
langcode: en
status: true
dependencies: { }
dependencies: {}
name: main
label: Main
endpoint: /graphql
Expand All @@ -15,7 +15,7 @@ query_complexity: null
schema_configuration:
directable:
schema_definition: ../node_modules/@custom/schema/build/schema.graphql
autoload_registry: ../autoload.json
autoload_registry: ../node_modules/@custom/schema/build/drupal-autoload.json
extensions:
silverback_campaign_urls: silverback_campaign_urls
silverback_gatsby: silverback_gatsby
Expand Down
2 changes: 0 additions & 2 deletions apps/website/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@
public
styles.css
persisted-store

autoload.mjs
1 change: 1 addition & 0 deletions apps/website/gatsby-autoload.mjs
2 changes: 1 addition & 1 deletion apps/website/gatsby-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { getPages } from '@custom/decap';
import { resolve } from 'path';

import autoload from './autoload.mjs';
import autoload from './gatsby-autoload.mjs';

const dir = resolve('node_modules/@custom/decap/data/page');

Expand Down
4 changes: 2 additions & 2 deletions packages/schema/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const config: CodegenConfig = {
plugins: ['@amazeelabs/codegen-operation-ids'],
},
// Directive autoloader for Gatsby.
'../../apps/website/autoload.mjs': {
'build/gatsby-autoload.mjs': {
plugins: ['@amazeelabs/codegen-autoloader'],
config: {
mode: 'js',
Expand All @@ -41,7 +41,7 @@ const config: CodegenConfig = {
},
},
// Directive autoloader for Drupla.
'../../apps/cms/autoload.json': {
'build/drupal-autoload.json': {
plugins: ['@amazeelabs/codegen-autoloader'],
config: {
mode: 'drupal',
Expand Down
6 changes: 1 addition & 5 deletions packages/schema/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@
".graphqlrc.json",
"tsconfig.json"
],
"outputs": [
"build/**",
"../../apps/website/autoload.mjs",
"../../apps/cms/autoload.json"
]
"outputs": ["build/**"]
}
}
}

0 comments on commit 40d8dd4

Please sign in to comment.