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是一款不错的软件,经过微软这么 ...
随机推荐
- js--数组的find()和findIndex()方法的使用介绍
前言 阅读本文前先来思考一个问题,面对一个非空数组,你如何快速对数组进行遍历,如何快速找到数组中第一个我们需要关注的数据元素,并且如何知道该元素在数组中对应的下标索引,可能用for循环遍历,然后判断元 ...
- 采用pandas读取文件,进行自动化统计小程序
自己完成的第二个自动化统计小程序,完成之后感觉:命名不够规范,造成可读性比较没那么好,幸好给自己很多地方都加了注释#coding:utf-8import os,sysimport reimport x ...
- 用java实现word转pdf
摘要:如何用java实现word文档转pdf呢 最近在网上看了很多资料,遇到了很多头疼的问题,看了各类大神写的方法,最初想要研究的是在线预览word 现在来看,不太现实,除了微软研究的一套在线预览的u ...
- java HashMap and HashMultimap 区别
http://stackoverflow.com/questions/19222029/what-is-difference-between-hashmap-and-hashmultimap The ...
- (30)Linux文本处理
1.cat命令:连接文件并打印输出到标准输出设备 cat 命令可以用来显示文本文件的内容(类似于 DOS 下的 type 命令),也可以把几个文件内容附加到另一个文件中,即连接合并文件. cat 命令 ...
- Deep Learning论文翻译(Nature Deep Review)
原论文出处:https://www.nature.com/articles/nature14539 by Yann LeCun, Yoshua Bengio & Geoffrey Hinton ...
- LSTM机器学习生成音乐
目录 LSTM机器学习生成音乐 数据集介绍 将mid转成note数组 将note数组转成mid文件 获取数据集并将其保存 将note进行编号 构建数据集 截取数据 进行one-hot编码 构建模型 训 ...
- 【uva 534】Frogger(图论--最小瓶颈路 模版题)
题意:平面上有N个石头,给出坐标.一只青蛙从1号石头跳到2号石头,使路径上的最长便最短.输出这个值.(2≤N≤200) 解法:最小瓶颈树.而由于这题N比较小便可以用2种方法:1.最短路径中提到过的Fl ...
- AtCoder Beginner Contest 172
比赛链接:https://atcoder.jp/contests/abc172/tasks A - Calc 题意 给出一个正整数 $a$,计算 $a + a^2 + a^3$ .($1 \le a ...
- BZOJ1396 识别子串【SAM+SegmentTree】
BZOJ1396 识别子串 给定一个串\(s\),对于串中的每个位置,输出经过这个位置且只在\(s\)中出现一次的子串的最短长度 朴素的想法是,我们要找到那些只出现一次的子串,之后遍历每个串,把串所覆 ...