Socket
Socket
Sign inDemoInstall

hooks-cli

Package Overview
Dependencies
77
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hooks-cli

CLI for scaffolding React hooks


Version published
Maintainers
1
Install size
14.6 MB
Created

Readme

Source

npm version

hooks-cli

Opinionated CLI for scaffolding React hooks.

This CLI was made by following Dominik Kundel tutorial

Table of Contents

Getting started

sudo npm install -g hooks-cli

Usage

Create

mkdir my-custom-hook

cd my-custom-hook

create-hook

Initialize a git repository

create-hook -g

or

create-hook --git

Develop

Go to your package.json and uncomment the files property.

npm start

This will run a demo locally at localhost:3000 using webpack.demo.js

Distribute

npm publish --access public Reference

This will use webpack.config.js

Update the externals object if you add more peerDependencies. By default React is included.

Structure

my-custom-hook
├── LICENCE
├── README.md
├── node_modules
├── package.json
├── package-lock.json
├── postcss.config.js
├── webpack.config.js
├── webpack.demo.js
├── .eslintignore
├── .eslintrc
├── .gitignore
├── .prettierignore
├── .prettierrc
├── demo
│   ├── styles
│	│	├── index.scss
│	│	├── tailwind.css
│   │   └── variables.scss
│   ├── App.jsx
│   ├── index.html
│   └── index.jsx
└── src
    └── index.js

Includes

License

hooks-cli is MIT licensed.

FAQs

Last updated on 21 Jul 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc