1.0.0 • Published 5 years ago
@coder-ka/copy-init v1.0.0
copy-init
When you make project with some configuration and make it boilerplate and example and demo.
Easiest answer is copy neccesary files.
So define mandatory files for your boilerplate.
Make boilerplate-files.json
in your boilerplate's root.
my-boilerplate -- src/
├ .git/
├ .gitignore
├ package.json
├ README.md
├ webpack.config.js
┗ [*] boilerplate-files.json
you can specify files with glob syntax.
boilerplate-files.json
{
"files": [
"src/index.js",
"src/index.html",
"src/**/*.css",
".gitignore",
"package.json",
"webpack.config.js"
]
}
Run below command and required files should be copied.
npm install -g copy-init
cd <path/to/my/awesome-starting-project>
copy-init <path/to/my/boilerplate>
Get Started !!
1.0.0
5 years ago