Add a standalone build to ensure it "should" work

This commit is contained in:
Maxime Thirouin
2015-02-19 07:51:42 +01:00
parent b244a8cac4
commit 6eafcf8dc6
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
.DS_Store .DS_Store
node_modules/ node_modules/
tests/scripts/index.html tests/scripts/index.html
pjax.js

View File

@@ -38,9 +38,10 @@
}, },
"scripts": { "scripts": {
"lint": "jscs **/*.js && jshint . --exclude-path .gitignore", "lint": "jscs **/*.js && jshint . --exclude-path .gitignore",
"test": "npm run lint && testling", "test": "npm run lint && npm run standalone && testling",
"test--html": "testling --html > tests/scripts/index.html", "test--html": "testling --html > tests/scripts/index.html",
"coverage": "browserify -t coverify tests/**/*.js | testling | coverify" "coverage": "browserify -t coverify tests/**/*.js | testling | coverify",
"standalone": "browserify index.js --standalone Pjax > pjax.js"
}, },
"testling": { "testling": {
"files": "tests/**/*.js", "files": "tests/**/*.js",