All Projects → destefanis → Discord-Figma-Project-Scaffold

destefanis / Discord-Figma-Project-Scaffold

Licence: other
A Figma plugin for generating a consistent project structure

Project Scaffold

A fork of the Figma plugin by https://github.com/tushar7d/Project-Scaffold-Figma-Plugin.

Features

  • Auto generates a consistent project structure for your team, so your organization is consistent across teams
  • Creates a cover for your project

How to use

  • Fork this repo and install typescript on your machine
  • Edit the code.ts file
  • Run the command tsc in your terminal to generate a new code.js file with the changes you've made
  • Publish the plugin to your organization internally, use the assets in the asset folder during the publish process
  • Success!

How is this different than the published plugin?

  • We altered the pages this creates to fit our own process.
  • This version does not create a cover (we use the Table of Contents plugin)
  • This version adds some placeholders to the scratch file for easy copy-pasting.

Creating your own project structure

Edit the first few lines of the code.ts file to create your own project structure.

// Create pages
let workInProgressPage = figma.createPage();
let scratchPage = figma.createPage();

First declare the pages you want to create.

// Set page names
figma.currentPage.name = "✅ Ready For Development";
workInProgressPage.name = "🚧 Work In Progress";
scratchPage.name = "❌ Scratch";

Then set the names of these pages. We try and keep our project stucture simple so we're not removing pages everytime we run this plugin.

We also add text layers to our scratch file of other page examples you may need later in your project for easy copy pasting.

await createAdditionalPageExample("🚢 Shipped");
await createAdditionalPageExample("🕹 Prototype");
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].