我正在嘗試在打字稿上做POC AngularJS和Grunt。我沒有找到很多清楚解釋這個過程的文檔。爲什麼使用angularjs1.5打字稿時需要_all.ts?
我看到,當我在_all.ts
中添加所有打字稿參考時,它才起作用。但我需要明白爲什麼。誰解析_all.ts
使其工作?
文件夾結構 anggen -.tmp -app -blocks -common -images ... -styles -404.html -_all.ts -app.ts -favicon.ico -index.html -bower_components -node_modules -test -typings -.bowerrc -.editorconfig -.gitattributes -.gitignore -.jscsrc -.jshintrc -.travis.yml -.yo-rc.json -bower.json -Gruntfile.js -package.json -README.md -tsd.json -tslint.json
你能分享你的應用程序的結構嗎?通常足夠有一個正確定義的tsconfig.json,你有這樣的文件嗎? – toskv
這可能是問題的一部分。同時檢查@basarat的答案。這可能是因爲你正在按照創建打字稿項目的較舊方式。 :) – toskv
有沒有指向使用tsconfig.json的新方法的任何鏈接? –