Comparing version 0.2.1 to 0.2.2
@@ -14,4 +14,19 @@ /*jshint node: true, globalstrict: true */ | ||
// Configuration | ||
// ------------------------------------------------------------------------------------------------- | ||
var settings = | ||
{ scripts: | ||
{ source: "source/{index,array,object}.js" | ||
, target: | ||
{ es5: "." | ||
, es6: "./dist.es6" | ||
, test: "./test.modules" | ||
} | ||
} | ||
} | ||
// Tasks | ||
@@ -38,12 +53,12 @@ // ================================================================================================= | ||
gulp.task("scripts:es6", function () { | ||
return gulp.src("source/**/*.js") | ||
.pipe(gulp.dest("dist")) | ||
; | ||
return gulp.src(settings.scripts.source) | ||
.pipe(gulp.dest(settings.scripts.target.es6)) | ||
; | ||
}); | ||
gulp.task("scripts:es5", function () { | ||
return gulp.src("source/**/*.js") | ||
.pipe(to5({modules: "6-to-library"})) | ||
.pipe(gulp.dest("dist.es5")) | ||
; | ||
return gulp.src(settings.scripts.source) | ||
.pipe(to5({modules: "6-to-library"})) | ||
.pipe(gulp.dest(settings.scripts.target.es5)) | ||
; | ||
}); | ||
@@ -56,6 +71,6 @@ | ||
gulp.task("prepare-test", function () { | ||
return gulp.src("source/**/*.js") | ||
.pipe(to5({modules: "common"})) | ||
.pipe(gulp.dest("test.modules")) | ||
; | ||
return gulp.src(settings.scripts.source) | ||
.pipe(to5({modules: "common"})) | ||
.pipe(gulp.dest(settings.scripts.target.test)) | ||
; | ||
}); | ||
@@ -62,0 +77,0 @@ |
{ "name": "as" | ||
, "version": "0.2.1" | ||
, "version": "0.2.2" | ||
, "description": "as/array and as/object. Convert easily, back and forth." | ||
@@ -32,3 +32,2 @@ , "license": "MIT" | ||
, "main": "dist.es5/" | ||
, "scripts": | ||
@@ -35,0 +34,0 @@ { "pretest": "gulp prepare-test" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22875
602