easy-file-elsaoo

1.0.1 • Public • Published

east-file-elsaoo

这个 npm 包的作用是快速建立项目工程目录模板文件,因为工程目录文件大多是有共性的。在开始一个任务前可以使用该 npm 快速建立一个工作目录。

建立目录结构

demo;
--index.tsx;
--hooks.ts;
--service.ts;
--style.less;
--components;

参数解释

-t --target 生成目录的地址
-n --name 生成目录的名称
--no-component 生成目录中是否包含 components 文件夹

使用方法

  • 在当前目录下生成 demo 模板文件夹,因为-t 默认参数是当前文件夹,所以没有特定指定的时候,是在当前文件夹。
easyfile -n demo
  • 在指定目录下生成 demo 模板文件夹
easyfile -t ~/Desktop -n demo
  • 生成模板文件夹中不包含 components 文件夹
easyfile -n demo --no-component

Package Sidebar

Install

npm i easy-file-elsaoo

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

3.06 kB

Total Files

8

Last publish

Collaborators

  • elsaaa