DPM

DPM is an experimental package manager for design assets.

Getting started

Open a terminal and enter gem install dpm

Usage

DPM is perfect for design collaboration with Sketch. A DPM Palette.json file lets you define fonts and Sketch plugins that are dependencies of your design projects.

Let's create a DPM Palette file to distribute to my team so that we can keep our fonts & Sketch plugins in sync when working on a project.

I'll create a new Palette.json file with the command palette touch.

This creates a skeleton Palette file in the local directory. Let's open it and add some fonts and Sketch plugins we use on this project. The resulting Palette.json file should look something like this...

{
  "name": "My Project",
  "author": "Alasdair Monk",
  "version": "1.0",
  "fonts": [
      "http://www.fontsquirrel.com/fonts/download/Inconsolata",
      "http://www.fontsquirrel.com/fonts/download/junicode",
  ],
  "sketch_plugins": [
      "https://github.com/fnky/sketch-dockpreview/archive/master.zip",
      "https://github.com/matt-curtis/Fluid-for-Sketch/archive/master.zip"
  ]
}

I can now run the command dpm install.

My Project 1.0
Downloaded     100% |oooooooooooooooooooooooooooooooooooooooo|  34.9KB 278.1KB/s ETA:   0:00:00
Downloaded     100% |oooooooooooooooooooooooooooooooooooooooo|   1.4MB 610.5KB/s ETA:   0:00:00
Installing fonts...
Downloaded
Downloaded     100% |oooooooooooooooooooooooooooooooooooooooo|   2.5MB   1.6MB/s ETA:   0:00:00
Installing Sketch plugins...
Palette complete. 9 fonts, 2 Sketch plugins now installed.

Limitations

  • DPM currently only supports installing from hosted zip files.
  • Currenly only works with fonts and Sketch plugins
  • Probably a ton of bugs