mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
added missing cli.js to browser package, fixed systemjs version when using "typeorm-browser" as package name
This commit is contained in:
parent
e0bf036a22
commit
2070120770
13
gulpfile.ts
13
gulpfile.ts
@ -62,7 +62,7 @@ export class Gulpfile {
|
||||
"!./src/typeorm-model-shim.ts",
|
||||
"!./src/platform/PlatformTools.ts"
|
||||
])
|
||||
.pipe(gulp.dest("./build/systemjs/typeorm"))
|
||||
.pipe(gulp.dest("./build/systemjs/typeorm-browser"))
|
||||
.pipe(gulp.dest("./build/browser/src"));
|
||||
}
|
||||
|
||||
@ -72,7 +72,7 @@ export class Gulpfile {
|
||||
@Task()
|
||||
browserCopyMainBrowserFile() {
|
||||
return gulp.src("./package.json", { read: false })
|
||||
.pipe(file("typeorm.ts", `export * from "./typeorm/index";`))
|
||||
.pipe(file("typeorm-browser.ts", `export * from "./typeorm-browser/index";`))
|
||||
.pipe(gulp.dest("./build/systemjs"));
|
||||
}
|
||||
|
||||
@ -83,7 +83,7 @@ export class Gulpfile {
|
||||
browserCopyPlatformTools() {
|
||||
return gulp.src("./src/platform/BrowserPlatformTools.template")
|
||||
.pipe(rename("PlatformTools.ts"))
|
||||
.pipe(gulp.dest("./build/systemjs/typeorm/platform"))
|
||||
.pipe(gulp.dest("./build/systemjs/typeorm-browser/platform"))
|
||||
.pipe(gulp.dest("./build/browser/src/platform"));
|
||||
}
|
||||
|
||||
@ -147,6 +147,12 @@ export class Gulpfile {
|
||||
])
|
||||
}
|
||||
|
||||
@Task()
|
||||
browserCopyCliFile() {
|
||||
return gulp.src("./build/package/cli.js")
|
||||
.pipe(gulp.dest("./build/browser"))
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Main Packaging and Publishing tasks
|
||||
// -------------------------------------------------------------------------
|
||||
@ -264,6 +270,7 @@ export class Gulpfile {
|
||||
["packageCompile", "browserCompile", "browserCompileSystemJS"],
|
||||
["packageMoveCompiledFiles", "browserUglify"],
|
||||
[
|
||||
"browserCopyCliFile",
|
||||
"browserClearPackageDirectory",
|
||||
"packageClearPackageDirectory",
|
||||
"packageReplaceReferences",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user