jchavarri / framer-boilerplate

An empty Framer project that uses Gulp for live reload and CoffeeScript transpilation + Browserify to include modules
23 stars 10 forks source link

framer-boilerplate

A boilerplate FramerJS project that uses Gulp for live reload and CoffeScript transpilation1 + Browserify to include modules

Why?

This project will help you if you:

Before starting

To use this project, you will first need to install NodeJS. You can do it from the official website.

Get started

Exporting a project to Framer Studio

If you want to create a Framer Studio project to be shared, you just need to:

There are two known limitations for this export process:

  1. Your prototype can have errors if the versions of Framer are not aligned, depending on the Framer features you are using
  2. If you use complex submodules folder structure, your submodules won't be loaded (see 'Submodules' below)

Submodules

You can add as many submodules as you want in the modules folder. In the sample code included, you can see a module called myModule. To include it:

MyModule = require("myModule") (same as in Framer Studio)

You can create subfolders in the modules folder and include it using:

MyModule = require("subfolder/myModule")

NOTE: At the moment, Framer Studio expects all submodules to be in a flat modules folder. If you create complex folder hierarchies inside the modules folder, you won't be able to open your project on Framer Studio.

About the 'framerjs-prebuilt' npm package

To avoid compiling Framer on Windows machine, where the make command is not available by default, this boilerplate includes a precompiled version of Framer that I keep updating on this repo. This process is done manually at the moment, so let me know if you run into problems with the current version of FramerJS included. If you have any idea to make this process cleaner or easier, please let me know.

1Does this word even exist??