@coder-ka/copy-init

Init your project with boilerplate by only copy files.

Usage no npm install needed!

<script type="module">
  import coderKaCopyInit from 'https://cdn.skypack.dev/@coder-ka/copy-init';
</script>

README

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