GithubHelp home page GithubHelp logo

meiraleal / framer-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jchavarri/framer-boilerplate

0.0 1.0 0.0 449 KB

An empty Framer project that uses Gulp for live reload and CoffeeScript transpilation + Browserify to include modules

CoffeeScript 23.41% JavaScript 53.87% HTML 22.71%

framer-boilerplate's Introduction

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:

  • Work usually editing Framer modules, that you need to change and test quickly
  • Have projects that depend on MANY Framer modules, and need to reorganize them in subfolders inside the modules folder
  • Need to work and transpile Framer CoffeeScript projects on operating systems different than OSX (mainly Windows and Linux).
  • Love Sublime, vi, your_favorite_editor_here and won't move to anything else :)

Before starting

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

Get started

  • Run npm install from the project folder. This will install all the required dependencies
  • Run gulp. If you have not installed it: npm install -g gulp
  • Open http://localhost:3000 on Chrome
  • Start working in app/app.coffee. Any changes on the Framer code will refresh the browser

Exporting a project to Framer Studio

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

  • Run gulp export when you think your project is ready to be exported
  • Open the framer-boilerplate.framer in the exports folder with Framer Studio
  • Update the project if asked

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??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.