Replies: 2 comments 2 replies
-
It seems as though the Remix team (and they can correct me if I'm wrong here) generally exercises the various Remix packages using unit and integration tests. Which is perfectly valid. Some devs (myself included) like to poke and prod at things in a more free-form, uncontrolled fashion, where we want to create a project, and then configure it to use a local copy of the Remix repo, where we can make changes, build the Remix packages, and see those changes reflected in our sample project. Remix is not very well set up for this style of development currently. Things I've tried while working on the
#!/bin/bash
SRC=~/src/gh/remix/
DST=~/src/remix/scratch
pushd $SRC 2>&1 > /dev/null
# create the packages in $SRC/build/node_modules
yarn && yarn run build
# the projects I want to build and install in my scratch project
PROJECTS="dev react server-runtime"
for d in $PROJECTS; do
pushd $SRC/build/node_modules/@remix-run/$d 2>&1 > /dev/null
# Pack it up into a tarball
npm --quiet pack
mv -f *.tgz $DST/
pushd $DST/ 2>&1 > /dev/null
# clear out old package
npm --silent rm --no-save @remix-run/$d
# install the freshly built package
npm --silent i remix-run-$d*.tgz
popd 2>&1 > /dev/null
popd 2>&1 > /dev/null
done This is obviously (at least, to me) not ideal. What I'd love is to just be able to do The conventional way would be to properly support There's also probably some work to be done around having Would love some input from the team on this one though! I absolutely love Remix and would love to see it become even easier to hack on by everybody :) |
Beta Was this translation helpful? Give feedback.
-
What about some kind of yarn script which moves the build files into an example project in the remix codebase which rebuilds on filechanges? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If you are trying to contribute to the remix codebase, it seems to be quite hard to test out the changes you made to it. There should be an out of the box solution to test out changes made in the remix codebase, like an example project.
Beta Was this translation helpful? Give feedback.
All reactions