Skip to content
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.

Commit

Permalink
Unit tests can now run in the browser (spec/index.html)
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 19, 2014
1 parent d4f5f57 commit a77f521
Show file tree
Hide file tree
Showing 3 changed files with 3,293 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"author": "Titus Wormer <tituswormer@gmail.com>",
"license": "MIT",
"devDependencies": {
"browserify": "^4.1.11",
"complexity-report": "~1.0.3",
"eslint": "^0.6.2",
"istanbul": "~0.2.11",
"jscs": "^1.5.3",
"eslint": "^0.6.2",
"mocha": "~1.20.1",
"retext": "~0.0.12"
},
Expand All @@ -27,9 +28,11 @@
"lint-api": "node_modules/.bin/eslint index.js --env node --env browser --rule 'quotes: [2, single]'",
"lint-test": "node_modules/.bin/eslint spec/retext-visit.spec.js --env node --env mocha --rule 'quotes: [2, single]'",
"lint-style": "node_modules/.bin/jscs index.js spec/retext-visit.spec.js --reporter=inline",
"prepublish": "npm run-script build-browser",
"build-browser": "node_modules/.bin/browserify spec/retext-visit.spec.js -o spec/browser.spec.js",
"coverage": "node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -- spec/retext-visit.spec.js",
"complexity": "node_modules/.bin/cr -l --maxcyc 20 --format minimal --silent index.js",
"make": "npm run-script lint && npm run-script complexity && npm run-script coverage"
"make": "npm run-script build-browser && npm run-script lint && npm run-script complexity && npm run-script coverage"
},
"testling": {
"files": "spec/retext-visit.spec.js",
Expand Down
Loading

0 comments on commit a77f521

Please sign in to comment.