This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Sigurd Tapio Mannsåker
Posted Jul 25 - Read on Facebook

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.

4 Comments

Heni Amundsen

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.

Lukas Guschlbauer
Sigurd Tapio Mannsåker

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.

Sigurd Tapio Mannsåker

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.

Read the entire post on Facebook