Add example

This commit is contained in:
Rico Sta. Cruz
2015-11-13 10:40:59 +11:00
parent ad6292fffb
commit b20ee2261e
5 changed files with 69 additions and 2 deletions

View File

@@ -33,6 +33,7 @@
"coverify": "^1.0.6",
"jscs": "^1.6.2",
"jshint": "^2.5.6",
"serve": "1.4.0",
"tape": "^3.0.0",
"testling": "^1.6.1"
},
@@ -42,14 +43,19 @@
"test--html": "testling --html > tests/scripts/index.html",
"coverage": "browserify -t coverify tests/**/*.js | testling | coverify",
"standalone": "browserify index.js --standalone Pjax > pjax.js",
"example": "echo '\n==> Open http://localhost:3000/example in your browser.'; serve .",
"prepublish": "npm run standalone"
},
"testling": {
"files": "tests/**/*.js",
"browsers": [
"ie/10..latest",
"firefox/4.0", "firefox/latest", "firefox/nightly",
"chrome/10", "chrome/latest", "chrome/canary",
"firefox/4.0",
"firefox/latest",
"firefox/nightly",
"chrome/10",
"chrome/latest",
"chrome/canary",
"opera/12..latest",
"opera/next",
"safari/5.1..latest",