Hayde
ExamplesDocumentationGithub
  • Hayde
  • ♥️Features
    • AI module
    • Builder.IO module
    • Chakra UI module
    • Create Plugin module
    • CSS module
    • emmet
    • General module
    • Material UI module
    • React.js module
    • Storybook module
  • 📔Documentation
    • CLI Arguments
    • Options
    • Profiles
    • NPM script trigger
    • How to Create Custom Plugin
    • Contributor Covenant Code of Conduct
  • 🚀Examples
  • Source Code
Powered by GitBook
On this page

Was this helpful?

  1. Documentation

NPM script trigger

If you want to run any script after or before the component creation, you can use our custom commands.

  • post-component-creation: This command will be executed after the component creation.

  • pre-component-creation: This command will be executed before the component creation.

To use this feature, you need to add the following code to your package.json file.

{
  "scripts": {
    "post-component-creation": "echo 'Component Created'",
    "pre-component-creation": "echo 'Component Creation Started'"
  }
}

Last updated 1 year ago

Was this helpful?

📔