1
0
Fork 0
freesewing/packages/plugin-title
Joost De Cock 7695d738c2 wrench: Updated rollup configuration
This updates the rollup config to avoid having the spread operator
in the generated code as that causes issues when people want to
bundle our code with webpack (which doesn't support the spread
operator for object literals).

This also changes the browserbuild script to avoid issues for people
running this on Windows. Hat-tip to @philltew for this one.

Note that this is the first plugin where I'm updating the rollup
config. I'll have to do the same for all plugins and patterns,
but it's unlikely I'll write this long a commit message for each
one of them :)
2019-04-19 08:23:01 +02:00
..
img memo: Added example image 2019-04-19 08:23:00 +02:00
src sparkles: Added support for scale and rotation 2019-04-19 08:23:00 +02:00
tests Merge branch 'master' of github.com:freesewing/plugin-title 2019-04-19 08:23:00 +02:00
.editorconfig tada: First commit 2019-04-19 08:22:59 +02:00
.gitignore tada: First commit 2019-04-19 08:22:59 +02:00
.npmignore tada: First commit 2019-04-19 08:22:59 +02:00
.travis.yml Merge branch 'master' of github.com:freesewing/plugin-title 2019-04-19 08:23:00 +02:00
LICENSE tada: First commit 2019-04-19 08:22:59 +02:00
package-lock.json wrench: Updated rollup configuration 2019-04-19 08:23:01 +02:00
package.json wrench: Updated rollup configuration 2019-04-19 08:23:01 +02:00
README.md Merge branch 'master' of github.com:freesewing/plugin-title 2019-04-19 08:23:00 +02:00
rollup.config.js wrench: Updated rollup configuration 2019-04-19 08:23:01 +02:00

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

A freesewing plugin to add pretty part titles to your pattern.

Usage

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

On node.js:

import pattern from '@freesewing/pattern-brian'
import title from '@freesewing/plugin-theme'
import title from '@freesewing/plugin-title'

pattern..with(theme).with(title);

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

<script type="text/javascript" src="https://unpkg.com/freesewing"></script>
<script type="text/javascript" src="https://unpkg.com/@freesewing/pattern-brian"></script>
<script type="text/javascript" src="https://unpkg.com/@freesewing/plugin-theme"></script>
<script type="text/javascript" src="https://unpkg.com/@freesewing/plugin-title"></script>

<script>
var pattern = freesewing.patterns.brian
  .with(freesewing.plugins.theme)
  .with(freesewing.plugins.title);
</script>

Example

This plugin styles a title like this:

Example of the title inserted by this plugin

Install

To install, run:

npm install @freesewing/plugin-title

Build

To build this plugin, run:

npm run build

License: MIT

See the license file for details.