{"id":15711735,"url":"https://github.com/jacksteamdev/dot-plop","last_synced_at":"2025-06-14T04:06:05.331Z","repository":{"id":39649785,"uuid":"240564954","full_name":"jacksteamdev/dot-plop","owner":"jacksteamdev","description":"A simple approach to PlopJS with first class TypeScript support and a one-line plopfile.","archived":false,"fork":false,"pushed_at":"2023-08-03T06:32:44.000Z","size":572,"stargazers_count":2,"open_issues_count":6,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-14T04:05:01.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/jacksteamdev.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":"2020-02-14T17:36:51.000Z","updated_at":"2023-10-22T12:48:47.000Z","dependencies_parsed_at":"2024-10-11T19:11:45.232Z","dependency_job_id":null,"html_url":"https://github.com/jacksteamdev/dot-plop","commit_stats":{"total_commits":34,"total_committers":2,"mean_commits":17.0,"dds":0.4117647058823529,"last_synced_commit":"eb301b56bcf2fb0069784b9b17b2afe696ef8e73"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/jacksteamdev/dot-plop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksteamdev%2Fdot-plop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksteamdev%2Fdot-plop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksteamdev%2Fdot-plop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksteamdev%2Fdot-plop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacksteamdev","download_url":"https://codeload.github.com/jacksteamdev/dot-plop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksteamdev%2Fdot-plop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259756874,"owners_count":22906678,"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-03T21:13:49.647Z","updated_at":"2025-06-14T04:06:05.309Z","avatar_url":"https://github.com/jacksteamdev.png","language":"JavaScript","readme":"# `dot-plop`\n\nA simple approach to PlopJS with first class TypeScript support and a one-line\nplopfile.\n\n## Installation\n\n```sh\n$ npm i plop dot-plop -D\n```\n\nPut `plopfile.js` in your project directory:\n\n```javascript\nmodule.exports = require('dot-plop')\n```\n\n## Usage\n\n1. Create a new folder in your project directory called `.plop`.\n2. Write your generators in TypeScript and put them in `.plop/generators`.\n3. We put our templates in `.plop/templates/`, but you can put them anywhere you\n   like, just so your generators know where they are.\n4. Write your helpers in TypeScript and put them in `.plop/helpers`.\n5. Write your Inquirer prompts in TypeScript and put them in `.plop/prompts`.\n6. Run `plop` from the command line.\n\n`dot-plop` will auto discover your generators and helpers. They will have the\nsame name as their export name.\n\n## Examples\n\n### `.plop/generators/my-generator.ts`\n\n```typescript\nimport { PlopGenerator } from 'plop'\n\nexport const units: PlopGenerator = {\n  description: 'Feature logic and API integrations',\n  prompts: [\n    {\n      type: 'input',\n      name: 'fileName',\n      message: 'unit name please',\n    },\n  ],\n  actions: [\n    {\n      type: 'add',\n      path: 'src/units/{{dashCase fileName}}.ts',\n      templateFile: '.plop/templates/units/unit.ts.hbs',\n    },\n    {\n      type: 'add',\n      path: 'src/units/{{dashCase fileName}}.test.ts',\n      templateFile: '.plop/templates/units/unit.test.ts.hbs',\n    },\n  ],\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksteamdev%2Fdot-plop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacksteamdev%2Fdot-plop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksteamdev%2Fdot-plop/lists"}