From 7fdba3dadad7ecca36712cb4f81192ec72f7d613 Mon Sep 17 00:00:00 2001 From: Monte Hayward Date: Tue, 22 Mar 2016 22:05:14 -0500 Subject: [PATCH] #21 add test coverage to json-forms --- .gitignore | 1 + .travis.yml | 19 +++++++++++-------- package.json | 34 +++++++++++++++++++++++++++++++--- todo.md | 11 +++++++++++ 4 files changed, 54 insertions(+), 11 deletions(-) create mode 100644 todo.md diff --git a/.gitignore b/.gitignore index 0edc979..f1110e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules +dist coverage bower_components .publish diff --git a/.travis.yml b/.travis.yml index 95449fb..013cad7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,13 @@ language: node_js node_js: - - stable -before_install: - - npm install -g bower - - npm install rimraf -before_script: - - rm -rf node_modules/json-forms -script: gulp -sudo: false + - 5.7.0 +cache: + directories: + - node_modules +after_script: + - npm run codecov +notifications: + slack: + on_success: change + on_failure: change + email: false diff --git a/package.json b/package.json index 8f00282..e82cdcd 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,11 @@ { "name": "brutusin-json-forms", - "version": "0.0.0", + "version": "0.0.1", "description": "Brutusin json-forms is a JSON Schema to HTML form generator, supporting dynamic subschemas (on the fly resolution). Extensible and customizable library with zero dependencies. Bootstrap add-ons provided", - "repository": "idelvall/brutusin-json-forms", + "repository": { + "type": "git", + "url": "git+https://github.com/idelvall/brutusin-json-forms.git" + }, "main": "dist/brutusin-json-forms.min.js", "filename": "dist/brutusin-json-forms.min.js", "homepage": "http://brutusin.org/json-forms/", @@ -16,6 +19,8 @@ "schema" ], "devDependencies": { + "chai": "^3.5.0", + "codecov.io": "^0.1.6", "gulp": "^3.5.6", "gulp-angular-templatecache": "^1.2.1", "gulp-concat": "^2.2.0", @@ -27,7 +32,24 @@ "gulp-rename": "^1.2.0", "gulp-uglify": "^0.2.1", "gulp-umd": "^0.1.3", - "rimraf": "^2.5.1" + "istanbul": "^0.4.2", + "karma": "^0.13.22", + "rimraf": "^2.5.1", + "karma-browserify": "^5.0.2", + "karma-chrome-launcher": "^0.2.2", + "karma-coverage": "^0.5.3", + "karma-firefox-launcher": "^0.1.7", + "karma-mocha": "^0.2.1", + "karma-mocha-reporter": "^2.0.0", + "karma-phantomjs-launcher": "^1.0.0", + "karma-safari-launcher": "^0.1.1", + "karma-sinon-chai": "^1.1.0", + "lolex": "^1.4.0", + "mocha": "^2.4.5", + "phantomjs-prebuilt": "^2.1.3", + "sinon": "^1.17.3", + "sinon-chai": "^2.8.0", + "watchify": "^3.7.0" }, "licenses": [ { @@ -47,5 +69,11 @@ "brutusin-json-forms-jsonsrv.js", "brutusin-json-forms-jsonsrv.min.js" ] + }, + "bugs": { + "url": "https://github.com/idelvall/brutusin-json-forms/issues" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" } } diff --git a/todo.md b/todo.md new file mode 100644 index 0000000..d209ea9 --- /dev/null +++ b/todo.md @@ -0,0 +1,11 @@ +[ ] Continuous integration + + +[ ] Update deps + npm WARN deprecated gulp-minify-css@1.2.4: Please use gulp-clean-css + npm WARN deprecated gulp-minify-html@0.1.8: Please use gulp-htmlmin + npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible. + npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0. + npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible. + npm WARN deprecated graceful-fs@2.0.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible. +