updated gitignore, flow working
This commit is contained in:
parent
d37d0ef9af
commit
bf493216a2
@ -1,10 +1,7 @@
|
|||||||
[ignore]
|
|
||||||
./build_test
|
|
||||||
|
|
||||||
[include]
|
[include]
|
||||||
./src
|
|
||||||
|
|
||||||
[libs]
|
[libs]
|
||||||
./interfaces
|
./interfaces
|
||||||
|
./src
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -6,3 +6,6 @@ build_test
|
|||||||
.c9
|
.c9
|
||||||
.codio
|
.codio
|
||||||
.settings
|
.settings
|
||||||
|
.jshintignore
|
||||||
|
.jshintrc
|
||||||
|
.validate.json
|
||||||
|
10
gulpfile.js
10
gulpfile.js
@ -49,9 +49,9 @@ var concat = require("gulp-concat");
|
|||||||
var watch = require("gulp-watch");
|
var watch = require("gulp-watch");
|
||||||
|
|
||||||
var files = {
|
var files = {
|
||||||
y: ["src/**/*.js"],
|
y: ["src/**/*.js", "!src/**/*.spec.js"],
|
||||||
lint: ["src/**/*.js", "gulpfile.js"],
|
lint: ["src/**/*.js", "gulpfile.js"],
|
||||||
specs: ["src/**/*.spec.js"],
|
test: ["src/**/*.js"],
|
||||||
build_test: ["build_test/y.js"]
|
build_test: ["build_test/y.js"]
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ var options = minimist(process.argv.slice(2), {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task("build_test", function () {
|
gulp.task("build_test", function () {
|
||||||
return gulp.src(files.y.concat(files.specs))
|
return gulp.src(files.test)
|
||||||
.pipe(sourcemaps.init())
|
.pipe(sourcemaps.init())
|
||||||
.pipe(concat(options.name))
|
.pipe(concat(options.name))
|
||||||
.pipe(babel({
|
.pipe(babel({
|
||||||
@ -105,7 +105,7 @@ gulp.task("lint", function(){
|
|||||||
.pipe(eslint.failOnError());
|
.pipe(eslint.failOnError());
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task("develop", ["build_test", "build"], function(){
|
gulp.task("develop", ["test", "build"], function(){
|
||||||
gulp.src(files.build_test)
|
gulp.src(files.build_test)
|
||||||
.pipe(watch(files.build_test))
|
.pipe(watch(files.build_test))
|
||||||
.pipe(jasmineBrowser.specRunner())
|
.pipe(jasmineBrowser.specRunner())
|
||||||
@ -114,4 +114,4 @@ gulp.task("develop", ["build_test", "build"], function(){
|
|||||||
return gulp.watch(files.build_test, ["test"]);
|
return gulp.watch(files.build_test, ["test"]);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task("default", ["build"]);
|
gulp.task("default", ["build", "test"]);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/*eslint-env browser,jasmine,console */
|
/*eslint-env browser,jasmine,console */
|
||||||
|
|
||||||
describe("Operation Buffer", function() {
|
describe("Operation Buffer", function() {
|
||||||
var OB = new OperationBuffer(void 0);
|
var OB = new OperationBuffer();
|
||||||
|
|
||||||
it("contains spec with an expectation", function(done) {
|
it("contains spec with an expectation", function(done) {
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
|
2
y.js
2
y.js
@ -1,2 +1,2 @@
|
|||||||
"use strict";function _classCallCheck(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}var OperationBuffer=function n(){_classCallCheck(this,n),this.i=4};describe("Operation Buffer",function(){var n=new OperationBuffer(void 0);window.console.log(n),it("contains spec with an expectation",function(n){setTimeout(function(){n()},1e3),expect(!0).toBe(!0)})});
|
"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};
|
||||||
//# sourceMappingURL=y.js.map
|
//# sourceMappingURL=y.js.map
|
2
y.js.map
2
y.js.map
@ -1 +1 @@
|
|||||||
{"version":3,"sources":["y.js","OperationBuffer.js","OperationBuffer.spec.js"],"names":["_classCallCheck","instance","Constructor","TypeError","OperationBuffer","this","i","describe","OB","window","console","log","it","done","setTimeout","expect","toBe"],"mappings":"AAEA,YAEA,SAASA,iBAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCAEhH,GCJAC,iBAEA,QAFAA,KDKEJ,gBAAgBK,KCLlBD,GAGAC,KAAAC,EAAA,ECFAC,UAAA,mBAAA,WACA,GAAAC,GAAA,GAAAJ,iBAAA,OACAK,QAAAC,QAAAC,IAAAH,GAEAI,GAAA,oCAAA,SAAAC,GACAC,WAAA,WACAD,KACA,KACAE,QAAA,GAAAC,MAAA","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/*eslint-env browser,jasmine */\n\ndescribe(\"Operation Buffer\", function() {\n var OB = new OperationBuffer(void 0);\n window.console.log(OB);\n\n it(\"contains spec with an expectation\", function(done) {\n setTimeout(function(){\n done();\n }, 1000);\n expect(true).toBe(true);\n });\n});\n"],"sourceRoot":"/source/"}
|
{"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/"}
|
Loading…
x
Reference in New Issue
Block a user