{"id":15061271,"url":"https://github.com/atomicojs/scaffold","last_synced_at":"2025-04-10T06:38:50.855Z","repository":{"id":57099553,"uuid":"432054174","full_name":"atomicojs/scaffold","owner":"atomicojs","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-18T03:04:37.000Z","size":999,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-29T10:13:26.902Z","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/atomicojs.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}},"created_at":"2021-11-26T04:32:44.000Z","updated_at":"2021-12-28T21:16:57.000Z","dependencies_parsed_at":"2023-01-28T06:15:49.405Z","dependency_job_id":null,"html_url":"https://github.com/atomicojs/scaffold","commit_stats":{"total_commits":43,"total_committers":2,"mean_commits":21.5,"dds":"0.13953488372093026","last_synced_commit":"fef7a79e8594621980f861143ee1dcaf19fed13f"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicojs%2Fscaffold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicojs%2Fscaffold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicojs%2Fscaffold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicojs%2Fscaffold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atomicojs","download_url":"https://codeload.github.com/atomicojs/scaffold/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801144,"owners_count":20998333,"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-09-24T23:17:29.550Z","updated_at":"2025-04-10T06:38:50.836Z","avatar_url":"https://github.com/atomicojs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## @atomico/scaffold\n\nCLI that generates files from markdown documents\n\n### Install\n\n```bash\nnpm i @atomico/scaffold\n```\n\n## use from package.json#scripts\n\nAdd script to package.json\n\n```json\n{\n    \"scripts\": {\n        \"create-component\": \"scaff template/component-jsx src\"\n    }\n}\n```\n\n## use from npx\n\n```bash\nscaff template/component-jsx src\n```\n\n## Markdown\n\nThe files are created according to the markdown file associated with the CLI, all the code blocks that declare the path will be created only if the document does not exist, example:\n\n````md\n---\n{\n    data: { name: \"Upper Cod\" },\n    questions: [{ type: \"text\", name: \"name\", message: \"Component name?\" }],\n}\n---\n\n## bla bla..\n\n```js tests/build/\u003c\u003cname|kebabCase\u003e\u003e.js\nconst data = {\"\u003c\u003cname|kebabCase\u003e\u003e\":10};\nconst \u003c\u003cname|camelCase\u003e\u003e = 10;\nconst \u003c\u003cname|pascalCase\u003e\u003e = 10;\n```\n\nBla bla..\n\n```css tests/build/\u003c\u003cname|kebabCase\u003e\u003e.css\n:host {\n    display: block;\n}\n```\n````\n\nThe CLI uses [Prompts](https://www.npmjs.com/package/prompts) for the use of questions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomicojs%2Fscaffold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatomicojs%2Fscaffold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomicojs%2Fscaffold/lists"}