From 72c1e555c0f5401c502d405f28064863719d9cac Mon Sep 17 00:00:00 2001 From: Wedam Anewenah Date: Sun, 9 Jul 2023 18:25:42 +0000 Subject: [PATCH 1/5] Added recipe for watchtower-bundle --- .../config/packages/wedrix_watchtower_bundle.yaml | 15 +++++++++++++++ .../routes/wedrix_watchtower_bundle_routes.yaml | 2 ++ wedrix/watchtower-bundle/1.0/manifest.json | 8 ++++++++ 3 files changed, 25 insertions(+) create mode 100644 wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml create mode 100644 wedrix/watchtower-bundle/1.0/config/routes/wedrix_watchtower_bundle_routes.yaml create mode 100644 wedrix/watchtower-bundle/1.0/manifest.json diff --git a/wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml b/wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml new file mode 100644 index 000000000..f1ea5e111 --- /dev/null +++ b/wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml @@ -0,0 +1,15 @@ +wedrix_watchtower: + endpoint: '/graphql.json' + schema_file: '%kernel.project_dir%/resources/schema.graphql' + plugins_directory: '%kernel.project_dir%/resources/watchtower/plugins' + scalar_type_definitions_directory: '%kernel.project_dir%/resources/watchtower/scalar_type_definitions' + schema_cache_directory: '%kernel.project_dir%/var/cache/watchtower/schema' + cache_schema: false + debug: true + context: + entity_manager: 'doctrine.orm.entity_manager' + +when@prod: + wedrix_watchtower: + cache_schema: true + debug: false \ No newline at end of file diff --git a/wedrix/watchtower-bundle/1.0/config/routes/wedrix_watchtower_bundle_routes.yaml b/wedrix/watchtower-bundle/1.0/config/routes/wedrix_watchtower_bundle_routes.yaml new file mode 100644 index 000000000..0afddfcd2 --- /dev/null +++ b/wedrix/watchtower-bundle/1.0/config/routes/wedrix_watchtower_bundle_routes.yaml @@ -0,0 +1,2 @@ +wedrix_watchtower_bundle_routes: + resource: '@WedrixWatchtowerBundle/config/routes.yaml' \ No newline at end of file diff --git a/wedrix/watchtower-bundle/1.0/manifest.json b/wedrix/watchtower-bundle/1.0/manifest.json new file mode 100644 index 000000000..d47858037 --- /dev/null +++ b/wedrix/watchtower-bundle/1.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Wedrix\\WatchtowerBundle\\WedrixWatchtowerBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} From 5dd5535d81bc7bb65920f8f732cf8031cdc3688b Mon Sep 17 00:00:00 2001 From: Wedam Anewenah Date: Sun, 9 Jul 2023 18:40:36 +0000 Subject: [PATCH 2/5] Fixed CI issues --- .../packages/wedrix_watchtower_bundle.yaml | 24 +++++++++---------- .../wedrix_watchtower_bundle_routes.yaml | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml b/wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml index f1ea5e111..325ef68f1 100644 --- a/wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml +++ b/wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml @@ -1,15 +1,15 @@ wedrix_watchtower: - endpoint: '/graphql.json' - schema_file: '%kernel.project_dir%/resources/schema.graphql' - plugins_directory: '%kernel.project_dir%/resources/watchtower/plugins' - scalar_type_definitions_directory: '%kernel.project_dir%/resources/watchtower/scalar_type_definitions' - schema_cache_directory: '%kernel.project_dir%/var/cache/watchtower/schema' - cache_schema: false - debug: true - context: - entity_manager: 'doctrine.orm.entity_manager' + endpoint: '/graphql.json' + schema_file: '%kernel.project_dir%/resources/schema.graphql' + plugins_directory: '%kernel.project_dir%/resources/watchtower/plugins' + scalar_type_definitions_directory: '%kernel.project_dir%/resources/watchtower/scalar_type_definitions' + schema_cache_directory: '%kernel.project_dir%/var/cache/watchtower/schema' + cache_schema: false + debug: true + context: + entity_manager: 'doctrine.orm.entity_manager' when@prod: - wedrix_watchtower: - cache_schema: true - debug: false \ No newline at end of file + wedrix_watchtower: + cache_schema: true + debug: false diff --git a/wedrix/watchtower-bundle/1.0/config/routes/wedrix_watchtower_bundle_routes.yaml b/wedrix/watchtower-bundle/1.0/config/routes/wedrix_watchtower_bundle_routes.yaml index 0afddfcd2..0f2da8037 100644 --- a/wedrix/watchtower-bundle/1.0/config/routes/wedrix_watchtower_bundle_routes.yaml +++ b/wedrix/watchtower-bundle/1.0/config/routes/wedrix_watchtower_bundle_routes.yaml @@ -1,2 +1,2 @@ wedrix_watchtower_bundle_routes: - resource: '@WedrixWatchtowerBundle/config/routes.yaml' \ No newline at end of file + resource: '@WedrixWatchtowerBundle/config/routes.yaml' From 59efab00b55c7e54ede0981518f9e8599bdb26aa Mon Sep 17 00:00:00 2001 From: Wedam Anewenah Date: Sun, 9 Jul 2023 20:10:36 +0000 Subject: [PATCH 3/5] Added default directories for plugins and scalar_type_definitions --- .../1.0/config/packages/wedrix_watchtower_bundle.yaml | 9 ++++++--- .../1.0/config/watchtower/plugins/authorizors/.gitignore | 0 .../1.0/config/watchtower/plugins/filters/.gitignore | 0 .../1.0/config/watchtower/plugins/mutations/.gitignore | 0 .../1.0/config/watchtower/plugins/orderings/.gitignore | 0 .../1.0/config/watchtower/plugins/resolvers/.gitignore | 0 .../1.0/config/watchtower/plugins/selectors/.gitignore | 0 .../config/watchtower/scalar_type_definitions/.gitignore | 0 8 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 wedrix/watchtower-bundle/1.0/config/watchtower/plugins/authorizors/.gitignore create mode 100644 wedrix/watchtower-bundle/1.0/config/watchtower/plugins/filters/.gitignore create mode 100644 wedrix/watchtower-bundle/1.0/config/watchtower/plugins/mutations/.gitignore create mode 100644 wedrix/watchtower-bundle/1.0/config/watchtower/plugins/orderings/.gitignore create mode 100644 wedrix/watchtower-bundle/1.0/config/watchtower/plugins/resolvers/.gitignore create mode 100644 wedrix/watchtower-bundle/1.0/config/watchtower/plugins/selectors/.gitignore create mode 100644 wedrix/watchtower-bundle/1.0/config/watchtower/scalar_type_definitions/.gitignore diff --git a/wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml b/wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml index 325ef68f1..0f46ed18e 100644 --- a/wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml +++ b/wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml @@ -1,12 +1,15 @@ wedrix_watchtower: endpoint: '/graphql.json' - schema_file: '%kernel.project_dir%/resources/schema.graphql' - plugins_directory: '%kernel.project_dir%/resources/watchtower/plugins' - scalar_type_definitions_directory: '%kernel.project_dir%/resources/watchtower/scalar_type_definitions' + schema_file: '%kernel.project_dir%/config/schema.graphql' + plugins_directory: '%kernel.project_dir%/config/watchtower/plugins' + scalar_type_definitions_directory: '%kernel.project_dir%/config/watchtower/scalar_type_definitions' schema_cache_directory: '%kernel.project_dir%/var/cache/watchtower/schema' cache_schema: false debug: true context: + # Register services here to access them in the context param. + # The service key can be any name of your choosing but the value should be the service id. + # For example: entity_manager: 'doctrine.orm.entity_manager' entity_manager: 'doctrine.orm.entity_manager' when@prod: diff --git a/wedrix/watchtower-bundle/1.0/config/watchtower/plugins/authorizors/.gitignore b/wedrix/watchtower-bundle/1.0/config/watchtower/plugins/authorizors/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/1.0/config/watchtower/plugins/filters/.gitignore b/wedrix/watchtower-bundle/1.0/config/watchtower/plugins/filters/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/1.0/config/watchtower/plugins/mutations/.gitignore b/wedrix/watchtower-bundle/1.0/config/watchtower/plugins/mutations/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/1.0/config/watchtower/plugins/orderings/.gitignore b/wedrix/watchtower-bundle/1.0/config/watchtower/plugins/orderings/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/1.0/config/watchtower/plugins/resolvers/.gitignore b/wedrix/watchtower-bundle/1.0/config/watchtower/plugins/resolvers/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/1.0/config/watchtower/plugins/selectors/.gitignore b/wedrix/watchtower-bundle/1.0/config/watchtower/plugins/selectors/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/1.0/config/watchtower/scalar_type_definitions/.gitignore b/wedrix/watchtower-bundle/1.0/config/watchtower/scalar_type_definitions/.gitignore new file mode 100644 index 000000000..e69de29bb From a7b9b0ce351db981b588385f44ba4a9aa25b0a59 Mon Sep 17 00:00:00 2001 From: Wedam Anewenah Date: Mon, 10 Jul 2023 17:19:07 +0000 Subject: [PATCH 4/5] Updated default location of schema file --- .../1.0/config/packages/wedrix_watchtower_bundle.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml b/wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml index 0f46ed18e..e2312b70d 100644 --- a/wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml +++ b/wedrix/watchtower-bundle/1.0/config/packages/wedrix_watchtower_bundle.yaml @@ -1,6 +1,6 @@ wedrix_watchtower: endpoint: '/graphql.json' - schema_file: '%kernel.project_dir%/config/schema.graphql' + schema_file: '%kernel.project_dir%/config/watchtower/schema.graphql' plugins_directory: '%kernel.project_dir%/config/watchtower/plugins' scalar_type_definitions_directory: '%kernel.project_dir%/config/watchtower/scalar_type_definitions' schema_cache_directory: '%kernel.project_dir%/var/cache/watchtower/schema' From 871aa04da475d27f3e0b1fb473d280b6628c31ab Mon Sep 17 00:00:00 2001 From: Wedam Anewenah Date: Sat, 11 Nov 2023 01:03:17 +0000 Subject: [PATCH 5/5] Add recipe for watchtower-symfony-bundle v2 --- .../packages/wedrix_watchtower_bundle.yaml | 18 ++++++++++++++++++ .../wedrix_watchtower_bundle_routes.yaml | 2 ++ .../watchtower/plugins/authorizors/.gitignore | 0 .../watchtower/plugins/filters/.gitignore | 0 .../watchtower/plugins/mutations/.gitignore | 0 .../watchtower/plugins/orderings/.gitignore | 0 .../watchtower/plugins/resolvers/.gitignore | 0 .../watchtower/plugins/selectors/.gitignore | 0 .../scalar_type_definitions/.gitignore | 0 wedrix/watchtower-bundle/2.0/manifest.json | 8 ++++++++ 10 files changed, 28 insertions(+) create mode 100644 wedrix/watchtower-bundle/2.0/config/packages/wedrix_watchtower_bundle.yaml create mode 100644 wedrix/watchtower-bundle/2.0/config/routes/wedrix_watchtower_bundle_routes.yaml create mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/authorizors/.gitignore create mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/filters/.gitignore create mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/mutations/.gitignore create mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/orderings/.gitignore create mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/resolvers/.gitignore create mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/selectors/.gitignore create mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/scalar_type_definitions/.gitignore create mode 100644 wedrix/watchtower-bundle/2.0/manifest.json diff --git a/wedrix/watchtower-bundle/2.0/config/packages/wedrix_watchtower_bundle.yaml b/wedrix/watchtower-bundle/2.0/config/packages/wedrix_watchtower_bundle.yaml new file mode 100644 index 000000000..85c3d19d8 --- /dev/null +++ b/wedrix/watchtower-bundle/2.0/config/packages/wedrix_watchtower_bundle.yaml @@ -0,0 +1,18 @@ +wedrix_watchtower: + endpoint: '/graphql.json' + schema_file: '%kernel.project_dir%/config/watchtower/schema.graphql' + plugins_directory: '%kernel.project_dir%/config/watchtower/plugins' + scalar_type_definitions_directory: '%kernel.project_dir%/config/watchtower/scalar_type_definitions' + cache_directory: '%kernel.project_dir%/var/cache/watchtower' + optimize: false + debug: true + context: + # Register services here to access them in the context param. + # The service key can be any name of your choosing but the value should be the service id. + # For example: entity_manager: 'doctrine.orm.entity_manager' + entity_manager: 'doctrine.orm.entity_manager' + +when@prod: + wedrix_watchtower: + optimize: true + debug: false diff --git a/wedrix/watchtower-bundle/2.0/config/routes/wedrix_watchtower_bundle_routes.yaml b/wedrix/watchtower-bundle/2.0/config/routes/wedrix_watchtower_bundle_routes.yaml new file mode 100644 index 000000000..0f2da8037 --- /dev/null +++ b/wedrix/watchtower-bundle/2.0/config/routes/wedrix_watchtower_bundle_routes.yaml @@ -0,0 +1,2 @@ +wedrix_watchtower_bundle_routes: + resource: '@WedrixWatchtowerBundle/config/routes.yaml' diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/authorizors/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/authorizors/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/filters/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/filters/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/mutations/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/mutations/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/orderings/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/orderings/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/resolvers/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/resolvers/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/selectors/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/selectors/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/scalar_type_definitions/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/scalar_type_definitions/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/2.0/manifest.json b/wedrix/watchtower-bundle/2.0/manifest.json new file mode 100644 index 000000000..d47858037 --- /dev/null +++ b/wedrix/watchtower-bundle/2.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Wedrix\\WatchtowerBundle\\WedrixWatchtowerBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +}