Skip to content

Commit

Permalink
minify rolloup output + readme tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
g-harel committed Jan 16, 2019
1 parent ee6d358 commit a4cb840
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 1.0.2

- Make transpiled output minified
- Minor changes to the README

# 1.0.1

- Remove accidental dependency
- Minor changes to the README

# 1.0.0

- Initial release
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<img src="https://svgsaur.us/?t=blobs&f=Comic_Sans_MS,cursive,sans-serif&s=42&w=160&h=50&y=40&o=biu&c=222" />

[![](https://img.shields.io/npm/v/blobs.svg)](https://www.npmjs.com/package/blobs)
[![](https://img.shields.io/bundlephobia/minzip/blobs.svg)](hhttps://bundlephobia.com/result?p=blobs)
[![](https://img.shields.io/bundlephobia/minzip/blobs.svg)](https://bundlephobia.com/result?p=blobs)

> random svg blob generator
Expand Down Expand Up @@ -50,13 +50,15 @@ Name | Type | Description

Name | Type | Default | Description
-------------- | ---------- | ---------- | -------------------------------------
`color` | `string?` | `none` | Fill color
`color` | `string?` | `"none"` | Fill color
`stroke` | `object?` | `...` | Stroke options
`stroke.color` | `string` | `none` | Stroke color
`stroke.color` | `string` | `"none"` | Stroke color
`stroke.width` | `number` | `0` | Stroke width (in pixels)
`seed` | `string?` | _`random`_ | Value to seed random number generator
`guides` | `boolean?` | `false` | Render points, handles and stroke

_Either `stroke` or `color` must be defined._

_Guides will use stroke color and width if defined. Otherwise, they default to `black` stroke with width of `1`._

## License
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blobs",
"version": "1.0.1",
"version": "1.0.2",
"description": "svg blob generator",
"author": "g-harel",
"license": "MIT",
Expand All @@ -17,6 +17,7 @@
"prettier": "^1.14.2",
"rollup": "^1.1.0",
"rollup-plugin-typescript2": "^0.18.1",
"rollup-plugin-uglify": "^6.0.1",
"trash-cli": "^1.4.0",
"tslib": "^1.9.3",
"typescript": "^3.1.3"
Expand Down
3 changes: 2 additions & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import typescript from "rollup-plugin-typescript2";
import {uglify} from "rollup-plugin-uglify";

export default {
input: "./index.ts",
Expand All @@ -7,5 +8,5 @@ export default {
format: "umd",
name: "blobs",
},
plugins: [typescript({cacheRoot: "./node_modules/.cache/rpt2"})],
plugins: [typescript({cacheRoot: "./node_modules/.cache/rpt2"}), uglify()],
};

0 comments on commit a4cb840

Please sign in to comment.