Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Toolchain
sgc
Commits
cb0aa747
Commit
cb0aa747
authored
May 23, 2017
by
Philipp Nowinski
Browse files
[FEATURE] add sourcemap option to typescript compiler
parent
5669fef3
Changes
1
Hide whitespace changes
Inline
Side-by-side
gulp/js-compilers/typescript.js
View file @
cb0aa747
...
...
@@ -41,6 +41,10 @@ module.exports = function() {
}))
.
pipe
(
gulp
.
dest
(
settings
.
getPath
()
+
'
/
'
+
config
.
directories
.
javascriptDest
));
}
else
{
let
sourcemapsPath
;
if
(
config
.
directories
.
hasOwnProperty
(
'
javascriptSourceMaps
'
)
&&
config
.
directories
.
javascriptSourceMaps
!==
'
inline
'
)
{
sourcemapsPath
=
path
.
relative
(
settings
.
getPath
()
+
'
/
'
+
config
.
directories
.
javascriptDest
,
settings
.
getPath
()
+
'
/
'
+
config
.
directories
.
javascriptSourceMaps
);
}
return
browserify
.
plugin
(
tsify
,
{
noImplicitAny
:
true
})
.
bundle
()
...
...
@@ -56,7 +60,7 @@ module.exports = function() {
.
pipe
(
plugins
.
checkFilesize
({
enableGzip
:
true
}))
.
pipe
(
plugins
.
sourcemaps
.
write
(
path
.
relative
(
settings
.
getPath
()
+
'
/
'
+
config
.
directories
.
javascriptDest
,
settings
.
getPath
()
+
'
/
'
+
config
.
directories
.
javascriptSourceMaps
)
))
.
pipe
(
plugins
.
sourcemaps
.
write
(
sourcemapsPath
))
.
pipe
(
gulp
.
dest
(
settings
.
getPath
()
+
'
/
'
+
config
.
directories
.
javascriptDest
));
}
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment