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

https://junon.me/

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的更多相关文章

  1. Eclipse wtp project dependent project facets问题

    wtp project会编译成一个war包,但在eclipse里debug时,依赖的project没有自动编译成jar包并打包到war的lib目录里. 原因:依赖project的facets未设置或未 ...

  2. Dynamic Web Project vs Static Web Project 以及 Project facets

    Dynamic Web Project vs Static Web Project 需要用到JSP,servlet等技术的动态服务器技术,就需要DWP:对于全部都是html页面的可以使用static ...

  3. jsp+tomcat+ 创建project 配置project

    *如今我们已经下载到了 tomcat 7.0+ eclipse for java ee 直接解压,打开eclipse. 接下来是步骤: eclipse 打开的界面.空空如也 ! ..* 点击 file ...

  4. Project: Individual Project - Word frequency program----11061192zmx

    Description & Requirements http://www.cnblogs.com/jiel/p/3311400.html 项目时间估计 理解项目要求: 1小时 构建项目逻辑: ...

  5. Project: Individual Project - Word frequency program-11061160顾泽鹏

    一.预计用时: (1)明确要求:15min: (2)文件的遍历:1h: (3)Simple mode 词频统计:0.5h: (4)extend mode 词频统计:1h: (5)对单词词频排序输出:0 ...

  6. 创建maven parent project & module project

    1.命令方式: 1)Create the top-level root: mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo.arc ...

  7. 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 ...

  8. Project、Target、Workspace and Scheme

    前言 今天有人问我Target和Project是什么关系?额...学习iOS开发都知道Target和Project的关系.这里我就简单的做了一个总结,而且加入的Scheme和Workspace.如果不 ...

  9. 使用Project进行项目管理 - 项目管理系列文章

    前面当项目经理的时候曾经用到过Project来进行项目管理.这些天闲着无事,将代码翻出来留念了一下,现在将Project项目管理的东西也翻出来玩玩. 微软的Project是一款不错的软件,经过微软这么 ...

随机推荐

  1. Frame of Reference and Roaring Bitmaps

    https://www.elastic.co/cn/blog/frame-of-reference-and-roaring-bitmaps http://roaringbitmap.org/ 2015 ...

  2. Springboot中PropertySource注解的使用

    https://blog.csdn.net/qq_30739519/article/list/3 注解 https://blog.csdn.net/qq_30739519/article/detail ...

  3. centos7+python+selenium+chrome

    1.安装chrome yum install google-chrome 2.安装chromedriver所有版本的下载地址:https://sites.google.com/a/chromium.o ...

  4. RocketMQ 常用消息类型

    文章首发于公众号<程序员果果> 地址 : https://mp.weixin.qq.com/s/dYqGd9zi2mNelsNNLIribg 消息发送示例 导入依赖: <depend ...

  5. Spring MVC—拦截器,文件上传,中文乱码处理,Rest风格,异常处理机制

    拦截器 文件上传 -中文乱码解决 rest风格 异常处理机制 拦截器 Spring MVC可以使用拦截器对请求进行拦截处理,用户可以自定义拦截器来实现特定的功能,自定义的拦截器必须实现HandlerI ...

  6. python3 自动部署MariaDB主从复制

    master import configparser import os def config_mariadb_yum(): exists = os.path.exists('/etc/yum.rep ...

  7. for循环语句学习

    for循环又称为遍历循环,从名字就可以知道,它用于对象的遍历 语法格式: 会从可迭代对象对象中依次拿出值来赋值给变量,变量的值每次都会被修改 for 变量1[变量2...] in 可迭代对象: 代码块 ...

  8. D - LOL UVALive - 8521 (状压dp)

    https://nanti.jisuanke.com/t/A1616 思路:dp[i][j]表示前i列里面选了情况j有多少种组合方案 #include<bits/stdc++.h> usi ...

  9. Testing Beta Round (Unrated)

    比赛链接:https://codeforces.com/contest/1390 A. 123-sequence 题意 给出一个只含有 $1,2,3$ 的数组,问使所有元素相同至少要替换多少元素. 题 ...

  10. HDU5589 Tree【分块 01字典树】

    HDU5589 Tree 题意: 给出一棵\(N\)个点的树,每条边有边权,每次询问下标为\([L,R]\)区间内的点能选出多少点对,点对之间的路径上的边权异或和大于\(M\) 题解: 对于两点\(u ...