Skip to content

tongngochuunghia/copy-screen-recursively

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

   ___ ___  _ __  _   _       ___  ___ _ __ ___  ___ _ __        _ __ ___  ___ _   _ _ __ ___(_)_   _____| |_   _ 
  / __/ _ \| '_ \| | | |_____/ __|/ __| '__/ _ \/ _ \ '_ \ _____| '__/ _ \/ __| | | | '__/ __| \ \ / / _ \ | | | |
 | (_| (_) | |_) | |_| |_____\__ \ (__| | |  __/  __/ | | |_____| | |  __/ (__| |_| | |  \__ \ |\ V /  __/ | |_| |
  \___\___/| .__/ \__, |     |___/\___|_|  \___|\___|_| |_|     |_|  \___|\___|\__,_|_|  |___/_| \_/ \___|_|\__, |
           |_|    |___/                                                                                     |___/ 
 Version v1.1.0 - [email protected] 

Welcome to the copy-screen-recursively!

Introduction

CLI tools used to copy & rename the screen folder on a new screen, used for design projects according to the structure of each folder is a screen.

Before

root
+-- src
|   +-- pages
|       +-- Login
|           |-- LoginController.ts
|           |-- LoginLogic.ts
|           |-- LoginModel.ts
|           |-- LoginView.tsx
|
|-- package.json
|-- README.md

Using copy-screen-recursively

$ copy-screen-recursively --screenPath=./src/pages
# What is the screen name you want to copy?
# [SOURCE] Screen name: Login
# What is the screen name you want to create?
# [DESTINATION] Screen name: Register
#
# NEW SCREEN COPY COMPLETED!!!

After

root
+-- src
|   +-- pages
|       +-- Login
|       |   |-- LoginController.ts
|       |   |-- LoginLogic.ts
|       |   |-- LoginModel.ts
|       |   |-- LoginView.tsx
|       |
|       +-- Register
|           |-- RegisterController.ts
|           |-- RegisterLogic.ts
|           |-- RegisterModel.ts
|           |-- RegisterView.tsx
|
|-- package.json
|-- README.md

System Requirements

Setup

Install copy-screen-recursively in your project:

npm install https://github.com/tongngochuunghia/copy-screen-recursively.git
# or
yarn add https://github.com/tongngochuunghia/copy-screen-recursively.git

Open package.json and add the following scripts:

"scripts": {
  "copy-screen": "copy-screen-recursively --screenPath=./src/pages"
}
  • --screenPath: The folder contains screens, default ./src/pages
  • --debug: Enabled debug mode, default false

Using

$ npm run copy-screen
# or
$ yarn copy-screen

Reference

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published