0.4.0 • Published 3 years ago

geek-cli v0.4.0

Weekly downloads
3
License
MIT
Repository
-
Last release
3 years ago

geek

Geek version Repo link build status

geek: npm client for geek+ private repo

安装

$ npm install geek-cli -g

用法

支持npm的所有命令.

npm同步包

$ geek sync [moduleName]

打开包文档或者gitlab地址

$ geek doc [name]
$ geek doc -g [name] # open git web url directly

组件管理

支持 vue create 命令

创建vue项目

$ geek create my-project

使用 geek+ vue-component-template 创建组件

$ geek create --component my-component

使用 geek+ vue-plugin-template 创建插件

$ geek create --plugin my-component

版本管理

# major | minor | patch 对应三个版本号,在原来的基础上加 1
$ geek version [major | minor | patch]

组件关联 gitlab

# 创建组件时,根据提示输入 gitlab 项目地址,即可自动关联
# 在执行 geek version [major|minor|patch] 升级时,自动在 gitlab 上创建tag

# package#scripts 配置详解
# 1. 构建前自动构建
"prepublish": "npm run build"
# 2. 更新版本时自动构建
"version": "npm run build"
# 3. 更新版本后自动 tag
"postversion": "git push && git push --tags"

运行examples

$ geek run serve

构建组件

$ geek run build

发布组件

# 发布到 geek+ 私有仓库
$ geek publish

查看组件文档

# 查看仓库文档
$ geek doc [pkgName]
# 查看 gitlab 项目地址,如果项目不存在,自动忽略 -g 选项
$ geek doc -g [pkgName]

使用npm安装

geek using npminstall by default. If you don't like symlink mode for node_modules, you can change the installer to original npm. But you will lose the fastest install speed.

$ geek i --by=npm react-native
0.4.0

3 years ago

0.3.20

4 years ago

0.3.19

4 years ago

0.3.18

4 years ago

0.3.16

4 years ago

0.3.15

4 years ago

0.3.14

4 years ago

0.3.13

4 years ago

0.3.12

4 years ago

0.3.11

4 years ago

0.3.10

4 years ago

0.3.9

4 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.17

4 years ago

0.2.16

4 years ago

0.2.15

4 years ago

0.2.14

4 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.3

4 years ago

0.2.4

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago