Socket
Socket
Sign inDemoInstall

as

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.2.2

array.js

37

gulpfile.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc