mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
removed test dependencies from grunt
This commit is contained in:
parent
a9496339d1
commit
4683ae6917
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,7 +1,6 @@
|
|||||||
jsdoc-toolkit
|
jsdoc-toolkit
|
||||||
jsdoc-master
|
jsdoc-master
|
||||||
dist
|
dist
|
||||||
tests/js/unitTests.js
|
|
||||||
analysis
|
analysis
|
||||||
node_modules
|
node_modules
|
||||||
phantomjs.exe
|
phantomjs.exe
|
||||||
|
25
Gruntfile.js
25
Gruntfile.js
@ -46,26 +46,6 @@ module.exports = function(grunt) {
|
|||||||
'src/filters/ConvolvePack.js'
|
'src/filters/ConvolvePack.js'
|
||||||
];
|
];
|
||||||
|
|
||||||
var unitTestFiles = [
|
|
||||||
'tests/js/unit/animationTests.js',
|
|
||||||
'tests/js/unit/tweenTests.js',
|
|
||||||
'tests/js/unit/globalTests.js',
|
|
||||||
'tests/js/unit/utilTests.js',
|
|
||||||
'tests/js/unit/nodeTests.js',
|
|
||||||
'tests/js/unit/stageTests.js',
|
|
||||||
'tests/js/unit/containerTests.js',
|
|
||||||
'tests/js/unit/layerTests.js',
|
|
||||||
'tests/js/unit/shapeTests.js',
|
|
||||||
'tests/js/unit/ddTests.js',
|
|
||||||
'tests/js/unit/canvasTests.js',
|
|
||||||
|
|
||||||
'tests/js/unit/plugins/pathTests.js',
|
|
||||||
'tests/js/unit/plugins/regularPolygonTests.js',
|
|
||||||
'tests/js/unit/plugins/starTests.js',
|
|
||||||
'tests/js/unit/plugins/textPathTests.js',
|
|
||||||
'tests/js/unit/plugins/labelTests.js'
|
|
||||||
];
|
|
||||||
|
|
||||||
// Project configuration.
|
// Project configuration.
|
||||||
var config = {
|
var config = {
|
||||||
pkg: grunt.file.readJSON('package.json'),
|
pkg: grunt.file.readJSON('package.json'),
|
||||||
@ -84,10 +64,6 @@ module.exports = function(grunt) {
|
|||||||
prod: {
|
prod: {
|
||||||
src: sourceFiles,
|
src: sourceFiles,
|
||||||
dest: 'dist/kinetic-v<%= pkg.version %>.js'
|
dest: 'dist/kinetic-v<%= pkg.version %>.js'
|
||||||
},
|
|
||||||
test: {
|
|
||||||
src: unitTestFiles,
|
|
||||||
dest: 'tests/js/unitTests.js'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
replace: {
|
replace: {
|
||||||
@ -210,6 +186,5 @@ module.exports = function(grunt) {
|
|||||||
grunt.registerTask('dev', ['clean', 'concat:dev', 'replace:dev']);
|
grunt.registerTask('dev', ['clean', 'concat:dev', 'replace:dev']);
|
||||||
grunt.registerTask('beta', ['clean', 'concat:beta', 'replace:beta']);
|
grunt.registerTask('beta', ['clean', 'concat:beta', 'replace:beta']);
|
||||||
grunt.registerTask('full', ['clean', 'concat:prod', 'uglify', 'replace:prod1', 'replace:prod2', 'replace:prod3']);
|
grunt.registerTask('full', ['clean', 'concat:prod', 'uglify', 'replace:prod1', 'replace:prod2', 'replace:prod3']);
|
||||||
grunt.registerTask('test', ['concat:test']);
|
|
||||||
grunt.registerTask('hint', ['clean', 'concat:dev', 'replace:dev', 'jshint']);
|
grunt.registerTask('hint', ['clean', 'concat:dev', 'replace:dev', 'jshint']);
|
||||||
};
|
};
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
<!DOCTYPE HTML>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<link rel="stylesheet" type="text/css"href="../base.css">
|
|
||||||
<script src="../../dist/kinetic-dev.js"></script>
|
|
||||||
|
|
||||||
<!-- assets -->
|
|
||||||
<script src="../assets/worldMap.js"></script>
|
|
||||||
<script src="../assets/tiger.js"></script>
|
|
||||||
|
|
||||||
<script src="../js/Test.js"></script>
|
|
||||||
<script src="../js/unitTests.js"></script>
|
|
||||||
<script>
|
|
||||||
window.onload = function() {
|
|
||||||
var test = new Test();
|
|
||||||
test.run();
|
|
||||||
|
|
||||||
document.getElementsByTagName('body')[0].addEventListener('mousemove', function(evt) {
|
|
||||||
//console.log(evt.clientX + ',' + evt.clientY);
|
|
||||||
}, false);
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body></body>
|
|
||||||
</html>
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user