{"id":21500502,"url":"https://github.com/node-libraries/scaffold","last_synced_at":"2026-01-30T06:36:22.232Z","repository":{"id":65559772,"uuid":"524549012","full_name":"node-libraries/scaffold","owner":"node-libraries","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-19T04:48:04.000Z","size":206,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-22T01:29:39.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/node-libraries.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-08-14T01:50:40.000Z","updated_at":"2025-12-19T04:48:08.000Z","dependencies_parsed_at":"2023-01-29T14:25:10.973Z","dependency_job_id":"d3fc857d-38f6-4aee-a31b-1b755e3ea3b7","html_url":"https://github.com/node-libraries/scaffold","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"552a3e798e325d3291691fea10d6b40bd87dcdbf"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/node-libraries/scaffold","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fscaffold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fscaffold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fscaffold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fscaffold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-libraries","download_url":"https://codeload.github.com/node-libraries/scaffold/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fscaffold/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28906671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T04:02:34.702Z","status":"ssl_error","status_checked_at":"2026-01-30T04:02:33.562Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-23T17:41:57.647Z","updated_at":"2026-01-30T06:36:22.215Z","avatar_url":"https://github.com/node-libraries.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @node-libraries/scaffold\n\n## install\n\n`npm -g install @node-libraries/scaffold`\n\n## description\n\nCreate a canned file based on a template.  \nTemplates can also be placed on github.\n\n## usage\n\n```\nUsage: scaffold [options] [command]\n\nOptions:\n  -V, --version            output the version number\n  -h, --help               display help for command\n\nCommands:\n  create [options] \u003cname\u003e  Create component\n      -t, --templatePath \u003ctemplatePath\u003e  TemplatePath or GitHub-Url(default:./templates)\n      -o, --outputPath \u003coutputPath\u003e      OutputPath (default:./src/components)\n  help\n```\n\nRemote commands refer to the value of `supabase/.env.remote`\n\n## Template Example(Example of using React and Storybook)\n\n- The extension must be `.template`.  \n  extension to prevent automatic formatting by the editor.\n- The following strings will be replaced  \n  `{{{NAME}}}` -\u003e ComponentName  \n  `{{{PATH}}}` -\u003e ComponentPath\n\n### File Examples\n\n\u003chttps://github.com/node-libraries/scaffold/tree/master/templates\u003e\n\n- templates/index.ts.template\n\n```tsx\nexport * from \"./{{{NAME}}}\";\n```\n\n- templates/{{{NAME}}}.module.scss.template\n\n```tsx\n.root {\n}\n```\n\n- templates/{{{NAME}}}.tsx.template\n\n```tsx\nimport React, { FC } from 'react';\nimport styled from './{{{NAME}}}.module.scss';\n\ninterface Props {}\n\n/**\n * {{{NAME}}}\n *\n * @param {Props} { }\n */\nexport const {{{NAME}}}: FC\u003cProps\u003e = ({}) =\u003e {\n  return \u003cdiv className={styled.root}\u003eTest\u003c/div\u003e\n};\n```\n\n- templates/{{{NAME}}}.stories.tsx.template\n\n```tsx\nimport { expect } from \"@storybook/jest\";\nimport { within } from \"@storybook/testing-library\";\nimport { ComponentMeta, ComponentStoryObj } from '@storybook/react';\nimport { {{{NAME}}} } from './{{{NAME}}}';\n\nconst meta: ComponentMeta\u003ctypeof {{{NAME}}}\u003e = {\n  title: 'Components/{{{PATH}}}{{{NAME}}}',\n  component: {{{NAME}}},\n  parameters: {\n    //  nextRouter: { asPath: '/' },\n  },\n  args: {},\n};\nexport default meta;\n\nexport const Primary: ComponentStoryObj\u003ctypeof {{{NAME}}}\u003e = {\n  args: {},\n  play: async ({ canvasElement }) =\u003e {\n    const canvas = within(canvasElement);\n    expect(\n      canvas.getByText('Test')\n    ).toBeInTheDocument();\n  },\n}\n```\n\n## Command Usage\n\n- templates -\u003e src/components/Sample01\n\n```sh\nscaffold create Sample01\n```\n\n- templates -\u003e src/components/Samples/Sample01\n\n```sh\nscaffold create Samples/Sample01\n```\n\n- template -\u003e src/component/Samples/Sample01\n\n```sh\nscaffold create -t template -o src/component Samples/Sample01\n```\n\n- GitHub -\u003e src/component/Samples/Sample01\n\n```sh\nscaffold create -t https://github.com/node-libraries/scaffold/tree/master/templates/storybook8 -o src/component Samples/Sample01\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-libraries%2Fscaffold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-libraries%2Fscaffold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-libraries%2Fscaffold/lists"}