Add a standalone build to ensure it "should" work
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules/
|
node_modules/
|
||||||
tests/scripts/index.html
|
tests/scripts/index.html
|
||||||
|
pjax.js
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user