From 09b8b3ec51d94756c7a52024c8948f9784b49ddb Mon Sep 17 00:00:00 2001 From: ido Date: Sun, 29 Nov 2015 17:32:57 +0200 Subject: [PATCH] fix tape --- Gruntfile.js | 20 ++++++++------------ package.json | 9 +++++---- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 7020eb2..15e7435 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -39,16 +39,12 @@ module.exports = function (grunt) { } } }, - node_tap: { - default_options: { - options: { - outputType: 'tap', - outputTo: 'console' - }, - files: { - tests: ['./test/src/*.js'] - } - } + tape: { + options: { + pretty: true, + output: 'console' + }, + files: ['test/src/*.js'] }, watch: { rt: { @@ -98,16 +94,16 @@ module.exports = function (grunt) { return eval(require('fs').readFileSync(file).toString()); // eslint-disable-line no-eval } + grunt.loadNpmTasks('grunt-tape'); grunt.loadNpmTasks('grunt-browserify'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-requirejs'); grunt.loadNpmTasks('grunt-eslint'); - grunt.loadNpmTasks('grunt-node-tap'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.registerTask('default', ['eslint:all']); grunt.registerTask('lint', ['eslint:all']); - grunt.registerTask('test', ['node_tap']); + grunt.registerTask('test', ['tape']); grunt.registerTask('rt', function () { var reactTemplates = require('./src/cli'); diff --git a/package.json b/package.json index e5c05fa..1062de8 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "patch": "npm version patch -m\"update version to %s\" && git push && git push --tags", "minor": "npm version minor -m\"update version to %s\" && git push && git push --tags", "major": "npm version major -m\"update version to %s\" && git push && git push --tags", - "buildwp": "webpack --config webpack-production.config.js --progress --profile --colors" + "buildwp": "webpack --config webpack-production.config.js --progress --profile --colors", + "babel": "rm -rf dist; babel src/ --out-dir dist/" }, "repository": { "type": "git", @@ -41,8 +42,8 @@ "brfs": "^1.4.1", "coveralls": "^2.11.4", "eslint": "^1.10.1", - "eslint-config-wix-editor": "0.0.1", - "eslint-plugin-lodash3": "^0.2.0", + "eslint-config-wix-editor": "^0.1.1", + "eslint-plugin-lodash3": "^0.2.1", "eslint-plugin-react": "^3.10.0", "eslint-plugin-wix-editor": "^1.0.1", "grunt": "^0.4.5", @@ -51,7 +52,7 @@ "grunt-contrib-uglify": "^0.11.0", "grunt-contrib-watch": "^0.6.1", "grunt-eslint": "^17.3.1", - "grunt-node-tap": "^0.1.61", + "grunt-tape": "0.0.2", "istanbul": "^0.4.0", "react": "^0.14.2", "react-dom": "^0.14.2",