Skip to content

Documentation for hooks #1473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 12, 2016
Merged

Documentation for hooks #1473

merged 1 commit into from
Feb 12, 2016

Conversation

teobugslayer
Copy link
Contributor

No description provided.

@teobugslayer
Copy link
Contributor Author

ping @hdeshev

@teobugslayer teobugslayer added this to the 1.6.0 milestone Feb 11, 2016
@teobugslayer teobugslayer force-pushed the hooks-docs branch 2 times, most recently from a43c1f4 to 6c62a35 Compare February 11, 2016 16:22
What are the hooks
==================

The hooks are any executable code or node.js scripts placed in the `hooks` subdirectory of your project.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use "under the hooks subdirectory", provided there is one more level of subdirectories related to the CLI "lifecycle"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree

@teobugslayer
Copy link
Contributor Author

Ping @ikoevska

@rosen-vladimirov
Copy link
Contributor

👍

teobugslayer added a commit that referenced this pull request Feb 12, 2016
@teobugslayer teobugslayer merged commit 90e8be3 into release Feb 12, 2016
@teobugslayer teobugslayer deleted the hooks-docs branch February 12, 2016 07:18
└── after-prepare (this is an executable file)
```

To support multiple scripts extending the same action, you can use a different approach. Create a sud-directory in the `hooks` directory using the naming convention described above.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: sub-directory

@hdeshev
Copy link
Contributor

hdeshev commented Feb 12, 2016

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants