ng build core --prod && ng build storefrontlib --prod && yarn build:myaccount && yarn build:product && yarn build:assets && yarn build:incubator && yarn build:cdc && yarn build:cds:lib && yarn build:setup
ng build core --prod 类型:Propagated types from dist\core\public_api.d.ts to dist\core\spartacus-core.d.ts
然后开始build @Spartacus/storefront:
然后build my-account:
完整输出:
yarn run v1.22.4
$ ng build core --prod && ng build storefrontlib --prod && yarn build:myaccount && yarn build:product && yarn build:assets && yarn build:incubator && yarn build:cdc && yarn build:cds:lib && yarn build:setup
Building Angular Package
Building entry point ‘@spartacus/core’
Compiling TypeScript sources through ngc
Bundling to FESM2015
Bundling to UMD
Minifying UMD bundle
Writing package metadata
Built @spartacus/core
Built Angular Package
from: C:\Code\SPA\spartacus\projects\core
to: C:\Code\SPA\spartacus\dist\core
Propagated types from dist\core\public_api.d.ts to dist\core\spartacus-core.d.ts
Building entry point ‘@spartacus/storefront’
Built @spartacus/storefront
from: C:\Code\SPA\spartacus\projects\storefrontlib
to: C:\Code\SPA\spartacus\dist\storefrontlib
$ ng build my-account --prod
Building entry point ‘@spartacus/my-account’
Built @spartacus/my-account
from: C:\Code\SPA\spartacus\feature-libs\my-account
to: C:\Code\SPA\spartacus\dist\my-account
$ ng build product --prod
Building entry point ‘@spartacus/product/configurators/common’
Built @spartacus/product/configurators/common
Building entry point ‘@spartacus/product/configurators/cpq’
Built @spartacus/product/configurators/cpq
Building entry point ‘@spartacus/product/configurators/textfield’
Built @spartacus/product/configurators/textfield
Building entry point ‘@spartacus/product/configurators/variant’
Built @spartacus/product/configurators/variant
Building entry point ‘@spartacus/product/configurators’
Built @spartacus/product/configurators
Building entry point ‘@spartacus/product’
Built @spartacus/product
from: C:\Code\SPA\spartacus\feature-libs\product
to: C:\Code\SPA\spartacus\dist\product
$ yarn --cwd ./projects/assets build
$ ng build assets --prod && yarn generate:translations:ts-2-json
Building entry point ‘@spartacus/assets’
Removing scripts section in package.json as it’s considered a potential security vulnerability.
Built @spartacus/assets
from: C:\Code\SPA\spartacus\projects\assets
to: C:\Code\SPA\spartacus\dist\assets
$ ts-node ./generate-translations-ts-2-json
Translations generated in ‘…/…/dist/assets/’
$ ng build incubator --prod
Building entry point ‘@spartacus/incubator’
Built @spartacus/incubator
from: C:\Code\SPA\spartacus\projects\incubator
to: C:\Code\SPA\spartacus\dist\incubator
$ ng build cdc --prod
Building entry point ‘@spartacus/cdc’
Built @spartacus/cdc
from: C:\Code\SPA\spartacus\integration-libs\cdc
to: C:\Code\SPA\spartacus\dist\cdc
$ ng build cds --prod
Building entry point ‘@spartacus/cds’
Built @spartacus/cds
from: C:\Code\SPA\spartacus\projects\cds
to: C:\Code\SPA\spartacus\dist\cds
$ ng build setup --prod
Building entry point ‘@spartacus/setup’
Built @spartacus/setup
from: C:\Code\SPA\spartacus\core-libs\setup
to: C:\Code\SPA\spartacus\dist\setup
Done in 171.68s.