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是一款不错的软件,经过微软这么 ...
随机推荐
- 微博CacheService架构浅析 对底层协议进行适配
https://mp.weixin.qq.com/s/wPR0j2bmHBF6z0ZjTlz_4A 麦俊生 InfoQ 2014-04-21 微博作为国内最大的社交媒体网站之一,每天承载着亿万用户的服 ...
- 它真正的父进程在fork出子进程后就先于子进程exit退出了,所以它是一个由init继承的孤儿进程
[Linux编程]守护进程(daemon)详解与创建_mick_seu的博客-CSDN博客_linux daemon https://blog.csdn.net/woxiaohahaa/article ...
- springBoot controller入参LocalDateTime
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss") @DateTimeForma ...
- dij的优先队列边表优化
dij的复杂度为v*v,通过优先队列优化后为e*logv. (第一次写,没有过多的测试,不保证对.只当是测试blog了!) #include<cstdio> #include<ios ...
- 3D运动类申明与实现
#ifndef PKM3D_H #define PKM3D_H #include"kinematics.h" #include"Inventor/Qt/viewers/S ...
- 深度学习论文翻译解析(十八):MobileNetV2: Inverted Residuals and Linear Bottlenecks
论文标题:MobileNetV2: Inverted Residuals and Linear Bottlenecks 论文作者:Mark Sandler Andrew Howard Menglong ...
- 11月份 chrome 标签整理
Spring MVC框架相关 Java Web开发 和 linux下开发 汇总 项目源码 优秀的音视频开源框架 常用软件的下载 学习资源或网站 最后分享一些以前收藏的优秀博客 这两天经过3次面试,很幸 ...
- 【疑】接入交换机lacp port-channel连接核心突然中断
现状: 职场网络架构为接入交换机2个端口通过lacp协议的active模式组成port-channel上联到核心. 具体配置如下 接入: 核心: 故障现象: zabbix监控到核心交换机对应该接入交换 ...
- 【BFS】hdu 1973 Prime Path
题目描述: http://poj.org/problem?id=3414 中文大意: 使用两个锅,盛取定量水. 两个锅的容量和目标水量由用户输入. 允许的操作有:灌满锅.倒光锅内的水.一个锅中的水倒入 ...
- Angular写一个Form组件-TagInput
前端开发少不了和表单打交道; Angular中, 提供了强大的表单的支持, 响应式表单(Reactive Form) 和 模板驱动的表单(Template-driven Form) 的双向数据流给我们 ...