English | 한국어
This package is built for folder structure generator who has specific folder template.
# using yarn
yarn global add root-up
# using npm
npm install -g root-up
# using yarn
yarn add -D root-up
# using npm
npm install -D root-up
Note: add --save if you are using npm < 5.0.0
Add script in your package.json
"scripts": {
"root-up": "root-up"
},
You must make .template
folder to your root path in workspace
The .template
folder must be configured as follows
/.template
/<templateFolder>
/<templateFolder>
...
config.json
Checkout .template
folder demo
/<templateFolder>
... is your own template.
Make sure check prefix in your config.json
The .config.json
file must be configured as follows
{
"prefix": "YOUR_FAVORITE_PREFIX",
"output": "YOUR_DEFAULT_OUTPUT_PATH_IN_YOUR_WORKSPACE",
"excludePath": ["YOUR_IGNORE_PREFIX"]
}
prefix:
The prefix
property is the property that sets the alternate text to be replaced by the name of the folder.
Write down the name of the file, the code used in the template.
output:
The output
property is the property that path to template folder generated related path to your command is executed path
excludePath:
The excludePath
property is the property that can ignore path finding in searching path to generate folder (e.g: .yarn folder)
Default is node_modules
and .git
# Global installed
root-up
# or local installed
yarn <command> # specified in your package.json
You can use npx
2023-02-13.6.50.16.mov
We welcome contribution from everyone in the community.