Skip to content

Commit b2c98db

Browse files
0 parents  commit b2c98db

19 files changed

+16837
-0
lines changed

.babelrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"presets": [
3+
["env", {
4+
"modules": false
5+
}],
6+
"stage-0",
7+
"react"
8+
],
9+
"plugins": [
10+
"external-helpers"
11+
]
12+
}

.eslintrc

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": [
4+
"standard",
5+
"standard-react"
6+
],
7+
"env": {
8+
"es6": true
9+
},
10+
"plugins": [
11+
"react"
12+
],
13+
"parserOptions": {
14+
"sourceType": "module",
15+
"allowImportExportEverywhere": true
16+
},
17+
"rules": {
18+
// don't force es6 functions to include space before paren
19+
"space-before-function-paren": 0,
20+
21+
// allow specifying true explicitly for boolean props
22+
"react/jsx-boolean-value": 0,
23+
24+
// allow imports mixed with non-import statements at top of file
25+
"import/first": 0
26+
}
27+
}

.gitignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
# See https://help.github.com/ignore-files/ for more about ignoring files.
3+
4+
# dependencies
5+
node_modules
6+
7+
# builds
8+
build
9+
dist
10+
11+
# misc
12+
.DS_Store
13+
.env
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# react-particle-animation
2+
3+
> Canvas-based particle animation for React.
4+
5+
[![NPM](https://img.shields.io/npm/v/react-particle-animation.svg)](https://www.npmjs.com/package/react-particle-animation) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6+
7+
## Install
8+
9+
```bash
10+
npm install --save react-particle-animation
11+
```
12+
13+
## Usage
14+
15+
```jsx
16+
import React, { Component } from 'react'
17+
18+
import MyComponent from 'react-particle-animation'
19+
20+
class Example extends Component {
21+
render () {
22+
return (
23+
<MyComponent />
24+
)
25+
}
26+
}
27+
```
28+
29+
## License
30+
31+
MIT © [transitive-bullshit](https://github.com/transitive-bullshit)

example/README.md

+2,164
Large diffs are not rendered by default.

example/package.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "react-particle-animation-example",
3+
"homepage": "https://transitive-bullshit.github.io/react-particle-animation",
4+
"version": "0.0.0",
5+
"private": true,
6+
"license": "MIT",
7+
"dependencies": {
8+
"prop-types": "^15.6.1",
9+
"react": "^16.2.0",
10+
"react-dom": "^16.2.0",
11+
"react-particle-animation": "link:..",
12+
"react-scripts": "^1.1.1"
13+
},
14+
"scripts": {
15+
"start": "react-scripts start",
16+
"build": "react-scripts build",
17+
"test": "react-scripts test --env=jsdom",
18+
"eject": "react-scripts eject"
19+
}
20+
}

example/public/index.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6+
<meta name="theme-color" content="#000000">
7+
8+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
9+
10+
<title>react-particle-animation</title>
11+
</head>
12+
13+
<body>
14+
<noscript>
15+
You need to enable JavaScript to run this app.
16+
</noscript>
17+
18+
<div id="root"></div>
19+
</body>
20+
</html>

example/public/manifest.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"short_name": "react-particle-animation",
3+
"name": "react-particle-animation",
4+
"start_url": "./index.html",
5+
"display": "standalone",
6+
"theme_color": "#000000",
7+
"background_color": "#ffffff"
8+
}

example/src/App.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React, { Component } from 'react'
2+
3+
import ExampleComponent from 'react-particle-animation'
4+
5+
export default class App extends Component {
6+
render () {
7+
return (
8+
<div>
9+
<ExampleComponent text='Modern React component module' />
10+
</div>
11+
)
12+
}
13+
}

example/src/index.css

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
body {
2+
margin: 0;
3+
padding: 0;
4+
font-family: sans-serif;
5+
}

example/src/index.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from 'react'
2+
import ReactDOM from 'react-dom'
3+
4+
import './index.css'
5+
import App from './App'
6+
7+
ReactDOM.render(<App />, document.getElementById('root'))

0 commit comments

Comments
 (0)