Skip to content
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

#356 - Document how to use npm to build the theme within DDEV #358

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rishabjasrotia
Copy link
Contributor

#356 - Document how to use npm to build the theme within DDEV

  • Custom command created for DDEV web container

@rishabjasrotia
Copy link
Contributor Author

@hussainweb
I can see that pipeline fails at platform pull command?
Do you know what would be root cause for this? Missing CLI token
ddev pull platform -y

Copy link
Member

@hussainweb hussainweb left a comment

Choose a reason for hiding this comment

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

@rishabjasrotia, I am only getting back to addressing PRs here. I really like this change and I want npm to be executed by DDEV, but please see my comment.

## Description: Run npm commands inside theme.
## Usage: npm [flags] [args]
## Example: "npm install or npm rebuild node-sass or npm run build or npm run watch"
cd /var/www/html/web/themes/custom/contribtracker && npm $@
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for this. I am not sure about this because I recently found out that DDEV handles this by translating the host path into a guest path when running ddev commands. This means that if we switch to the theme directory and run ddev npm, it would work fine. I am wondering if that is more intuitive than this approach. What do you think?

See ddev/ddev#3747 (comment)

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.

None yet

2 participants