Skip to content

Commit 22558ca

Browse files
"Initial commit"
0 parents  commit 22558ca

12 files changed

Lines changed: 251 additions & 0 deletions

File tree

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
lib-cov
2+
*.seed
3+
*.log
4+
*.csv
5+
*.dat
6+
*.out
7+
*.pid
8+
*.gz
9+
10+
pids
11+
logs
12+
results
13+
build
14+
components
15+
16+
node_modules
17+
npm-debug.log
18+
19+
coverage.html

.npmignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
docs/
2+
test/
3+
build/
4+
components/
5+
support/
6+
coverage.html
7+
component.json
8+
lib-cov
9+
.travis.yml
10+
Makefile
11+
*.swp

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
node_js:
3+
- 0.8
4+
branches:
5+
only:
6+
- master

History.md

Whitespace-only changes.

Makefile

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
2+
TESTS = test/*.js
3+
REPORTER = spec
4+
5+
#
6+
# Tests
7+
#
8+
9+
test: test-node test-browser
10+
11+
test-node:
12+
@printf "\n ==> [Node.js]"
13+
@NODE_ENV=test ./node_modules/.bin/mocha \
14+
--require ./test/bootstrap \
15+
--reporter $(REPORTER) \
16+
$(TESTS)
17+
18+
test-browser: build
19+
@printf "\n ==> [Phantom.Js]"
20+
@./node_modules/.bin/mocha-phantomjs \
21+
--R ${REPORTER} \
22+
./test/browser/index.html
23+
24+
test-cov: lib-cov
25+
@eql_COV=1 NODE_ENV=test ./node_modules/.bin/mocha \
26+
--require ./test/bootstrap \
27+
--reporter html-cov \
28+
$(TESTS) \
29+
> coverage.html
30+
31+
#
32+
# Components
33+
#
34+
35+
build: components lib/*
36+
@./node_modules/.bin/component-build --dev
37+
38+
components: component.json
39+
@./node_modules/.bin/component-install --dev
40+
41+
#
42+
# Coverage
43+
#
44+
45+
lib-cov:
46+
@rm -rf lib-cov
47+
@jscoverage lib lib-cov
48+
49+
#
50+
# Clean up
51+
#
52+
53+
clean: clean-components clean-cov
54+
55+
clean-components:
56+
@rm -rf build
57+
@rm -rf components
58+
59+
clean-cov:
60+
@rm -rf lib-cov
61+
@rm -f coverage.html
62+
63+
64+
.PHONY: clean clean-components clean-cov test test-cov test-node test-browser lib-cov

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# deep-eql
2+
3+
> Improved deep equality testing for Node.js and the browser.
4+
5+
## Installation
6+
7+
### Node.js
8+
9+
`deep-eql` is available on [npm](http://npmjs.org).
10+
11+
$ npm install deep-eql
12+
13+
### Component
14+
15+
`deep-eql` is available as a [component](https://github.com/component/component).
16+
17+
$ component install chaijs/deep-eql
18+
19+
## License
20+
21+
(The MIT License)
22+
23+
Copyright (c) 2012 Jake Luer <jake@alogicalparadox.com>
24+
25+
Permission is hereby granted, free of charge, to any person obtaining a copy
26+
of this software and associated documentation files (the "Software"), to deal
27+
in the Software without restriction, including without limitation the rights
28+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
29+
copies of the Software, and to permit persons to whom the Software is
30+
furnished to do so, subject to the following conditions:
31+
32+
The above copyright notice and this permission notice shall be included in
33+
all copies or substantial portions of the Software.
34+
35+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
36+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
37+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
38+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
39+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
40+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
41+
THE SOFTWARE.

component.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "deep-eql"
3+
, "repo": "chaijs/deep-eql"
4+
, "version": "0.0.0"
5+
, "description": "Improved deep equality testing for Node.js and the browser."
6+
, "license": "MIT"
7+
, "keywords": [
8+
]
9+
, "main": "lib/eql.js"
10+
, "scripts": [
11+
"lib/eql.js"
12+
]
13+
, "dependencies": {}
14+
, "development": {}
15+
}

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = process.env.eql_COV
2+
? require('./lib-cov/eql')
3+
: require('./lib/eql');

lib/eql.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
exports.version = '0.0.0';

package.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "deep-eql"
3+
, "version": "0.0.0"
4+
, "description": "Improved deep equality testing for Node.js and the browser."
5+
, "author": "Jake Luer <jake@alogicalparadox.com>"
6+
, "license": "MIT"
7+
, "keywords": [
8+
]
9+
, "repository": {
10+
"type": "git"
11+
, "url": "git@github.com:chaijs/deep-eql.git"
12+
}
13+
, "engines": {
14+
"node": "*"
15+
}
16+
, "main": "./index"
17+
, "scripts": {
18+
"test": "make test"
19+
}
20+
, "dependencies": {
21+
}
22+
, "devDependencies": {
23+
"chai": "*"
24+
, "component": "*"
25+
, "mocha": "*"
26+
, "mocha-phantomjs": "*"
27+
}
28+
}

0 commit comments

Comments
 (0)