0.0.4 • Published 6 years ago

sakitam-cli v0.0.4

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

sakitam-cli

A scaffolding tool for rapid develop vue & react and other project。

Build Status NPM downloads Npm package GitHub license

Quickstart

npm install -g sakitam-cli
# or
yarn global add sakitam-cli

// list available templete
sakitam list
// output usage information
sakitam list -h
// params: Template view under the specified warehouse
sakitam list -u aurorafe -p vue
// output usage information
sakitam init -h
// generate project
sakitam init sakitam-gis/maptalks-plugin-tpl-base project
// Defaults associated repository `aurorafe`, so, you can use
sakitam init vue-template-webpack project
// Use cached template
sakitam init --offline vue-template-webpack project
cd project
npm i
npm run dev

example

sakitam list vue // list vue project templete
sakitam list react // list react project templete
sakitam list library // list javascript library templete
sakitam list react-component // list react component templete
sakitam list vue-component // list vue component templete

// init
sakitam init vue-template-webpack project // repo
sakitam init aurorafe/vue-template-webpack project // user/repo
sakitam init --offline vue-template-webpack project // Use cached template
sakitam init -c direct:https://github.com/aurorafe/vue-template-webpack.git project // Use git clone ~ direct is important

Development

git clone https://github.com/sakitam-fdd/sakitam-cli.git
cd sakitam-cli
npm link
sakitam -h
package namedesclink
commander用于处理命令行相关工具https://github.com/tj/commander.js
download-git-repo用于下载git仓库https://github.com/flipxfx/download-git-repo
chalk处理终端信息显示的颜色https://github.com/chalk/chalk
inquirer交互终端,用于处理用户输入https://github.com/SBoudrias/Inquirer.js
ora终端loading解决方案https://github.com/sindresorhus/ora
shelljsshell 命令执行, 支持回调https://github.com/shelljs/shelljs
read-metadata用于读取json或者yaml元数据文件并返回一个对象https://www.npmjs.com/package/read-metadata
minimatch字符匹配工具https://github.com/isaacs/minimatch
semver版本号处理工具https://github.com/npm/node-semver
user-home用于获取用户的根目录https://github.com/sindresorhus/user-home
tildifyConvert an absolute path to a tilde path:/Users/sindresorhus/dev~/dev` | https://github.com/sindresorhus/tildify
rimrafA deep deletion module for node (likerm -rf)https://github.com/isaacs/rimraf
axios跨平台的ajax处理工具https://github.com/axios/axios
handlebars易于构建的模板引擎https://github.com/wycats/handlebars.js
metalsmithAn extremely simple, pluggable static site generator.https://github.com/segmentio/metalsmith
multimatch对 minimatch 的多字符串处理的扩展https://github.com/sindresorhus/multimatch
consolidate支持多种模板引擎的渲染https://github.com/tj/consolidate.js
consolidate支持多种模板引擎的渲染https://github.com/tj/consolidate.js
async用于异步代码的高阶函数和通用模型https://github.com/caolan/async
validate-npm-package-name用于验证npm包https://github.com/npm/validate-npm-package-name
figletA FIG Driver written in JavaScript which aims to fully implement the FIGfont spec.https://github.com/patorjk/figlet.js