summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorkaeff <hi@kaeff.net>2015-09-16 02:12:50 +0200
committerkaeff <hi@kaeff.net>2015-09-16 02:35:55 +0200
commitdacd2f218a3774bd200f17c7e9274088043a25ef (patch)
tree14ee131f49bfa103f3f46547decb69d38745bd42 /package.json
parent8f33d32d40b1e21ae7fb9a92c78a275422af4217 (diff)
Run tests via cli using karma & PhantomJS for Travis
Instead of jasmine's HTML runner, use karma to run specs. karma & all other dependencies are installed via npm and executed via node.js. This allows TravisCI to execute the test, and as a side effect, bumps the versions on the testing toolchain. - Install node.js - Run `npm install` once to download dependencies. - Run `npm test` to run all tests Things to bear in mind: - This commit adds general project information in `package.js` - `karma.conf.js` specifies the order in which src, spec and lib files are loaded - Switch to jasmine spies instead of sinon
Diffstat (limited to 'package.json')
-rw-r--r--package.json29
1 files changed, 29 insertions, 0 deletions
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..9c3ead0
--- /dev/null
+++ b/package.json
@@ -0,0 +1,29 @@
+{
+ "name": "srp_js",
+ "version": "0.0.1",
+ "description": "A secure remote password implementation for JavaScript",
+ "homepage": "https://github.com/leapcode/srp_js#readme",
+ "main": "index.js",
+ "devDependencies": {
+ "jasmine-core": "^2.3.4",
+ "jasmine-jquery": "^2.1.0",
+ "jquery": "^2.1.4",
+ "karma": "^0.13.9",
+ "karma-jasmine": "^0.3.6",
+ "karma-phantomjs-launcher": "^0.2.1",
+ "phantomjs": "^1.9.18",
+ "sinon": "^1.16.1"
+ },
+ "scripts": {
+ "test": "node_modules/karma/bin/karma start --single-run"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/leapcode/srp_js.git"
+ },
+ "author": "LEAP contributors",
+ "license": "BSD-3-Clause",
+ "bugs": {
+ "url": "https://github.com/leapcode/srp_js/issues"
+ }
+}