Skip to content

Commit

Permalink
feat: add deployment options (close #540, #327)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Mar 26, 2020
1 parent 47736d9 commit ef65fe7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion generators/app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"ng": "ng",
"build": "<%= run('env') %> && ng build --prod",
"start": "<%= run('env') %> && ng serve --proxy-config proxy.conf.js",
<% if (props.deploy !== 'none') { -%>
"deploy": "<%= run('env') %> && ng deploy",
<% } -%>
<% if (props.pwa) { -%>
"serve:sw": "<%= run('build') %> && npx http-server ./<%= props.target.includes('cordova') ? 'www': 'dist' %> -p 4200",
<% } -%>
Expand Down Expand Up @@ -185,7 +188,7 @@
"stylelint-config-standard": "~20.0.0",
"stylelint-scss": "~3.16.0",
"ts-node": "^8.8.1",
"tslint": "~6.1.0",
"tslint": "~5.20.1",
"typescript": "~3.8.3"
<% if (props.tools.includes('prettier')) { -%>
},
Expand Down

0 comments on commit ef65fe7

Please sign in to comment.