Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chare

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chare

A simple CLI scaffolding for front-end projects.

  • 3.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

download npm-version license

README: 中文

chare

A simple CLI scaffolding for front-end projects.

Installation

Prerequisites: Node.js (>=6.x) and Git.

$ npm install chare -g

Usage

$ chare init <template-name> <project-name>

You can also relate a remote repo:

chare init <template-name> <project-name> -o remote-repo-url

Example:

$ chare init dwqs/vue-startup my-project

$ chare init waka-templates/vue-webpack2 my-project

Relate a remote repo:

$ chare init vuejs-templates/webpack-simple my-project -o git@github.com:xxx/xxx.git

The above command pulls the template from here or writing custom templates, prompts for some information, and generates the project at ./my-project/.

Command

  • chare or chare -h --- find help info for chare.
  • chare init template-name your-project-name [-o remote-origin] --- init your project with specified template.
  • 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 for more details.

Note: Check out the documentation for more details about Basic Authentication.

Templates from github

It'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:

chare init username/repo my-project

Where username/repo is the GitHub repo shorthand for your fork. But the repo need to meet some conditions. See this: here or writing custom templates

Local Templates

Instead of a GitHub repo, you can also use a template on your local file system:

chare init ~/fs/path/to-custom-template my-project

There is a guide or writing custom templates for to writing owner customized template.

Thanks

To metalsmith scaffolder && vue-cli for the head start.

Keywords

FAQs

Package last updated on 08 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc