Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

type-binder

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-binder - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

dist/main/decorators.d.ts

22

gulpfile.babel.js
import gulp from "gulp";
import path from "path";
import exists from "path-exists";
import paths from "vinyl-paths";

@@ -10,2 +9,3 @@ import del from "del";

import typescript from "typescript";
import typings from "gulp-typings";
import gts from "gulp-typescript";

@@ -17,7 +17,6 @@ import sass from "gulp-sass";

const dependencies = Object.keys(pkconfig.dependencies).filter(dep => exists.sync("../" + dep));
const sassOptions = {
importer: url => ({ file: url.startsWith("~") ? path.resolve("node_modules", url.substr(1)) : url })
};
const tsc = gts(Object.assign({ typescript: typescript }, tsconfig.compilerOptions));
const typingsConfig = "src/typings.json";
const typescriptSources = [ tsconfig.compilerOptions.rootDir + "/**/*.ts" ];

@@ -27,9 +26,10 @@ const htmlSources = [ tsconfig.compilerOptions.rootDir + "/**/*.html" ];

const output = tsconfig.compilerOptions.outDir;
const testOutput = "test/dist";
const testSuites = [ "test/**/*.ts" ];
const testSuitesDist = [ "test/dist/test/**/*.js" ];
const testSuites = [ "dist/test/**/*.js" ];
const clean = [ output ];
const tsc = gts(Object.assign({ typescript: typescript }, tsconfig.compilerOptions));
gulp.task("clean", done => gulp.src(clean).pipe(paths(del)));
gulp.task("build-typescript", done => {
gulp.task("typings", done => gulp.src(typingsConfig).pipe(typings()));
gulp.task("build-typescript", [ "typings" ], done => {
let stream = gulp.src(typescriptSources).pipe(tsc);

@@ -44,7 +44,3 @@ return merge([

gulp.task("build", done => run("clean", [ "build-typescript", "build-scss", "build-html" ], done));
gulp.task("clean-test", () => gulp.src(testOutput).pipe(paths(del)));
gulp.task("build-test", [ "clean-test" ], () => gulp.src(typescriptSources.concat(testSuites)).pipe(tsc).pipe(gulp.dest(testOutput)));
gulp.task("test", [ "build-test" ], done => gulp.src(testSuitesDist).pipe(jasmine()));
gulp.task("default", () => run("build", "test"));
gulp.task("test", [ "build" ], done => gulp.src(testSuites).pipe(jasmine()));
gulp.task("default", [ "test" ]);
{
"name": "type-binder",
"version": "0.1.1",
"version": "0.2.0",
"description": "A JavaScript type-binder.",

@@ -20,10 +20,7 @@ "keywords": [

},
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"main": "dist/main/index.js",
"typings": "dist/main/index.d.ts",
"scripts": {
"test": "gulp test"
},
"dependencies": {
"reflect-metadata": "^0.1.8"
},
"devDependencies": {

@@ -36,11 +33,14 @@ "babel-preset-es2015": "^6.18.0",

"gulp-sass": "^2.3.2",
"gulp-typescript": "^3.1.2",
"gulp-typescript": "^3.1.3",
"gulp-typings": "^2.0.4",
"jasmine": "^2.5.2",
"jasmine-reporters": "^2.2.0",
"merge2": "^1.0.2",
"path-exists": "^3.0.0",
"run-sequence": "^1.2.2",
"typescript": "^2.0.7",
"typescript": "^2.1.1",
"vinyl-paths": "^2.1.0"
},
"dependencies": {
"reflect-metadata": "^0.1.8"
}
}

@@ -7,4 +7,2 @@ {

"lib": ["es2015", "dom"],
"types": ["reflect-metadata"],
"noImplicitAny": false,
"declaration": true,

@@ -14,6 +12,6 @@ "experimentalDecorators": true,

},
"compileOnSave": false,
"exclude": [
"node_modules"
]
],
"compileOnSave": false
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc