project generators & project scaffold
project generators & project scaffold
how to write a node cli & Project Scaffold
https://www.sitepoint.com/scaffolding-tool-caporal-js/
Copying the Template Files
shellJS
http://documentup.com/shelljs/shelljs#cpoptions-source--source--dest
if (fs.existsSync(templatePath)) {
logger.info('Copying files…');
shell.cp('-R', `${templatePath}/*`, localPath);
logger.info(' The files have been copied!');
} else {
logger.error(`The requested template for ${args.template} wasn't found.`)
process.exit(1);
}
https://medium.com/northcoders/creating-a-project-generator-with-node-29e13b3cd309
https://javascriptplayground.com/writing-a-command-line-node-tool/
select options
checkbox

https://www.sitepoint.com/javascript-command-line-interface-cli-node-js/
https://github.com/sitepoint-editors/ginit
creating directories
https://scotch.io/tutorials/building-cli-applications-with-nodejs
mkd directory_name
# Create a new directory and enter it
function mkd() {
mkdir -p "$@" && cd "$_";
}
shit live share bug
stuck

babel 7.0.0
https://babeljs.io/setup#installation
https://babeljs.io/setup#installation
shell
https://github.com/shelljs/shelljs#cpoptions-source--source--dest
https://github.com/shelljs/shelljs#shellstringstr
hui-cli

https://www.sitepoint.com/javascript-command-line-interface-cli-node-js/
https://github.com/sitepoint-editors/ginit
https://www.npmjs.com/package/clui
ASCII Art
https://www.npmjs.com/package/figlet
https://github.com/patorjk/figlet.js
dependencies & devDependencies
$ npm i -D app-node-env commander shelljs colors
$ npm i -D inquirer optionator chalk
$ npm i -D @babel/cli @babel/core @babel/preset-env rimraf
$ npm i -D clear clui figlet
css grid
view-source:https://junon.me/
html,
body {
margin: auto 0;
padding: auto 0;
width: 100vw;
height: 100vh;
}
body {
display: grid;
grid-template-rows: 1fr 1fr 1fr;
grid-template-columns: 1fr auto 1fr;
font-family: "Anonymous Pro", monospace;
font-size: 1rem;
background: #111;
}
body>.master {
color: #EEE;
text-shadow: 1px 0 0 rgba(0, 0, 0, 0.2),
-1px 0 0 rgba(0, 0, 0, 0.2),
0 1px 0 rgba(0, 0, 0, 0.2),
0 -1px 0 rgba(0, 0, 0, 0.2),
1px 1px rgba(0, 0, 0, 0.2),
-1px -1px 0 rgba(0, 0, 0, 0.2),
1px -1px 0 rgba(0, 0, 0, 0.2),
-1px 1px 0 rgba(0, 0, 0, 0.2);
}
body>div {
grid-row: 2 / 3;
grid-column: 2 / 3;
margin: 1rem;
}
.master>div,
#shift>div>div {
margin-top: 2rem;
}
body * {
position: relative;
transition: transform 2s cubic-bezier(0, .97, .31, 1.15);
}
#shift {
user-select: none;
}
#shift>* {
mix-blend-mode: screen;
position: absolute;
width: 100%;
}
.code {
padding: 0.5rem;
background: #222;
text-shadow: none;
color: #ffd300;
}
.code::before {
color: #ff007b;
text-shadow: none;
content: '$ ';
}
hr {
visibility: hidden;
margin: 2rem 0;
}
.master h1,
.master hr {
border: 0;
border-bottom: 1px dashed #ff007b;
visibility: visible;
}
h1 {
padding-bottom: 1rem;
}
a {
color: inherit;
}
.social {
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
}
refs
xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
project generators & project scaffold的更多相关文章
- Eclipse wtp project dependent project facets问题
wtp project会编译成一个war包,但在eclipse里debug时,依赖的project没有自动编译成jar包并打包到war的lib目录里. 原因:依赖project的facets未设置或未 ...
- Dynamic Web Project vs Static Web Project 以及 Project facets
Dynamic Web Project vs Static Web Project 需要用到JSP,servlet等技术的动态服务器技术,就需要DWP:对于全部都是html页面的可以使用static ...
- jsp+tomcat+ 创建project 配置project
*如今我们已经下载到了 tomcat 7.0+ eclipse for java ee 直接解压,打开eclipse. 接下来是步骤: eclipse 打开的界面.空空如也 ! ..* 点击 file ...
- Project: Individual Project - Word frequency program----11061192zmx
Description & Requirements http://www.cnblogs.com/jiel/p/3311400.html 项目时间估计 理解项目要求: 1小时 构建项目逻辑: ...
- Project: Individual Project - Word frequency program-11061160顾泽鹏
一.预计用时: (1)明确要求:15min: (2)文件的遍历:1h: (3)Simple mode 词频统计:0.5h: (4)extend mode 词频统计:1h: (5)对单词词频排序输出:0 ...
- 创建maven parent project & module project
1.命令方式: 1)Create the top-level root: mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo.arc ...
- Conditional project or library reference in Visual Studio
Conditional project or library reference in Visual Studio In case you were wondering why you haven’t ...
- Project、Target、Workspace and Scheme
前言 今天有人问我Target和Project是什么关系?额...学习iOS开发都知道Target和Project的关系.这里我就简单的做了一个总结,而且加入的Scheme和Workspace.如果不 ...
- 使用Project进行项目管理 - 项目管理系列文章
前面当项目经理的时候曾经用到过Project来进行项目管理.这些天闲着无事,将代码翻出来留念了一下,现在将Project项目管理的东西也翻出来玩玩. 微软的Project是一款不错的软件,经过微软这么 ...
随机推荐
- 使用Linux服务器来通过网络安装和激活Windows 7 —— 一些基本原理
使用Linux服务器来通过网络安装和激活Windows 7 -- 一些基本原理 https://www.pufengdu.org/blog/?p=372
- (006)每日SQL学习:关于to_char函数
to_char函数的官方文档说明: 详细to_char请移步:https://www.cnblogs.com/reborter/archive/2008/11/28/1343195.html 需求:n ...
- (001)每日SQL学习:关于UNION的使用
union内部必须有相同的列或者相同的数据类型,同时,每条 SELECT 语句中的列的顺序必须相同.union合并了select的结果集. union 与union all的不同: union合并了重 ...
- ts中提示“绑定元素“routes”隐式具有“any”类型”
思考单独的.ts和typescript框架在vscode层的差异,想想只有launch.json和tsconfig.json,一个个属性过去后,发现是tsconfig.json配置项"noI ...
- Redis集群搭建,伪分布式集群,即一台服务器6个redis节点
Redis集群搭建,伪分布式集群,即一台服务器6个redis节点 一.Redis Cluster(Redis集群)简介 集群搭建需要的环境 二.搭建集群 2.1Redis的安装 2.2搭建6台redi ...
- 报表生成工具ireport
最近又开始学习新的玩意儿了,扒拉扒拉网上的资源,先捣鼓个思维导图.
- Wormholes (spfa)
一种路是双向的,路的长度是正值:另一种路是单向的,路的长度是负值: 如果有负环输出YES:否则输出NO:不同的路可能有相同的起点和终点:必须用邻接表 While exploring his many ...
- I - I(Highways)
N个点,给你N个点的坐标,现在还有Q条边已经连接好了.问把N个点怎么连接起来的花费的距离最短? The island nation of Flatopia is perfectly flat. Unf ...
- Codeforces Round #638 (Div. 2)
Contest Info Practice Link Solved A B C D E F 4/6 O O Ø Ø O 在比赛中通过 Ø 赛后通过 ! 尝试了但是失败了 - 没有尝试 Sol ...
- CF 1400G.Mercenaries 题解【SOSDP 组合数学】
CF 1400G.Mercenaries 题意: 有\(n\)个佣兵,问雇佣至少一名雇佣兵且满足下述条件的方案数 如果雇佣第\(i\)个佣兵必须要求最终雇佣的总人数\(x\)满足\(l_i\le x\ ...