Skip to content

Commit a12fbcb

Browse files
committed
publish to npm
1 parent d6cbd07 commit a12fbcb

3 files changed

Lines changed: 18 additions & 6 deletions

File tree

.npmignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
npm-debug.log
3+
doc
4+
matter-doc-theme
5+
build/matter-dev.js
6+
build/matter-dev.min.js
7+
demo/js/lib/matter-dev.js

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,14 @@ Download [matter-0.8.0.js](https://github.com/liabru/matter-js/releases/download
8787

8888
For the latest features try the [edge version (master)](https://raw.github.com/liabru/matter-js/master/build/matter.js), but it may not be fully stable.
8989

90-
#### Or install using [Bower](http://bower.io/)
90+
#### Install using [Bower](http://bower.io/)
9191

9292
bower install matter-js
9393

94+
#### Install using [NPM](https://www.npmjs.org/)
95+
96+
npm install matter-js
97+
9498
### Usage
9599

96100
See [Demo.js](https://github.com/liabru/matter-js/blob/master/demo/js/Demo.js) and [DemoMobile.js](https://github.com/liabru/matter-js/blob/master/demo/js/DemoMobile.js) for many usage examples.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"name": "Matter",
2+
"name": "matter-js",
33
"version": "0.8.0",
44
"license": "MIT",
55
"homepage": "http://brm.io/matter-js/",
66
"author": "Liam Brummitt <liam@brm.io> (http://brm.io/)",
77
"description": "a 2D rigid body physics engine for the web",
88
"main": "build/matter-0.8.0.min.js",
9-
"repository":{
10-
"type" : "git",
11-
"url" : "https://github.com/liabru/matter-js.git"
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/liabru/matter-js.git"
1212
},
1313
"keywords": [
1414
"javascript",
@@ -32,5 +32,6 @@
3232
"scripts": {
3333
"dev": "npm install && grunt dev",
3434
"test": "grunt test"
35-
}
35+
},
36+
"dependencies": {}
3637
}

0 commit comments

Comments
 (0)