Skip to content

Commit

Permalink
Maintenance: Add graphql generation support for production environments.
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Gruner <mg@zammad.com>
  • Loading branch information
rolfschmidt and mgruner committed May 24, 2024
1 parent 462b120 commit 8de8c73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ gem 'pry-theme'
# monitoring / system report
gem 'macaddr'

# watch file changes (also relevant for graphql generation in context of CDs)
gem 'listen'

# Gems used only for develop/test and not required
# in production environments by default.
group :development, :test do

# watch file changes
gem 'listen'

# test frameworks
gem 'minitest-profile', require: false
gem 'rails-controller-testing'
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"private": true,
"scripts": {
"generate-graphql-api": "RAILS_ENV=development bundle exec rails generate zammad:graphql_introspection > app/graphql/graphql_introspection.json && npx graphql-codegen -c .graphql_code_generator.js",
"generate-setting-types": "RAILS_ENV=development bundle exec rails generate zammad:setting_types",
"generate-graphql-api": "bundle exec rails generate zammad:graphql_introspection > app/graphql/graphql_introspection.json && npx graphql-codegen -c .graphql_code_generator.js",
"generate-setting-types": "bundle exec rails generate zammad:setting_types",
"dev": "RAILS_ENV=development forego start -f Procfile.dev",
"dev:https": "VITE_RUBY_HOST=0.0.0.0 VITE_RUBY_HTTPS=true RAILS_ENV=development forego start -f Procfile.dev-https",
"i18n": "rails generate zammad:translation_catalog",
Expand Down

0 comments on commit 8de8c73

Please sign in to comment.