How to have different targets for differents directories
up vote
1
down vote
favorite
I have to directories /src/server
and /src/client
for the backend and frontend code.
In the backend I want to target my .ts
sources to es2017 javascript. In the client I want to target the .ts
sources to es5. How can I indicate that to the Visual Studio Code?
I try to put two different tsconfig.json in each directory. But the Visual Studio Code only takes the root tsconfig.json.
visual-studio typescript visual-studio-code
add a comment |
up vote
1
down vote
favorite
I have to directories /src/server
and /src/client
for the backend and frontend code.
In the backend I want to target my .ts
sources to es2017 javascript. In the client I want to target the .ts
sources to es5. How can I indicate that to the Visual Studio Code?
I try to put two different tsconfig.json in each directory. But the Visual Studio Code only takes the root tsconfig.json.
visual-studio typescript visual-studio-code
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have to directories /src/server
and /src/client
for the backend and frontend code.
In the backend I want to target my .ts
sources to es2017 javascript. In the client I want to target the .ts
sources to es5. How can I indicate that to the Visual Studio Code?
I try to put two different tsconfig.json in each directory. But the Visual Studio Code only takes the root tsconfig.json.
visual-studio typescript visual-studio-code
I have to directories /src/server
and /src/client
for the backend and frontend code.
In the backend I want to target my .ts
sources to es2017 javascript. In the client I want to target the .ts
sources to es5. How can I indicate that to the Visual Studio Code?
I try to put two different tsconfig.json in each directory. But the Visual Studio Code only takes the root tsconfig.json.
visual-studio typescript visual-studio-code
visual-studio typescript visual-studio-code
asked Nov 10 at 20:51
Emilio Platzer
1,210819
1,210819
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
You can have two tsconfig.json
files, one for client and the other for server and then compile each using tsc
with -p
flag, e.g.:
tsc -p /src/server && tsc -p /src/client
Yes, You are right!. I have a little different question now, very related to this. stackoverflow.com/questions/53249684/…
– Emilio Platzer
Nov 11 at 14:28
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
You can have two tsconfig.json
files, one for client and the other for server and then compile each using tsc
with -p
flag, e.g.:
tsc -p /src/server && tsc -p /src/client
Yes, You are right!. I have a little different question now, very related to this. stackoverflow.com/questions/53249684/…
– Emilio Platzer
Nov 11 at 14:28
add a comment |
up vote
1
down vote
accepted
You can have two tsconfig.json
files, one for client and the other for server and then compile each using tsc
with -p
flag, e.g.:
tsc -p /src/server && tsc -p /src/client
Yes, You are right!. I have a little different question now, very related to this. stackoverflow.com/questions/53249684/…
– Emilio Platzer
Nov 11 at 14:28
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
You can have two tsconfig.json
files, one for client and the other for server and then compile each using tsc
with -p
flag, e.g.:
tsc -p /src/server && tsc -p /src/client
You can have two tsconfig.json
files, one for client and the other for server and then compile each using tsc
with -p
flag, e.g.:
tsc -p /src/server && tsc -p /src/client
answered Nov 10 at 21:23
syntagma
12.3k1147102
12.3k1147102
Yes, You are right!. I have a little different question now, very related to this. stackoverflow.com/questions/53249684/…
– Emilio Platzer
Nov 11 at 14:28
add a comment |
Yes, You are right!. I have a little different question now, very related to this. stackoverflow.com/questions/53249684/…
– Emilio Platzer
Nov 11 at 14:28
Yes, You are right!. I have a little different question now, very related to this. stackoverflow.com/questions/53249684/…
– Emilio Platzer
Nov 11 at 14:28
Yes, You are right!. I have a little different question now, very related to this. stackoverflow.com/questions/53249684/…
– Emilio Platzer
Nov 11 at 14:28
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243287%2fhow-to-have-different-targets-for-differents-directories%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown