1
Answer

Outputting the .js files on save of .ts file issue

mel_lisau

mel_lisau

7y
331
1
Hi ,
I have my .js files in the following directory
 
../Scripts/lookup.js  and many others .
I have just renamed my .js files to .s files and if i select "Show all files" in Visual Studio I can see the . js file but i need to include it in the project.
Is there a way I can leave my create my .js files in a different directory when I save the chnages to the .ts file ?
 
Also the .js file doesnt seem to generate on save but it does on compiling .
 
Note I dont use the tsconfig.json  I wuse Visual Studios "Typescript Build"  screen .
 
Should i use a tsconfig.json file and if so where can i place it ?
 
thanks 
 
 
 
Answers (1)
0
Marcel Hertel

Marcel Hertel

NA 54 0 14y
hi,

assume that you have the columns emp_id and emp_name in your emp-table you can use the following procedure:

create procedure sp_Sortdata
(
    @Orderbyclause varchar(50)
)
as
select
    *
from
    emp e
order by   
    case when @Orderbyclause = 'emp_id' then e.emp_id end asc
    ,case when @Orderbyclause = 'emp_name' then e.emp_name end asc
   
if you execute exec sp_Sortdata 'emp_id' the procedure returns the emp-table ordered by emp_id

i hope this helps

Marcel Hertel