Skip to content
Permalink
Browse files

chore: fix gulp config and others after deps update

  • Loading branch information...
MichalLytek committed Feb 21, 2019
1 parent 084ca96 commit 9934e66c274965de696b66f37236e4c85071d718
Showing with 17 additions and 16 deletions.
  1. +1 −1 CHANGELOG.md
  2. +15 −15 gulpfile.ts
  3. +1 −0 package.json
@@ -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)
@@ -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.
@@ -117,8 +117,8 @@ export class Gulpfile {
return [
"clean",
"packageCompile",
"packageMoveCompiledFiles",
"packageClearCompileDirectory",
// "packageMoveCompiledFiles",
// "packageClearCompileDirectory",
["packagePreparePackageFile", "packageReadmeFile"],
];
}
@@ -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",

0 comments on commit 9934e66

Please sign in to comment.
You can’t perform that action at this time.