@cli-toolbox/project
v0.0.2
Published
CLI toolbox that focuses on setting up projects, creating apps, managing coding styles, adding dependencies, and other project initialization tasks
Downloads
8
Maintainers
Readme
📦 CLI Toolbox - Project Generator
Installation
$ pnpm add -D plop @cli-toolbox/project
# or
$ npm install -D plop @cli-toolbox/project
Usage
After installing the packages, you have to create a plopfile.{js,mjs}
in the root of your project.
# CommonJS
$ touch plopfile.js
# or
# ECMAScript modules
$ touch plopfile.mjs
Then, you can add the following code to your plopfile.{js,mjs}
:
// plopfile.js
/** @param {import('plop').NodePlopAPI} plop */
default async function config(plop) {
await plop.load('@cli-toolbox/project')
}
module.exports = config
OR
// plopfile.mjs
/** @param {import('plop').NodePlopAPI} plop */
export default async function config(plop) {
await plop.load('@cli-toolbox/project')
}
After that, you can run the following command:
# pnpm
$ pnpm plop
# or
# npm
$ npx plop