Comparing version 0.0.1 to 0.0.11
{ | ||
"name": "steel", | ||
"description": "QUnit-compatible test interface", | ||
"version": "0.0.1", | ||
"homepage": "http://github.johntantalo.com/steel/", | ||
"description": "a front-end framework", | ||
"version": "0.0.11", | ||
"homepage": "https://github.com/steeljs-org/Steeljs", | ||
"author": { | ||
"name": "Lonefy", | ||
"url": "" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/tantalor/steel.git" | ||
"url": "https://github.com/steeljs-org/Steeljs.git" | ||
}, | ||
"author": { | ||
"name": "John Tantalo", | ||
"email": "john.tantalo@gmail.com", | ||
"url": "http://johntantalo.com" | ||
"bugs": { | ||
"url": "https://github.com/steeljs-org/Steeljs/issues" | ||
}, | ||
"main": "./lib/steel", | ||
"directories": { | ||
"lib": "./lib" | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "" | ||
} | ||
], | ||
"main": "index.js", | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
}, | ||
"engines": { | ||
"node": "*", | ||
"jsc": "*", | ||
"narwhal": "*", | ||
"ringo": "*" | ||
} | ||
"bin": { | ||
"steel": "./bin/steel.js" | ||
}, | ||
"keywords": [ | ||
"steel command line", | ||
"task runner" | ||
], | ||
"dependencies": { | ||
"interpret": "~0.4.1", | ||
"liftoff": "~2.0.0", | ||
"minimist": "~1.1.0" | ||
}, | ||
"devDependencies": {}, | ||
"gitHead": "", | ||
"_id": "steel@0.0.11", | ||
"scripts": {}, | ||
"_shasum": "", | ||
"_from": "steel@*", | ||
"_npmVersion": "2.5.1", | ||
"_nodeVersion": "0.12.0", | ||
"_npmUser": { | ||
"name": "Lonefy", | ||
"email": "Lonefy@foxmail.com" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Lonefy", | ||
"email": "Lonefy@foxmail.com" | ||
} | ||
], | ||
"dist": { | ||
"shasum": "", | ||
"tarball": "" | ||
}, | ||
"directories": {}, | ||
"_resolved": "" | ||
} |
@@ -1,62 +0,1 @@ | ||
# steel | ||
**steel** is a small Javascript library that adds a [QUnit](http://docs.jquery.com/Qunit)-like testing interface for various JavaScript runtimes. | ||
## Motivation | ||
JavaScript is primarily a browser-based scripting language, but is commonly used for server-side applications. Your app might even run the exact same JavaScript code on the server and client. Wouldn't it be nice if you could easily run the exacty same unit tests in your server runtime as your traditional QUnit browser tests? | ||
## Supported JavaScript Runtimes | ||
* [Narwhal](http://narwhaljs.org/) | ||
* [Node](http://nodejs.org/) | ||
* [JavaScriptCore](http://webkit.org/projects/javascript/) | ||
* [RingoJS](http://ringojs.org/) | ||
## Example | ||
Add the following preamble and postamble to your QUnit tests. | ||
// preamble | ||
if (typeof require !== 'undefined') { | ||
var QUnit = require('../lib/steel'); // commonjs | ||
} else if (typeof(load) !== 'undefined') { | ||
var QUnit = load('lib/steel.js'); // jsc | ||
} | ||
with (QUnit) { | ||
// your tests here | ||
} | ||
// postamble | ||
if (QUnit.run) QUnit.run(typeof exports !== 'undefined' ? exports : undefined); | ||
## Demo | ||
You can run all tests. | ||
$ node demo/all.js | ||
+ Running | ||
+ Running test test addition | ||
+ Running test test multiplication | ||
Passes: 2, Fails: 0, Errors: 0 | ||
+ Running | ||
+ Running test test concatenation | ||
+ Running test test substring | ||
Passes: 2, Fails: 0, Errors: 0 | ||
Or just one test. | ||
$ node demo/math.js | ||
+ Running | ||
+ Running test test addition | ||
+ Running test test multiplication | ||
Passes: 2, Fails: 0, Errors: 0 | ||
Narwhal has a special syntax for running a single test. | ||
$ narwhal -m test demo/math.js | ||
+ Running /Users/john/Sites/steel/demo/math.js | ||
+ Running test addition | ||
+ Running test multiplication | ||
Passes: 2, Fails: 0, Errors: 0 | ||
# Steel |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
1
0
1
4394
3
7
58
2
2
+ Addedinterpret@~0.4.1
+ Addedliftoff@~2.0.0
+ Addedminimist@~1.1.0
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedextend@2.0.2(transitive)
+ Addedfindup-sync@0.2.1(transitive)
+ Addedflagged-respawn@0.3.2(transitive)
+ Addedglob@4.3.5(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedinterpret@0.4.3(transitive)
+ Addedliftoff@2.0.3(transitive)
+ Addedminimatch@2.0.10(transitive)
+ Addedminimist@1.1.3(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedresolve@1.1.7(transitive)
+ Addedwrappy@1.0.2(transitive)