{"id":19227821,"url":"https://github.com/aleksac/directus-api-extensions-typescript","last_synced_at":"2025-04-21T01:31:48.493Z","repository":{"id":46332352,"uuid":"418654014","full_name":"AleksaC/directus-api-extensions-typescript","owner":"AleksaC","description":"Webpack config for writing directus api extensions in typescript with hot reloading","archived":true,"fork":false,"pushed_at":"2021-12-06T23:47:34.000Z","size":518,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-17T08:33:31.424Z","etag":null,"topics":["directus","directus-extension","hacktoberfest","typescript","webpack"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AleksaC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-18T20:14:31.000Z","updated_at":"2024-07-18T22:16:02.000Z","dependencies_parsed_at":"2022-09-05T18:10:28.374Z","dependency_job_id":null,"html_url":"https://github.com/AleksaC/directus-api-extensions-typescript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksaC%2Fdirectus-api-extensions-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksaC%2Fdirectus-api-extensions-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksaC%2Fdirectus-api-extensions-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksaC%2Fdirectus-api-extensions-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AleksaC","download_url":"https://codeload.github.com/AleksaC/directus-api-extensions-typescript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249982542,"owners_count":21355715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["directus","directus-extension","hacktoberfest","typescript","webpack"],"created_at":"2024-11-09T15:25:30.910Z","updated_at":"2025-04-21T01:31:48.072Z","avatar_url":"https://github.com/AleksaC.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Directus hook typescript example\n\n**Update:** This was created before `v9.0.0` of directus which changed the way\nextensions are registered. The code here may still work on new versions, but\nI'll still try to update it if I have time.\n\n[Directus](https://directus.io/) is a good choice if you need to provide a simple\nCRUD dashboard for your project without having to build one yourself or shoehorning\na CMS on top of the existing database.\n\nDirectus provides a lot of the stuff out of the box, and it can be configured\nthrough the ui and environment variables. In addition to that it can be further\ncustomized  by using [extensions](https://docs.directus.io/extensions/introduction/).\nCurrently directus doesn't support building hooks in typescript. In addition to\nthat you have to manually restart directus server in order to see the changes\nyou made to the exension.\n\nThis repository provides a webpack config that bundles extensions built in\ntypescript and puts the outputs where directs would expect them to be and\nrestarts the server after emitting the bundle. Only hooks example is available\nat the moment, but other extension types should be easily supported with a few\ntweaks to the webpack config and I might add them later.\n\n## Getting started\nThe easiest way to run this example is by using `docker-compose`. Run the\nfollowing command to get the example up and running:\n\n```shell\ngit clone git@github.com:AleksaC/directus-api-extensions-typescript.git\ncd directus-api-extensions-typescript\ncp example/.env.example example/.env\n./bootstrap.sh\n```\n\n## Contact 🙋‍♂️\n\n-   [Personal website](https://aleksac.me)\n-   \u003ca target=\"_blank\" href=\"http://twitter.com/aleksa_c_\"\u003e\u003cimg alt='Twitter followers' src=\"https://img.shields.io/twitter/follow/aleksa_c_.svg?style=social\"\u003e\u003c/a\u003e\n-   aleksacukovic1@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleksac%2Fdirectus-api-extensions-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleksac%2Fdirectus-api-extensions-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleksac%2Fdirectus-api-extensions-typescript/lists"}