A light tool to generate projects in an easy way.
npm install scion-cli -g
or
git clone https://github.com/jrainlau/scion.git
cd scion && npm install
npm link
- CTRL+H Toggle DevTools Dock
- CTRL+Q Move DevTools Dock Position
Open your terminal and type scion
or scion -h
, you'll see the help infomation below:
Usage: scion <command>
Commands:
add|a Add a new template
list|l List all the templates
init|i Generate a new project
delete|d Delete a template
Options:
-h, --help output usage information
-V, --version output the version number
Note that if you are using
MacOS
,sudo
was required while using commandsadd
anddelete
.
This command would help you to add a new template to the templates.json
, which will be used by Scion
to generate projects.
$ scion add
? Set the custom name of the template: my-first-template
? Owner/name of the template: jrainlau/scion
? Branch of the template: new
┌───────────────────┬────────────────┬────────┐
│ Template Name │ Owner/Name │ Branch │
├───────────────────┼────────────────┼────────┤
│ my-first-template │ jrainlau/scion │ new │
└───────────────────┴────────────────┴────────┘
✔ New template has been added successfully!
Scion
use download-git-repo to down load git repos. After answering 3 questions, you'll add a new template to Scion
.
It shows you the templates list.
$ scion list
┌────────────────────┬────────────────┬────────┐
│ Template Name │ Owner/Name │ Branch │
├────────────────────┼────────────────┼────────┤
│ my-first-template │ jrainlau/scion │ new │
├────────────────────┼────────────────┼────────┤
│ my-second-template │ jrainlau/motto │ master │
└────────────────────┴────────────────┴────────┘
After adding new templates, you could use this command to generate your own project by choosing template.
$ scion init
? Template name: my-first-template
? Project name: my-project
? Where to init the project? ../
⠹ Downloading template...
New project has been initialized successfully!
It's easy, right?
To delete a template, you could use this command:
$ scion delete
? Which template you want to delete? my-second-template
┌───────────────────┬────────────────┬────────┐
│ Template Name │ Owner/Name │ Branch │
├───────────────────┼────────────────┼────────┤
│ my-first-template │ jrainlau/scion │ new │
└───────────────────┴────────────────┴────────┘
✔ Template has been deleted successfully
MIT.
本文主要整理一下,markdown一些比较不常用但是很实用的用法,所以会不定时更新哦!
<video id="video" controls="" preload="none" poster="">
<source id="mp4" src="" type="video/mp4">
</video>
<audio id="audio" controls="" preload="none">
<source id="mp3" src="">
</audio>
<div align=center/left/right><img width = '150' height ='150' src =""/></div>
4.在页面内跳转 4.在页面内跳转
[4.在页面内跳转](#jump) //利用括号内的#id进行跳转
<span id="jump">**4.在页面内跳转**</span>
我是黑体字 我是微软雅黑 我是华文彩云 color=#0099ff size=72 face="黑体" color=#00ffff color=gray
<font face="黑体">我是黑体字</font>
<font face="微软雅黑">我是微软雅黑</font>
<font face="STCAIYUN">我是华文彩云</font>
<font color=#0099ff size=7 face="黑体">color=#0099ff size=72 face="黑体"</font>
<font color=#00ffff size=72>color=#00ffff</font>
<font color=gray size=72>color=gray</font>
左对齐 | 居中对齐 | 右对齐 |
---|---|---|
左对齐列 | 居中对齐列 | 右对齐列 |
1 | 2 | 3 |
|左对齐|居中对齐|右对齐|
|:- |:------:|-:|
|左对齐列|居中对齐列|右对齐列|
|1|2|3|
半方大的空白 或 对方答复
全方大的空白 或 对方答复
不断行的空白格 或 对方答复
半方大的空白 或 
全方大的空白 或  推荐使用这个两个就能实现首行缩进的效果
不断行的空白格 或 
这是一条删除线
~~这是一条删除线~~
- 已办理
- 代办
- 【浏览器系列 1-1】线程与进程
- 【浏览器系列 1-2】页面渲染-老话新谈
- 【浏览器系列 1-3】浏览器存储
- 【浏览器系列 1-4】Javascript垃圾回收
- 【浏览器系列 1-5】Javascript内存分配
- 【浏览器系列 1-6】浏览器跨域总结
hot
- 【浏览器系列 1-7】性能优化1 - 整体流程优化
- 【浏览器系列 1-8】性能优化2 - css基本性能优化
- 【浏览器系列 1-9】浏览器事件模型
- 【浏览器系列 1-10】浏览器中的cookie
new
- 【浏览器系列 1-11】性能优化3 - 从渲染Timeline中深入交互优化
new
- 【浏览器系列 1-12】屏幕刷新与requestAnimationFrame
- 【浏览器系列 1-13】性能优化4 - 从webpack打包配置的优化
new
- 【浏览器系列 1-14】性能优化5 - 从CSS合成层着手的渲染优化
写作中...
dddddd
ccccc
xxxxxxx
此次处罚dddd反反复复