mirror of
https://github.com/bobwen-dev/react-templates
synced 2025-04-12 00:56:39 +02:00
fix tape
This commit is contained in:
parent
3fff4db2ae
commit
09b8b3ec51
20
Gruntfile.js
20
Gruntfile.js
@ -39,16 +39,12 @@ module.exports = function (grunt) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
node_tap: {
|
tape: {
|
||||||
default_options: {
|
options: {
|
||||||
options: {
|
pretty: true,
|
||||||
outputType: 'tap',
|
output: 'console'
|
||||||
outputTo: 'console'
|
},
|
||||||
},
|
files: ['test/src/*.js']
|
||||||
files: {
|
|
||||||
tests: ['./test/src/*.js']
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
rt: {
|
rt: {
|
||||||
@ -98,16 +94,16 @@ module.exports = function (grunt) {
|
|||||||
return eval(require('fs').readFileSync(file).toString()); // eslint-disable-line no-eval
|
return eval(require('fs').readFileSync(file).toString()); // eslint-disable-line no-eval
|
||||||
}
|
}
|
||||||
|
|
||||||
|
grunt.loadNpmTasks('grunt-tape');
|
||||||
grunt.loadNpmTasks('grunt-browserify');
|
grunt.loadNpmTasks('grunt-browserify');
|
||||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||||
grunt.loadNpmTasks('grunt-contrib-requirejs');
|
grunt.loadNpmTasks('grunt-contrib-requirejs');
|
||||||
grunt.loadNpmTasks('grunt-eslint');
|
grunt.loadNpmTasks('grunt-eslint');
|
||||||
grunt.loadNpmTasks('grunt-node-tap');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||||
|
|
||||||
grunt.registerTask('default', ['eslint:all']);
|
grunt.registerTask('default', ['eslint:all']);
|
||||||
grunt.registerTask('lint', ['eslint:all']);
|
grunt.registerTask('lint', ['eslint:all']);
|
||||||
grunt.registerTask('test', ['node_tap']);
|
grunt.registerTask('test', ['tape']);
|
||||||
|
|
||||||
grunt.registerTask('rt', function () {
|
grunt.registerTask('rt', function () {
|
||||||
var reactTemplates = require('./src/cli');
|
var reactTemplates = require('./src/cli');
|
||||||
|
@ -14,7 +14,8 @@
|
|||||||
"patch": "npm version patch -m\"update version to %s\" && git push && git push --tags",
|
"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",
|
"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",
|
"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": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -41,8 +42,8 @@
|
|||||||
"brfs": "^1.4.1",
|
"brfs": "^1.4.1",
|
||||||
"coveralls": "^2.11.4",
|
"coveralls": "^2.11.4",
|
||||||
"eslint": "^1.10.1",
|
"eslint": "^1.10.1",
|
||||||
"eslint-config-wix-editor": "0.0.1",
|
"eslint-config-wix-editor": "^0.1.1",
|
||||||
"eslint-plugin-lodash3": "^0.2.0",
|
"eslint-plugin-lodash3": "^0.2.1",
|
||||||
"eslint-plugin-react": "^3.10.0",
|
"eslint-plugin-react": "^3.10.0",
|
||||||
"eslint-plugin-wix-editor": "^1.0.1",
|
"eslint-plugin-wix-editor": "^1.0.1",
|
||||||
"grunt": "^0.4.5",
|
"grunt": "^0.4.5",
|
||||||
@ -51,7 +52,7 @@
|
|||||||
"grunt-contrib-uglify": "^0.11.0",
|
"grunt-contrib-uglify": "^0.11.0",
|
||||||
"grunt-contrib-watch": "^0.6.1",
|
"grunt-contrib-watch": "^0.6.1",
|
||||||
"grunt-eslint": "^17.3.1",
|
"grunt-eslint": "^17.3.1",
|
||||||
"grunt-node-tap": "^0.1.61",
|
"grunt-tape": "0.0.2",
|
||||||
"istanbul": "^0.4.0",
|
"istanbul": "^0.4.0",
|
||||||
"react": "^0.14.2",
|
"react": "^0.14.2",
|
||||||
"react-dom": "^0.14.2",
|
"react-dom": "^0.14.2",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user