Skip to content

Commit

Permalink
Merge pull request #19 from saqsun/master
Browse files Browse the repository at this point in the history
Now plugin can be added via script tag
  • Loading branch information
avagyanah authored Oct 17, 2017
2 parents 56f7112 + 81203f7 commit de84054
Show file tree
Hide file tree
Showing 12 changed files with 236 additions and 64 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ node_modules
.idea
.vscode
.DS_Store
lib
/lib/
/dist/
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@

Phaser Particle Editor Plugin
================
[![Build Status](https://travis-ci.org/koreezgames/phaser-particle-editor-plugin.svg?branch=master)](https://travis-ci.org/koreezgames/phaser-particle-editor-plugin) [![Project status](https://img.shields.io/badge/status-active-brightgreen.svg)](#status)
[![Build Status](https://travis-ci.org/koreezgames/phaser-particle-editor-plugin.svg?branch=master)](https://travis-ci.org/koreezgames/phaser-particle-editor-plugin) [![David](https://david-dm.org/koreezgames/phaser-particle-editor-plugin.svg)]() [![Project status](https://img.shields.io/badge/status-active-brightgreen.svg)](#status)

This plugin creates particles based on JSON data generated by **[Phaser Particle Editor](https://phaser-particle-editor.firebaseapp.com/)**
This plugin creates particle effects based on JSON data generated by **[Phaser Particle Editor](https://phaser-particle-editor.firebaseapp.com/)**

Getting Started
---------------
### Install the plugin
### Installation
#### ***Using script tag:***
[![](https://data.jsdelivr.com/v1/package/npm/@koreez/phaser-particle-editor-plugin/badge?style=rounded)](https://www.jsdelivr.com/package/npm/@koreez/phaser-particle-editor-plugin/dist/plugin.min.js)
```html
<script src="//cdn.jsdelivr.net/npm/@koreez/phaser-particle-editor-plugin/dist/plugin.min.js"></script>
```
#### ***Using npm:***
[![npm](https://img.shields.io/npm/dt/@koreez/phaser-particle-editor-plugin.svg)](https://www.npmjs.com/package/@koreez/phaser-particle-editor-plugin)
```shell
npm install @koreez/phaser-particle-editor-plugin --save
$ npm i -g npm
$ npm i --save @koreez/phaser-particle-editor-plugin
```
Usage
-----
### Import the plugin
##### ***in ES5***
##### ***CommonJS***
```javascript
var ParticleEditorPlugin = require('@koreez/phaser-particle-editor-plugin')
```
##### ***in ES6***
##### ***ES2015***
```javascript
import { ParticleEditorPlugin } from '@koreez/phaser-particle-editor-plugin'
```
Expand Down
178 changes: 160 additions & 18 deletions package-lock.json

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

19 changes: 13 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name": "@koreez/phaser-particle-editor-plugin",
"version": "1.0.0-alpha.11",
"version": "1.0.0-alpha.12",
"description": "Phaser Particle Editor Plugin",
"main": "lib/library.js",
"main": "dist/library.js",
"scripts": {
"build": "webpack --config webpack.production.config.babel.js",
"build": "concurrently 'npm run dev' 'npm run build-var' 'npm run build-umd'",
"build-umd": "webpack --config webpack.production-target-umd.config.babel.js",
"build-var": "webpack --config webpack.production-target-var.config.babel.js",
"dev": "webpack --config webpack.development.config.babel.js"
},
"repository": {
Expand All @@ -19,16 +21,21 @@
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.0",
"concurrently": "^3.5.0",
"eslint": "^4.9.0",
"eslint-config-standard": "^10.2.1",
"eslint-loader": "^1.9.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-node": "^5.2.0",
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-standard": "^3.0.1",
"webpack": "^3.7.1",
"webpack-config": "^7.4.0"
"expose-loader": "^0.7.3",
"webpack": "^3.8.0",
"webpack-config": "^7.5.0"
},
"author": "Koreez LLC <hello@koreez.com>",
"license": "MIT"
"license": "MIT",
"dependencies": {
"phaser-ce": "^2.9.1"
}
}
Loading

0 comments on commit de84054

Please # to comment.