Skip to content

Commit

Permalink
added command for both ng-spree and custopm
Browse files Browse the repository at this point in the history
  • Loading branch information
pkrawat1 committed Aug 2, 2018
1 parent d76fb56 commit 852cf20
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 4 deletions.
42 changes: 42 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,48 @@
"outputPath": "dist/server",
"main": "src/main.server.ts",
"tsConfig": "src/tsconfig.server.json"
},
"configurations": {
"mock-ng-spree": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.mock-ng-spree.ts"
}
]
},
"dev-ng-spree": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.dev-ng-spree.ts"
}
]
},
"prod-ng-spree": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod-ng-spree.ts"
}
]
},
"dev-custom": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.dev-custom.ts"
}
]
},
"prod-custom": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod-custom.ts"
}
]
}
}
},
"serve": {
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"bundle-report": "webpack-bundle-analyzer dist/stats.json",
"static-serve": "cd dist/browser && live-server --port=4200 --host=localhost --entry-file=/index.html",

"build:ssr": "npm run build:client-and-server-bundles && npm run webpack:server",
"serve:ssr": "node dist/server",
"start:ssr": "npm run build:ssr && npm run serve:ssr",
"build:client-and-server-bundles": "ng build --configuration=prod-custom && ng run angularspree:server",
"start:ssr:prod-custom": "npm run build:client-and-server-bundles:prod-custom && npm run webpack:server && node dist/server",
"start:ssr:prod-ng-spree": "npm run build:client-and-server-bundles:prod-ng-spree && npm run webpack:server && node dist/server",
"build:client-and-server-bundles:prod-custom": "npm run build:prod-custom && ng run angularspree:server:prod-custom",
"build:client-and-server-bundles:prod-ng-spree": "npm run build:prod-ng-spree && ng run angularspree:server:prod-ng-spree",
"webpack:server": "webpack --config webpack.server.config.js --progress --colors"
},
"private": true,
Expand Down

0 comments on commit 852cf20

Please sign in to comment.