aurelia-progress
Advanced tools
Comparing version 0.2.0 to 0.2.1
import gulp from "gulp"; | ||
import path from "path"; | ||
import paths from "vinyl-paths"; | ||
@@ -7,14 +8,36 @@ import del from "del"; | ||
import reporters from "jasmine-reporters"; | ||
import tsb from "gulp-tsb"; | ||
import typescript from "typescript"; | ||
import typings from "gulp-typings"; | ||
import gts from "gulp-typescript"; | ||
import sass from "gulp-sass"; | ||
import merge from "merge2"; | ||
import tsconfig from "./tsconfig.json"; | ||
import pkconfig from "./package.json"; | ||
const tsc = tsb.create(tsconfig.compilerOptions); | ||
const sassOptions = { | ||
importer: url => ({ file: url.startsWith("~") ? path.resolve("node_modules", url.substr(1)) : url }) | ||
}; | ||
const typingsConfig = "src/typings.json"; | ||
const typescriptSources = [ tsconfig.compilerOptions.rootDir + "/**/*.ts" ]; | ||
const typescriptOutput = tsconfig.compilerOptions.outDir; | ||
const testSuites = [ "test/**/*.js" ]; | ||
const clean = [ typescriptOutput ]; | ||
const htmlSources = [ tsconfig.compilerOptions.rootDir + "/**/*.html" ]; | ||
const scssSources = [ tsconfig.compilerOptions.rootDir + "/**/*.scss" ]; | ||
const output = tsconfig.compilerOptions.outDir; | ||
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", [ "clean" ], done => gulp.src(typescriptSources).pipe(tsc()).pipe(gulp.dest(typescriptOutput))); | ||
gulp.task("typings", done => gulp.src(typingsConfig).pipe(typings())); | ||
gulp.task("build-typescript", [ "typings" ], done => { | ||
let stream = gulp.src(typescriptSources).pipe(tsc); | ||
return merge([ | ||
stream.js.pipe(gulp.dest(output)), | ||
stream.dts.pipe(gulp.dest(output)) | ||
]); | ||
}); | ||
gulp.task("build-scss", done => gulp.src(scssSources).pipe(sass(sassOptions)).pipe(gulp.dest(output))); | ||
gulp.task("build-html", done => gulp.src(htmlSources).pipe(gulp.dest(output))); | ||
gulp.task("build", done => run("clean", [ "build-typescript", "build-scss", "build-html" ], done)); | ||
gulp.task("test", [ "build" ], done => gulp.src(testSuites).pipe(jasmine())); | ||
gulp.task("default", () => run("build", "test")); | ||
gulp.task("default", [ "test" ]); |
{ | ||
"name": "aurelia-progress", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A plugin for Aurelia based projects.", | ||
@@ -19,4 +19,4 @@ "keywords": [ | ||
}, | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"main": "dist/main/index.js", | ||
"typings": "dist/main/index.d.ts", | ||
"scripts": { | ||
@@ -27,14 +27,17 @@ "test": "gulp test" | ||
"devDependencies": { | ||
"babel-preset-es2015": "^6.9.0", | ||
"babel-register": "^6.9.0", | ||
"del": "^2.2.0", | ||
"babel-preset-es2015": "^6.18.0", | ||
"babel-register": "^6.18.0", | ||
"del": "^2.2.2", | ||
"gulp": "^3.9.1", | ||
"gulp-jasmine": "^2.3.0", | ||
"gulp-tsb": "^1.10.4", | ||
"jasmine": "^2.4.1", | ||
"jasmine-reporters": "^2.1.1", | ||
"run-sequence": "^1.2.1", | ||
"typescript": "^1.8.10", | ||
"gulp-jasmine": "^2.4.2", | ||
"gulp-sass": "^2.3.2", | ||
"gulp-typescript": "^3.1.3", | ||
"gulp-typings": "^2.0.4", | ||
"jasmine": "^2.5.2", | ||
"jasmine-reporters": "^2.2.0", | ||
"merge2": "^1.0.2", | ||
"run-sequence": "^1.2.2", | ||
"typescript": "^2.1.1", | ||
"vinyl-paths": "^2.1.0" | ||
} | ||
} |
@@ -7,3 +7,2 @@ { | ||
"lib": ["es2015", "dom"], | ||
"sourceMap": true, | ||
"declaration": true, | ||
@@ -13,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
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
11661
84
14
14