Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
YuryScript committed Mar 5, 2021
1 parent 83dde35 commit 8cf7fab
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion build/_snowpack/optimize-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"js": [
"/basic/main.js",
"/src/Particles.js"
"/basic/Particles.js"
]
},
"/index.html": {
Expand Down
1 change: 1 addition & 0 deletions build/basic/Particles.js

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

2 changes: 1 addition & 1 deletion build/basic/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Basic</title><script src="./main.js" type="module" defer="defer"></script><link rel="stylesheet" href="./style.css"><link rel="modulepreload" href="/src/Particles.js"/></head><body><canvas id="particles"></canvas><script type="module" src="/src/Particles.js"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Basic</title><script src="./main.js" type="module" defer="defer"></script><link rel="stylesheet" href="./style.css"><link rel="modulepreload" href="/basic/Particles.js"/></head><body><canvas id="particles"></canvas><script type="module" src="/basic/Particles.js"></script></body></html>
2 changes: 1 addition & 1 deletion build/basic/main.js

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

22 changes: 10 additions & 12 deletions build/src/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# Spark Particles
![version](https://img.shields.io/npm/v/spark-particles)
![license](https://img.shields.io/npm/l/spark-particles)
![language](https://img.shields.io/github/languages/top/gelltorn/particles)
![issues](https://img.shields.io/github/issues/gelltorn/particles)
![npm downloads](https://img.shields.io/npm/dt/spark-particles)
![version](https://img.shields.io/npm/v/spark-particles?style=for-the-badge)
![license](https://img.shields.io/npm/l/spark-particles?style=for-the-badge)
![language](https://img.shields.io/github/languages/top/gelltorn/particles?style=for-the-badge)
![issues](https://img.shields.io/github/issues/gelltorn/particles?style=for-the-badge)
![npm downloads](https://img.shields.io/npm/dt/spark-particles?style=for-the-badge)
![npm min bundle size](https://img.shields.io/bundlephobia/min/spark-particles?style=for-the-badge)
![npm minzip bundle size](https://img.shields.io/bundlephobia/minzip/spark-particles?style=for-the-badge)

Lightweight and fast Particle library written in JavaScript

Zero Dependencies!

[Examples](https://gelltorn.github.io/particles/examples/)

## Installation
1. `npm i spark-particles`
1. `npm i spark-particles --save`
2. Done!
## Usage
See Basic example
Expand All @@ -31,12 +35,6 @@ const particles = new Particles(node, {
maxVelocity: 0.8, // number
maxRadius: 4 // number
},
staticParticles: [
[0.4, 0.4],
[0.6, 0.4],
[0.4, 0.6],
[0.6, 0.6],
],
renderer: {
transparentBackground: false, // boolean
backgroundColor: "#186cb6", // color
Expand Down
2 changes: 1 addition & 1 deletion build/src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spark-particles",
"version": "0.2.0",
"version": "0.2.1",
"description": "Lightweight and fast Particle library written in JavaScript",
"main": "./Particles.js",
"scripts": {
Expand Down

0 comments on commit 8cf7fab

Please sign in to comment.