Skip to content

Commit

Permalink
chore: fix gulp config and others after deps update
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Feb 21, 2019
1 parent 084ca96 commit 9934e66
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Unreleased
<!-- here goes all the unreleased changes descriptions -->
### Features
- **Breaking Change**: make `graphql-js` packages a peer dependencies, bump `graphql` to `^14.1.1` and `@types/graphql` to `^14.0.5` (#239)
- **Breaking Change**: make `graphql-js` packages a peer dependencies, bump `graphql` to `^14.1.1` and `@types/graphql` to `^14.0.7` (#239)
- **Breaking Change**: remove `useContainer` function and allow to register container by `buildSchema` options (#241)
- **Breaking Change**: change the default `PrintSchemaOptions` option `commentDescriptions` to false (no more `#` comments in SDL)
- add support for passing `PrintSchemaOptions` in `buildSchema.emitSchemaFile` (e.g. `commentDescriptions: true` to restore previous behavior)
Expand Down
30 changes: 15 additions & 15 deletions gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,31 +59,31 @@ export class Gulpfile {
.pipe(tsProject());

return [
tsResult.dts.pipe(gulp.dest("./build/package")),
tsResult.dts.pipe(gulp.dest("./build/package/dist")),
tsResult.js
// .pipe(sourcemaps.write(".", { sourceRoot: "", includeContent: true }))
.pipe(gulp.dest("./build/package")),
.pipe(gulp.dest("./build/package/dist")),
];
}

/**
* Moves all compiled files to the final package directory.
*/
@Task()
packageMoveCompiledFiles() {
return gulp.src("./build/package/src/**/*").pipe(gulp.dest("./build/package/dist"));
}
// @Task()
// packageMoveCompiledFiles() {
// return gulp.src("./build/package/src/**/*").pipe(gulp.dest("./build/package/dist"));
// }

/**
* Removes unnecessary files from final package directory.
*/
@Task()
packageClearCompileDirectory(cb: del.Options) {
return del(
["./build/package/src/**", "./build/package/tests/**", "./build/package/examples/**"],
cb,
);
}
// @Task()
// packageClearCompileDirectory(cb: del.Options) {
// return del(
// ["./build/package/src/**", "./build/package/tests/**", "./build/package/examples/**"],
// cb,
// );
// }

/**
* Change the "private" state of the packaged package.json file to public.
Expand Down Expand Up @@ -117,8 +117,8 @@ export class Gulpfile {
return [
"clean",
"packageCompile",
"packageMoveCompiledFiles",
"packageClearCompileDirectory",
// "packageMoveCompiledFiles",
// "packageClearCompileDirectory",
["packagePreparePackageFile", "packageReadmeFile"],
];
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"dependencies": {
"@types/glob": "^7.1.1",
"@types/node": "*",
"@types/semver": "^5.5.0",
"class-validator": ">=0.9.1",
"glob": "^7.1.3",
Expand Down

0 comments on commit 9934e66

Please sign in to comment.