2016-12-30 58 views
0

我试图编译和复制所有ts文件从dev文件夹到app文件夹。
所以我想是所有已编译的文件复制到应用程序文件夹的根,像app/app.component.js,但目前的结果是app/dev/app.component.jsTypescript tsconfig filsGlob不复制到应用程序文件夹的根目录

我怎样才能做到这一点?

这是我目前的tsconfig

{ 
    "compilerOptions": { 
    "target": "es5", 
    "module": "commonjs", 
    "moduleResolution": "node", 
    "sourceMap": true, 
    "emitDecoratorMetadata": true, 
    "experimentalDecorators": true, 
    "lib": [ "es2015", "dom" ], 
    "noImplicitAny": true, 
    "suppressImplicitAnyIndexErrors": true, 
    "outDir": "./app" 
    }, 
    "filesGlob": [ 
    "./dev/**/*.ts", 
    "!./node_modules/**/*.ts" 
    ], 
    "exclude": [ 
    "node_modules", 
    "typings/main", 
    "typings/main.d.ts" 
    ], 
    "atom": { 
    "rewriteTsconfig": true 
    } 
} 

回答

相关问题