-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use tsconfig.json data in gulpfile.js instead of hardcoded values. #572
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a minor comment.
@@ -14,27 +14,28 @@ const ts = require('gulp-typescript'); | |||
|
|||
|
|||
let buildDir = process.env.BUILD_DIR || 'build'; | |||
|
|||
let tsProject = ts.createProject('tsconfig.json'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason you're not just requiring the json file here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is because tsProject.src()
is being used below by Gulp.
This was the case also before, but @AndrienkoAleksandr seems to have brought createProject
at the top level, to be able to access it's settings inside the tasks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndrienkoAleksandr can you please rebase with master, before we are able to merge this?
@@ -14,27 +14,28 @@ const ts = require('gulp-typescript'); | |||
|
|||
|
|||
let buildDir = process.env.BUILD_DIR || 'build'; | |||
|
|||
let tsProject = ts.createProject('tsconfig.json'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is because tsProject.src()
is being used below by Gulp.
This was the case also before, but @AndrienkoAleksandr seems to have brought createProject
at the top level, to be able to access it's settings inside the tasks.
4afb3fc
to
c618f16
Compare
@AndrienkoAleksandr can you please rebase with master, in order to merge this? |
Use tsconfig.json data in gulpfile.js instead of hardcoded values. Little code clean up Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
c618f16
to
dc3a136
Compare
@parisk branch rebased. |
Let's wait until 2.4 is released before we merge this (just in case). |
Looks great, thanks! |
Use tsconfig.json data in gulpfile.js instead of hardcoded values. Little code clean up
Signed-off-by: Aleksandr Andrienko aandrienko@codenvy.com