@jswork/http-schema-init
v1.1.4
Published
Init for http-schema.
Readme
http-schema-init
Init for http-schema.
What this is
A starting point for npm packages that copy template files into the current directory
(e.g. @jswork/craco-init, @jswork/ant-i18n-init, ...).
The CLI does exactly one thing: recursively copy src/tpls/ into process.cwd().
Creating a new init package
- Copy this repository (or clone it).
- Edit
package.json:name,description(andbinif you want a custom command name). - Put your own template files into
src/tpls/— nested directories and dotfiles are supported. pnpm install(no build step —src/index.jsruns directly).- Publish:
pnpm release(release-it: bumps version, publishes).
src/index.js never needs editing — it copies whatever is in src/tpls/.
Structure
src/
├── index.js # CLI: copies src/tpls/* to process.cwd()
└── tpls/ # your template files go here (dummy placeholders included)How it works
Running npx npx-init (or node src/index.js) copies every file under src/tpls/
into the current directory, preserving subdirectory structure and dotfiles.
license
Code released under the MIT license.
