Skip to content

Commit

Permalink
Rename npm package.
Browse files Browse the repository at this point in the history
  • Loading branch information
manastyretskyi committed May 2, 2022
1 parent aea28db commit 1e94fd3
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ PS: Based on the original implementation: http://benpickles.github.io/peity/.

## Installation

Just download `peity_vanilla.min.js` and add to your HTML file.
Just download `peity-vanilla.min.js` and add to your HTML file.

Download link: https://raw.githubusercontent.com/railsjazz/peity_vanilla/main/dist/peity_vanilla.js.
Download link: https://raw.githubusercontent.com/railsjazz/peity_vanilla/main/dist/peity-vanilla.js.

```html
<script type="text/javascript" src="peity_vanilla.min.js"></script>
<script type="text/javascript" src="peity-vanilla.min.js"></script>
```

And start using :)
Expand Down
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Peity Vanilla Charts</title>
<script type="text/javascript" src="peity_vanilla.min.js"></script>
<script type="text/javascript" src="peity-vanilla.min.js"></script>

<style>
.container {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion dist/peity_vanilla.js → dist/peity-vanilla.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/peity_vanilla.js.map → dist/peity-vanilla.js.map

Large diffs are not rendered by default.

File renamed without changes.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "piety_vanilla",
"description": "peity_vanilla is a vanilla version of original piety jQuery plugin that converts an element's content into a mini `svg` pie, line or bar chart.",
"name": "peity-vanilla",
"description": "peity-vanilla is a vanilla version of original piety jQuery plugin that converts an element's content into a mini `svg` pie, line or bar chart.",
"version": "0.0.5",
"private": false,
"author": "www.railsjazz.com",
Expand All @@ -9,9 +9,9 @@
"Liubomyr Manastyretskyi <[email protected]>"
],
"license": "MIT",
"module": "dist/peity_vanilla.es2017-esm.js",
"main": "dist/peity_vanilla.js",
"browser": "dist/peity_vanilla.min.js",
"module": "dist/peity-vanilla.es2017-esm.js",
"main": "dist/peity-vanilla.js",
"browser": "dist/peity-vanilla.min.js",
"scripts": {
"build": "rollup -c",
"watch": "rollup -wc"
Expand Down
6 changes: 3 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ export default [
input: "src/index.js",
output: [
{
file: "dist/peity_vanilla.es2017-esm.js",
file: "dist/peity-vanilla.es2017-esm.js",
format: "es",
banner,
},
{
name: "peity",
file: "dist/peity_vanilla.js",
file: "dist/peity-vanilla.js",
format: "umd",
sourcemap: true,
banner: banner,
},
{
name: "peity",
file: "dist/peity_vanilla.min.js",
file: "dist/peity-vanilla.min.js",
format: "iife",
banner: banner,
plugins: [terser()]
Expand Down

0 comments on commit 1e94fd3

Please sign in to comment.