Skip to content

Commit 15317ae

Browse files
Updated to support AMD, incremented version, updated copyright year, published as bower package
1 parent caee133 commit 15317ae

File tree

7 files changed

+1535
-1431
lines changed

7 files changed

+1535
-1431
lines changed

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Dependencies
2+
3+
node_modules
4+
bower_components
5+
client/lib/**
6+
7+
# Node.js / NPM
8+
9+
lib-cov
10+
*.seed
11+
*.log
12+
*.out
13+
*.pid
14+
npm-debug.log
15+
coverage
16+
17+
# Miscellaneous
18+
19+
*~
20+
*#
21+
.DS_STORE
22+
.DS_Store
23+
.node_history

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2012 Patrick Roberts
1+
Copyright (c) 2015 Patrick Roberts
22

33
Permission is hereby granted, free of charge, to any person
44
obtaining a copy of this software and associated documentation
@@ -18,4 +18,4 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
1818
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
1919
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2020
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21-
OTHER DEALINGS IN THE SOFTWARE.
21+
OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ be used within [Node.js](http://nodejs.org).
2727
<a name="download"></a>
2828
## Download
2929

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

3232
```
33-
npm install complex-js
33+
npm install --save complex-js
3434
```
3535

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

42-
In the browser, simply add the script:
42+
In the browser, use a script tag:
4343

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

48+
Complex.js can now be included as an AMD module as well, and is available via [`bower`](http://bower.io/search/?q=complex-js):
49+
50+
```
51+
bower install --save complex-js
52+
```
53+
4854
<a name="functions-vs-operators"></a>
4955
## Functions vs. Operators
5056

bower.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "complex-js",
3+
"description": "Complex math for the browser and Node.js",
4+
"version": "3.1.2",
5+
"authors": [
6+
"Patrick Roberts"
7+
],
8+
"license": "MIT",
9+
"ignore": [
10+
"**/.*",
11+
"node_modules",
12+
"bower_components",
13+
"test"
14+
],
15+
"dependencies": {},
16+
"main": "./lib/complex.min.js",
17+
"homepage": "https://github.com/patrickroberts/complex-js",
18+
"moduleType": [
19+
"amd",
20+
"globals",
21+
"node"
22+
],
23+
"keywords": [
24+
"complex",
25+
"math"
26+
]
27+
}

0 commit comments

Comments
 (0)