type-binder
Advanced tools
Comparing version 0.1.1 to 0.2.0
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 | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
38637
25
615
1