{"id":16808231,"url":"https://github.com/chasefleming/flow-cadence-plugin","last_synced_at":"2025-04-11T01:13:00.707Z","repository":{"id":85045121,"uuid":"572263758","full_name":"chasefleming/flow-cadence-plugin","owner":"chasefleming","description":"Webpack plugin for Cadence and Flow.","archived":false,"fork":false,"pushed_at":"2024-11-07T22:04:15.000Z","size":9,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T01:12:56.155Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chasefleming.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-29T22:30:34.000Z","updated_at":"2024-11-07T22:04:19.000Z","dependencies_parsed_at":"2024-11-07T23:18:03.960Z","dependency_job_id":"f06a2d9e-008e-45a7-a02e-d05f0a970bfe","html_url":"https://github.com/chasefleming/flow-cadence-plugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chasefleming%2Fflow-cadence-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chasefleming%2Fflow-cadence-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chasefleming%2Fflow-cadence-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chasefleming%2Fflow-cadence-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chasefleming","download_url":"https://codeload.github.com/chasefleming/flow-cadence-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322571,"owners_count":21084337,"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":[],"created_at":"2024-10-13T09:56:06.436Z","updated_at":"2025-04-11T01:13:00.702Z","avatar_url":"https://github.com/chasefleming.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webpack Plugin for Cadence Files on the Flow Blockchain\n\nThis plugin allows you to import `.cdc` Cadence files directly into your project, making Flow blockchain scripts and transactions easily accessible in a Webpack-based setup. Additionally, it resolves any TypeScript type errors for `.cdc` imports, providing smooth integration with TypeScript projects.\nLet me know if you’d like further adjustments!\n\n## Usage\n\n```javascript\nimport ReadHelloWorld from '../cadence/scripts/ReadHelloWorld.cdc'\n\nawait fcl.query({\n  cadence: ReadHelloWorld\n})\n```\n\n## Adding the Plugin\n\n### Install\n\n```bash\nnpm install flow-cadence-plugin --save-dev\n```\n\n### Webpack\n\nTo import `.cdc` files, add the plugin to your Webpack configuration:\n\n```javascript\nnew FlowCadencePlugin()\n```\n\n### Next.js\n\nTo use the plugin in a Next.js project, add it to the Webpack configuration in `next.config.js`:\n\n```javascript\nimport FlowCadencePlugin from 'flow-cadence-plugin'\n\nmodule.exports = {\n  webpack: (config) =\u003e {\n    config.plugins.push(new FlowCadencePlugin())\n    return config\n  },\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchasefleming%2Fflow-cadence-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchasefleming%2Fflow-cadence-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchasefleming%2Fflow-cadence-plugin/lists"}