changed to pre-commit
This commit is contained in:
parent
bf493216a2
commit
5a9f59913e
@ -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"]);
|
||||
});
|
||||
|
||||
|
@ -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
11
src/Operations.js
Normal 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
0
src/Operations.spec
Normal file
2
y.js
2
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
|
2
y.js.map
2
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/"}
|
||||
{"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/"}
|
Loading…
x
Reference in New Issue
Block a user