Skip to content

Commit a4cb840

Browse files
committed
minify rolloup output + readme tweaks
1 parent ee6d358 commit a4cb840

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 1.0.2
2+
3+
- Make transpiled output minified
4+
- Minor changes to the README
5+
6+
# 1.0.1
7+
8+
- Remove accidental dependency
9+
- Minor changes to the README
10+
11+
# 1.0.0
12+
13+
- Initial release

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<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" />
22

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

66
> random svg blob generator
77
@@ -50,13 +50,15 @@ Name | Type | Description
5050

5151
Name | Type | Default | Description
5252
-------------- | ---------- | ---------- | -------------------------------------
53-
`color` | `string?` | `none` | Fill color
53+
`color` | `string?` | `"none"` | Fill color
5454
`stroke` | `object?` | `...` | Stroke options
55-
`stroke.color` | `string` | `none` | Stroke color
55+
`stroke.color` | `string` | `"none"` | Stroke color
5656
`stroke.width` | `number` | `0` | Stroke width (in pixels)
5757
`seed` | `string?` | _`random`_ | Value to seed random number generator
5858
`guides` | `boolean?` | `false` | Render points, handles and stroke
5959

60+
_Either `stroke` or `color` must be defined._
61+
6062
_Guides will use stroke color and width if defined. Otherwise, they default to `black` stroke with width of `1`._
6163

6264
## License

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blobs",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "svg blob generator",
55
"author": "g-harel",
66
"license": "MIT",
@@ -17,6 +17,7 @@
1717
"prettier": "^1.14.2",
1818
"rollup": "^1.1.0",
1919
"rollup-plugin-typescript2": "^0.18.1",
20+
"rollup-plugin-uglify": "^6.0.1",
2021
"trash-cli": "^1.4.0",
2122
"tslib": "^1.9.3",
2223
"typescript": "^3.1.3"

rollup.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import typescript from "rollup-plugin-typescript2";
2+
import {uglify} from "rollup-plugin-uglify";
23

34
export default {
45
input: "./index.ts",
@@ -7,5 +8,5 @@ export default {
78
format: "umd",
89
name: "blobs",
910
},
10-
plugins: [typescript({cacheRoot: "./node_modules/.cache/rpt2"})],
11+
plugins: [typescript({cacheRoot: "./node_modules/.cache/rpt2"}), uglify()],
1112
};

0 commit comments

Comments
 (0)