{"id":17704991,"url":"https://github.com/dwqs/chare","last_synced_at":"2025-04-01T04:32:18.173Z","repository":{"id":57197074,"uuid":"78404882","full_name":"dwqs/chare","owner":"dwqs","description":"A simple CLI scaffolding for front-end projects","archived":true,"fork":false,"pushed_at":"2017-08-08T03:47:29.000Z","size":77,"stargazers_count":35,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T01:37:49.892Z","etag":null,"topics":["chare","cli-scaffolding"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/dwqs.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":"2017-01-09T07:33:43.000Z","updated_at":"2025-01-14T09:50:02.000Z","dependencies_parsed_at":"2022-09-16T12:12:55.442Z","dependency_job_id":null,"html_url":"https://github.com/dwqs/chare","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwqs%2Fchare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwqs%2Fchare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwqs%2Fchare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwqs%2Fchare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwqs","download_url":"https://codeload.github.com/dwqs/chare/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246586087,"owners_count":20801025,"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":["chare","cli-scaffolding"],"created_at":"2024-10-24T22:05:48.262Z","updated_at":"2025-04-01T04:32:17.904Z","avatar_url":"https://github.com/dwqs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![download](https://img.shields.io/npm/dt/chare.svg) ![npm-version](https://img.shields.io/npm/v/chare.svg) ![license](https://img.shields.io/npm/l/chare.svg)\n\n#### README: [中文](https://github.com/dwqs/chare/blob/master/README_zh.md)\n\n## chare\nA simple CLI scaffolding for front-end projects.\n\n### Installation\nPrerequisites: [Node.js](https://nodejs.org/en/) (\u003e=6.x) and [Git](https://git-scm.com/).\n\n```\n$ npm install chare -g\n```\n\n### Usage\n```\n$ chare init \u003ctemplate-name\u003e \u003cproject-name\u003e\n```\n\nYou can also relate a remote repo: \n\n```\nchare init \u003ctemplate-name\u003e \u003cproject-name\u003e -o remote-repo-url\n```\n\nExample:\n\n```\n$ chare init dwqs/vue-startup my-project\n\n$ chare init waka-templates/vue-webpack2 my-project\n```\n\nRelate a remote repo:\n\n```\n$ chare init vuejs-templates/webpack-simple my-project -o git@github.com:xxx/xxx.git\n```\n\nThe above command pulls the template from [here](https://github.com/dwqs/blog/issues/56) or [writing custom templates](https://github.com/vuejs/vue-cli#writing-custom-templates-from-scratch), prompts for some information, and generates the project at `./my-project/`.\n\n\n### Command\n\n* `chare` or `chare -h` --- find help info for chare.\n* `chare init template-name your-project-name [-o remote-origin]` --- init your project with specified template.\n* `chare token -u your-github-user-name -p your-personal-token` --- set auth token to get a higher rate limit of api requests. Check out the [documentation](https://developer.github.com/v3/#rate-limiting) for more details.\n\n\u003eNote: Check out the [documentation](https://developer.github.com/v3/auth/#basic-authentication) for more details about Basic Authentication.\n\n### Templates from github\nIt's unlikely to make everyone happy with the official templates. You can simply fork an official template and then use it via `chare-cli` with:\n\n```\nchare init username/repo my-project\n```\n\nWhere `username/repo` is the GitHub repo shorthand for your fork. But the repo need to meet some conditions. See this: [here](https://github.com/dwqs/blog/issues/56) or [writing custom templates](https://github.com/vuejs/vue-cli#writing-custom-templates-from-scratch)\n\n### Local Templates\n\nInstead of a GitHub repo, you can also use a template on your local file system:\n\n```\nchare init ~/fs/path/to-custom-template my-project\n```\n\nThere is a [guide](https://github.com/dwqs/blog/issues/56) or [writing custom templates](https://github.com/vuejs/vue-cli#writing-custom-templates-from-scratch) for to writing owner customized template.\n\n## Thanks\nTo [metalsmith scaffolder](https://github.com/metalsmith/metalsmith/blob/master/examples/project-scaffolder) \u0026\u0026 [vue-cli](https://github.com/vuejs/vue-cli) for the head start.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwqs%2Fchare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwqs%2Fchare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwqs%2Fchare/lists"}