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
Using Gridsome source code in production instead of NPM #1511
Comments
You could use |
I do that locally, but I need to deploy my site somehow via CI (Netlify) |
@mklueh It doesn't look like Gridsome can be bundled up into an artifact. If you'd like to modify parts of it, I think you can run a script on |
Thanks for that great idea, I think I'll try that. Maybe it's also an option to git clone gridsome from my fork into the node_modules directory in a postinstall script if there are many changes. Otherwise it could get messy patching every single file |
@mklueh Oh, if you have a public repository, then you can just use that as a dependency |
@a-kriya oh wow thanks, that's amazing. Didn't know this was possible, but it definitely solves my problem :) |
@mklueh Sweet. I suppose once you've tested it out, this ticket can be marked closed. |
It´s not working and I guess the reason is the actual gridsome package required for installation is not in the root package. This is what I get:
Something like Edit: I´ve upgraded to yarn berry (yarn 2..), which should support Github subdirectories, but I´m running into this now:
trying to install it with npm leads to this error:
although the package.json is present in the directory |
@mklueh https://gitpkg.vercel.app/ I found it mentioned at https://stackoverflow.com/a/62275259 |
@mklueh Did the above resolve the issue with install? |
It worked for me locally. However, I didn't test the build on Netlify. Thanks! |
Hello, I´m looking for a way to build Gridsome from the source code into an "artifact", that I can use in my application. (To clearify, yes I'm aware that js is not compiled but rather packaged :) )
The reason for this is I need a certain feature that is not contained in the latest Gridsome version, as discussed here: #1497.
For example in Java, I would simply build a .jar file out of the library that I then can embed into my application.
I would appreciate any tips on how to do that, without deploying my own npm package to npmjs.org.
The text was updated successfully, but these errors were encountered: