trueban-cli

1.9.2 • Public • Published

trueban-cli使用说明:

安装步骤:

1、 在windows环境下,需要先安装nodejs

在这里下载: http://nodejs.cn/download/

安装后,在开始菜单中找到node.js,打开命令行工具

2、 在命令行工具中输入

npm i trueban-cli -g

安装trueban课程管理工具

使用说明:

现在你可以在命令行下使用trueban命令。

主要包含三个命令

  • trueban init
  • trueban add
  • trueban upload

trueban init: 创建文件系统

命令示意

trueban init per-k-sem1

直接输入trueban init,即在当前文件夹下创建课程包,课程包名为文件夹名

输入trueban init [课程包名]则创建自定义名字的课程包

trueban add: 创建模块

trueban add hi byebye good-afternoon

输入trueban add [word1] [word2] [word3]时,您可以选择每个模块学到的单词。

根据提示,即可创建好模块。

注意,trueban add命令只能在Day文件夹下使用

trueban upload: 上传模块

命令示意:

trueban upload

当一节课程编辑完毕,你需要使用upload命令上传到图片服务器。

注意,在Day文件夹只上传当天,在Week文件夹可上传一周的,在课程包文件夹下可以上传全部

提交:

上传完成后,你会发现包文件夹下出现一个__json文件夹,把这个文件夹传给我就可以了。

Readme

Keywords

Package Sidebar

Install

npm i trueban-cli

Weekly Downloads

3

Version

1.9.2

License

MIT

Unpacked Size

67.4 kB

Total Files

23

Last publish

Collaborators

  • wanthering