Is there a way to require a module that isn't in the project's .framer folder? Was hoping to do something like require("~/My client/My project/Modules/MyModule"), but no luck.
It's a bit of a pain to keep making sure each prototype has the latest version of the shared modules for the project.
you could set up node/gulp.js to observe for the newest dependencies and copy them into the project folder. https://www.npmjs.com/package/gulp-dependencies
but the easiest way on a mac would be using Apple Automator.
Or npm link? https://docs.npmjs.com/cli/link
In the end I just used the ln command in Terminal, works like a treat :) Like so, if anyone else is interested:
ln -s ~/My client/Framer modules/modules/ some-framer-project.framer
The modules folder inside a modules folder is just cause a symbolic link will have the same name as the source, and I didn't want "modules" directly in my project folder.
Symbolic links also get duplicated if you duplicate the framer project, so you don't need to run the terminal command for every new prototype if you just duplicate an existing one.