0
我在angular 2
應用程序中有common
模塊。這是項目的結構:轉儲服務模塊角2
main
--app
/common
--config
//.ts configs for modules
--services
//angular services
--models
--store
//ngrx store
/component1
/component2
app.module.ts
main.ts
--js
//systemjs dependencies
Gruntfile.js
package.json
tconfig.json
該項目配置爲transpile到bundle.js並按預期工作。不過,現在我想把common
文件夾的內容打包並孤立地打包。這樣,我可以使用加載它的依賴關係,然後在組件中使用它包含app.module.ts
。
我需要入門幫助,是否需要改變一些gruntfile/tsconfig
?或者,我將不得不創建一個單獨的package.json/index.ts
以transpile .ts
依賴關係?