-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Make develop build and run using normal npm conventions #7305
Comments
in practice, i think this means:
The end result would be that you could do:
...and it would 'do the right thing' and work. @martindale, does that match your expectations? |
@ara4n yes, this is great! Thanks for taking the time to write this up. I think it'll help a lot — if I have time this week, I'm going to take a crack at shoring up the dependency tree and making this work. |
I'd love our build setup to be simpler as well, but I wonder how js-sdk and react-sdk would get built after making local changes if you've set it up with We might be able to configure webpack to monitor |
That approach seems less like npm conventions to me though (where every module is supposed to build itself), but taking this shortcut for local development only might be worth the convenience. |
I've started a google doc to try to gather and comment on options here: https://docs.google.com/document/d/138w2bb8BokVR6OJA7_5qIeDFkjp9GODzlrqhVC9sMEI/edit# |
A step towards a real solution for #7305 This approach makes use of `npm link` to remove the use of symlinks in the build process. The build process has also been altered to invoke the build process of each underlying SDK (react, js). This means that one can now `npm link` and `npm start` and have a working environment. At the same time, parallelshell was dropped due to lack of maintenance from the maintainer.
This is mostly fixed by #7355 - we still have a couple oddities, although they seem unavoidable given the requirement to maintain a js-sdk and react-sdk separate to riot-web. |
Rather than messing with fetch-develop.deps.sh / mandating manual linked checkouts, or having to run three separate
npm run start
processes, it would be much more simpler if riot-web just let younpm run build
ornpm run start
on develop to pull in the right versions of react-sdk and js-sdk as per package.json. Users could thennpm link
if they want to customise a particular version of the dep, but would ever only need a singlenpm run start
instance.The text was updated successfully, but these errors were encountered: