diff --git a/README.md b/README.md new file mode 100644 index 00000000..c618007b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Yjs 0.6 + +This is a complete rewrite of Yjs O.o diff --git a/gulpfile.js b/gulpfile.js index c3ac7879..6ec63790 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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"]); }); diff --git a/package.json b/package.json index f4558bd7..f6ddf50c 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/src/Operations.js b/src/Operations.js new file mode 100644 index 00000000..aff2281f --- /dev/null +++ b/src/Operations.js @@ -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; + } +} diff --git a/src/Operations.spec b/src/Operations.spec new file mode 100644 index 00000000..e69de29b diff --git a/y.js b/y.js index 4c70debd..554152b4 100644 --- a/y.js +++ b/y.js @@ -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 \ No newline at end of file diff --git a/y.js.map b/y.js.map index 99134837..1b2324f3 100644 --- a/y.js.map +++ b/y.js.map @@ -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/"} \ No newline at end of file +{"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/"} \ No newline at end of file