changed to pre-commit

This commit is contained in:
Kevin Jahns 2015-06-16 19:51:14 +02:00
parent bf493216a2
commit 5a9f59913e
7 changed files with 18 additions and 4 deletions

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# Yjs 0.6
This is a complete rewrite of Yjs O.o

View File

@ -110,7 +110,7 @@ gulp.task("develop", ["test", "build"], function(){
.pipe(watch(files.build_test))
.pipe(jasmineBrowser.specRunner())
.pipe(jasmineBrowser.server({port: options.testport}));
gulp.watch(files.src, ["build_test", "build"]);
gulp.watch(files.test, ["build_test", "build"]);
return gulp.watch(files.build_test, ["test"]);
});

View File

@ -46,6 +46,6 @@
"gulp-uglify": "^1.2.0",
"gulp-watch": "^4.2.4",
"minimist": "^1.1.1",
"precommit-hook": "^2.0.1"
"pre-commit": "^1.0.10"
}
}

11
src/Operations.js Normal file
View File

@ -0,0 +1,11 @@
/* @flow */
class Operation { //eslint-disable-line no-unused-vars
i : number;
constructor (op) {
this.i = op.i;
}
yay () {
return this.i;
}
}

0
src/Operations.spec Normal file
View File

2
y.js
View File

@ -1,2 +1,2 @@
"use strict";function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}var OperationBuffer=function a(){_classCallCheck(this,a),this.i=4};
"use strict";function _classCallCheck(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var OperationBuffer=function t(){_classCallCheck(this,t),this.i=4},Operation=function(){function t(n){_classCallCheck(this,t),this.i=n.i}return t.prototype.yay=function(){return this.i},t}();
//# sourceMappingURL=y.js.map

View File

@ -1 +1 @@
{"version":3,"sources":["y.js","OperationBuffer.js"],"names":["_classCallCheck","instance","Constructor","TypeError","OperationBuffer","this","i"],"mappings":"AAEA,YAEA,SAASA,iBAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCAEhH,GCJAC,iBAEA,QAFAA,KDKEJ,gBAAgBK,KCLlBD,GAGAC,KAAAC,EAAA","file":"y.js","sourcesContent":["/* @flow */\n","/* @flow */\n\nclass OperationBuffer { //eslint-disable-line no-unused-vars\n i : number;\n constructor () {\n this.i = 4;\n }\n}\n"],"sourceRoot":"/source/"}
{"version":3,"sources":["y.js","OperationBuffer.js","Operations.js"],"names":["_classCallCheck","instance","Constructor","TypeError","OperationBuffer","this","i","Operation","op","prototype","yay"],"mappings":"AAEA,YAEA,SAASA,iBAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCAEhH,GCJAC,iBAEA,QAFAA,KDKEJ,gBAAgBK,KCLlBD,GAGAC,KAAAC,EAAA,GCHAC,UAAA,WAEA,QAFAA,GAEAC,GFYIR,gBAAgBK,KEdpBE,GAGAF,KAAAC,EAAAE,EAAAF,EFoBE,MEvBFC,GAAAE,UAKAC,IAAA,WACA,MAAAL,MAAAC,GANAC","file":"y.js","sourcesContent":["/* @flow */\n","/* @flow */\n\nclass OperationBuffer { //eslint-disable-line no-unused-vars\n i : number;\n constructor () {\n this.i = 4;\n }\n}\n","/* @flow */\n\nclass Operation { //eslint-disable-line no-unused-vars\n i : number;\n constructor (op) {\n this.i = op.i;\n }\n yay () {\n return this.i;\n }\n}\n"],"sourceRoot":"/source/"}