2021年6月14日 星期一

[angular 12] dotnet new 預設樣板與 ng new 預設樣板差異 - package.json 差異 script 區段


scripts區塊

先從不同的地方說起

build:ssr:設定了 server side render 的設定,是透過 angular.json 的 architect (建築目標) 設定
lint:透過 ng 做程式碼驗證
e2e:目前還沒用過,是用來做 end to end 整合測試的功能
watch:在 build 完之後,會持續監控內容修改,遇到修改就進行重新編譯

angular.json 裡的 archtect 段落(參考)會為 ng xxxx 設定預設值
ex. ng build, ng serve, ng test 等


而 dotnet new 裡面的 build:ssr 也是類似



沒有留言:

張貼留言