🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

atom-template-cli

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atom-template-cli

拉取配置模板cli工具

latest
Source
npmnpm
Version
0.0.7
Version published
Weekly downloads
31
181.82%
Maintainers
1
Weekly downloads
 
Created
Source

简介

根据目标repo 与 tag 拉取模板仓库。

结合放置在模板根目录的 ask.js (规范) 文件使用,模板结构内自动识别 ejs 语法的 js/json/html。

atom-cli create <projectName>
  • https://api.${register}.com/users/${userName}/repos 自动拉取 prefix 为 atom-template 的 repos。
  • https://api.${register}.com/repos/${userName}/${repo}/tags 拉取tags,提供选择,由于tags具有不可逆特性,所以会被缓存。

清除缓存

一次性清理 repos/tags cache 和 template cache 暂时自己用,没区分开.

atom-cli clear cache

设置

默认的配置项目 constants

origin

atom-cli config set register <origin>

获取

atom-cli config get register

User

同理

atom-cli config set userName <User>

获取

atom-cli config get userName

设置其他

有效的设置属性key

userName: USERNAME,
register: "github",
protocol: 'https'
repoPrefix: 'atom-template'
atom-cli config set <key> <value>

获取

atom-cli config get <key>

Keywords

cli

FAQs

Package last updated on 23 Nov 2020

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