Skip to content

Commit

Permalink
Updated to support AMD, incremented version, updated copyright year, …
Browse files Browse the repository at this point in the history
…published as bower package
  • Loading branch information
patrickroberts committed Oct 16, 2015
1 parent caee133 commit 15317ae
Show file tree
Hide file tree
Showing 7 changed files with 1,535 additions and 1,431 deletions.
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Dependencies

node_modules
bower_components
client/lib/**

# Node.js / NPM

lib-cov
*.seed
*.log
*.out
*.pid
npm-debug.log
coverage

# Miscellaneous

*~
*#
.DS_STORE
.DS_Store
.node_history
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2012 Patrick Roberts
Copyright (c) 2015 Patrick Roberts

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
Expand All @@ -18,4 +18,4 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
OTHER DEALINGS IN THE SOFTWARE.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ be used within [Node.js](http://nodejs.org).
<a name="download"></a>
## Download

To install via `npm`, run:
To install via [`npm`](https://www.npmjs.com/package/complex-js), run:

```
npm install complex-js
npm install --save complex-js
```

To include this module in the Node.js environment, add the line:
Expand All @@ -39,12 +39,18 @@ To include this module in the Node.js environment, add the line:
var Complex = require('complex-js');
```

In the browser, simply add the script:
In the browser, use a script tag:

```html
<script type="text/javascript" src="complex.min.js"></script>
```

Complex.js can now be included as an AMD module as well, and is available via [`bower`](http://bower.io/search/?q=complex-js):

```
bower install --save complex-js
```

<a name="functions-vs-operators"></a>
## Functions vs. Operators

Expand Down
27 changes: 27 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "complex-js",
"description": "Complex math for the browser and Node.js",
"version": "3.1.2",
"authors": [
"Patrick Roberts"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test"
],
"dependencies": {},
"main": "./lib/complex.min.js",
"homepage": "https://github.com/patrickroberts/complex-js",
"moduleType": [
"amd",
"globals",
"node"
],
"keywords": [
"complex",
"math"
]
}
Loading

0 comments on commit 15317ae

Please sign in to comment.