@medyll/dev-env
v0.0.13
Published
install and config husky, commitlint, commitizen, standard-version, standard-version
Downloads
1
Readme
@medyll/dev-env
This is a script for setting up and configuring various packages in a Javascript/Node.js project for @medyll environment. It automates the process of initializing a Git repository, installing necessary packages, and configuring them for your development environment.
Usage
npx @medyll/dev-env
Details
The installer performs the following tasks:
Git Initialization: If necessary, it initializes a Git repository.
Packages Installation.
It installs a series of packages:- husky,
- commitizen,
- standardVersion
- commitlint
- svelte@latest
Package Configuration: The postInstall function configures each package after its installation. The specific configurations depend on the package:
Svelte:
- Executes
npm i
to post install the package.
- Executes
husky:
- Installs Husky with
npm i
. - Adds a Husky commit hook.
- Modifies the
.husky/pre-commit
file to comment out thenpm test
line. - Installs inquirer with
npm i inquirer
. - Copies a
commit.js
file to thescripts
directory. - Adds a commit script to
package.json
that executesnode scripts/commit.js
.
- Installs Husky with
commitlint:
- Creates file commitlint.config.js.
- update the file's content with "export default { extends: ["@commitlint/config-conventional"] }".
Standard Version: Adds a release script to
package.json
that executesstandard-version
.
For more details, refer to the source code.