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

add input for custom build command #49

Open
WickyNilliams opened this issue Mar 22, 2024 · 2 comments
Open

add input for custom build command #49

WickyNilliams opened this issue Mar 22, 2024 · 2 comments

Comments

@WickyNilliams
Copy link

I have a repo where the docs are colocated with source, but crucially not as a monorepo, just sibling directories. My npm run build command builds source, not astro. Of course i can && npm run build:astro or something at the end, but that just complicates things. Nor do I want to make astro my main build script. Would be nice if it were configurable somehow, but default to build for backward compatibility.

Happy to make a PR if you think this is OK

@WickyNilliams
Copy link
Author

somewhat related to #29. since my astro site is in a /docs subdir, i don't think running the astro CLI directly would work for me. the astro CLI would not find my docs?

but maybe in that case the astro build could also be a configurable build command? so if you still want to use npm scripts you could override it?

@WickyNilliams WickyNilliams changed the title custom build command add input for custom build command Mar 22, 2024
@charlesLoder
Copy link

Same issue. I would love this

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

No branches or pull requests

2 participants