JSPM

@freesewing/plugin-bundle

0.9.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 73
  • Score
    100M100P100Q105090F
  • License MIT

Five essential freesewing build-time plugins in one neat bundle

Package Exports

  • @freesewing/plugin-bundle

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@freesewing/plugin-bundle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Freesewing logo

 freesewing
a library for made-to-measure sewing patterns

Travis build Version License Code coverage DeepScan grade Chat on Gitter Become a Patron

plugin-bundle

A freesewing plugin that provides the following plugins in one bundle:

  1. plugin-cutonfold : Add cut-on-fold indicators to your patterns
  2. plugin-dimension : Add dimensions to your (paperless) patterns
  3. plugin-grainline : Add grainline indicators to your patterns
  4. plugin-logo : Add a scalebox to your patterns
  5. plugin-scalebox : Add pretty titles to your pattern parts
  6. plugin-title : Add pretty titles to your pattern parts

Note that these are all build-time plugins. In other words, plugins used by developers/pattern designers, rather than run-time plugins that are used when generating patterns.

Without exception, all freesewing patterns use all these plugins, so it made sense to bundle them.

Usage

To load this plugin, add it to your instantiated pattern.

On node.js:

import freesewing from 'freesewing'
import pluginBundle from '@freesewing/plugin-bundle'

let pattern = new freesewing.Pattern()
  .with(pluginBundle);

In the browser, this plugin will register as freesewing.plugins.bundle:

<script type="text/javascript" src="https://unpkg.com/freesewing"></script>
<script type="text/javascript" src="https://unpkg.com/@freesewing/plugin-bundle"></script>

<script>
var pattern = new freesewing.Pattern()
  .with(freesewing.plugins.bundle);
</script>

Install

To install, run:

npm install @freesewing/plugin-bundle

Build

To build this plugin, run:

npm run build