From 6eafcf8dc61742adfb0bc7a0f401a849366f1422 Mon Sep 17 00:00:00 2001 From: Maxime Thirouin Date: Thu, 19 Feb 2015 07:51:42 +0100 Subject: [PATCH] Add a standalone build to ensure it "should" work --- .gitignore | 1 + package.json | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2c2e476..ecd1403 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .DS_Store node_modules/ tests/scripts/index.html +pjax.js diff --git a/package.json b/package.json index 7ae8893..2cecc0a 100644 --- a/package.json +++ b/package.json @@ -38,9 +38,10 @@ }, "scripts": { "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", - "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": { "files": "tests/**/*.js",