build and remove wrong dep

This commit is contained in:
Anton Lavrenov 2018-06-20 18:00:18 +07:00
parent 03b655a9c9
commit 478a6500a4
4 changed files with 15 additions and 29 deletions

View File

@ -114,11 +114,6 @@ gulp.task('build', function() {
.pipe(gulp.dest('./')); .pipe(gulp.dest('./'));
}); });
// tun tests
gulp.task('test', ['dev-build'], function() {
return gulp.src('test/runner.html').pipe(mochaPhantomJS());
});
// local server for better development // local server for better development
gulp.task('server', function() { gulp.task('server', function() {
connect.server(); connect.server();
@ -126,7 +121,8 @@ gulp.task('server', function() {
// lint files // lint files
gulp.task('lint', function() { gulp.task('lint', function() {
return (gulp return (
gulp
.src('./src/**/*.js') .src('./src/**/*.js')
.pipe( .pipe(
eslint({ eslint({
@ -138,7 +134,8 @@ gulp.task('lint', function() {
.pipe(eslint.format()) .pipe(eslint.format())
// To have the process exit with an error code (1) on // To have the process exit with an error code (1) on
// lint error, return the stream and pipe to failOnError last. // lint error, return the stream and pipe to failOnError last.
.pipe(eslint.failOnError()) ); .pipe(eslint.failOnError())
);
}); });
// check code for duplication // check code for duplication

View File

@ -2,7 +2,7 @@
* Konva JavaScript Framework v2.1.5 * Konva JavaScript Framework v2.1.5
* http://konvajs.github.io/ * http://konvajs.github.io/
* Licensed under the MIT * Licensed under the MIT
* Date: Fri Jun 15 2018 * Date: Wed Jun 20 2018
* *
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS) * Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva) * Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)

2
konva.min.js vendored
View File

@ -2,7 +2,7 @@
* Konva JavaScript Framework v2.1.5 * Konva JavaScript Framework v2.1.5
* http://konvajs.github.io/ * http://konvajs.github.io/
* Licensed under the MIT * Licensed under the MIT
* Date: Fri Jun 15 2018 * Date: Wed Jun 20 2018
* *
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS) * Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva) * Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)

View File

@ -2,13 +2,7 @@
"name": "konva", "name": "konva",
"version": "2.1.5", "version": "2.1.5",
"author": "Anton Lavrenov", "author": "Anton Lavrenov",
"files": [ "files": ["README.md", "konva.js", "konva.min.js", "src", "konva.d.ts"],
"README.md",
"konva.js",
"konva.min.js",
"src",
"konva.d.ts"
],
"main": "konva.js", "main": "konva.js",
"typings": "./konva.d.ts", "typings": "./konva.d.ts",
"scripts": { "scripts": {
@ -16,8 +10,10 @@
"lint": "gulp lint", "lint": "gulp lint",
"build": "gulp build", "build": "gulp build",
"full-build": "gulp lint && npm t && gulp build", "full-build": "gulp lint && npm t && gulp build",
"test": "mocha-headless-chrome -f ./test/runner.html -a disable-web-security", "test":
"prettier": "prettier --write \"src/**/*.js\" \"test/**/*.js\" --single-quote" "mocha-headless-chrome -f ./test/runner.html -a disable-web-security",
"prettier":
"prettier --write \"src/**/*.js\" \"test/**/*.js\" --single-quote"
}, },
"devDependencies": { "devDependencies": {
"chai": "4.1.2", "chai": "4.1.2",
@ -27,20 +23,15 @@
"gulp-eslint": "^4.0.0", "gulp-eslint": "^4.0.0",
"gulp-jscpd": "0.0.8", "gulp-jscpd": "0.0.8",
"gulp-jsdoc3": "^1.0.1", "gulp-jsdoc3": "^1.0.1",
"gulp-mocha-phantomjs": "^0.12.2",
"gulp-rename": "^1.2.2", "gulp-rename": "^1.2.2",
"gulp-replace": "^0.6.1", "gulp-replace": "^0.6.1",
"gulp-uglify": "^3.0.0", "gulp-uglify": "^3.0.0",
"gulp-util": "^3.0.8", "gulp-util": "^3.0.8",
"mocha": "4.0.1", "mocha": "4.0.1",
"prettier": "^1.9.2" "prettier": "^1.9.2",
"mocha-headless-chrome": "^2.0.0"
}, },
"keywords": [ "keywords": ["canvas", "animations", "graphic", "html5"],
"canvas",
"animations",
"graphic",
"html5"
],
"prettier": { "prettier": {
"singleQuote": true "singleQuote": true
}, },
@ -58,7 +49,5 @@
"url": "git://github.com/konvajs/konva.git" "url": "git://github.com/konvajs/konva.git"
}, },
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {}
"mocha-headless-chrome": "^2.0.0"
}
} }