From ef65fe7ba0d489f4ff90e28a7d0b9746ebe5d53c Mon Sep 17 00:00:00 2001 From: sinedied Date: Thu, 26 Mar 2020 21:09:41 +0100 Subject: [PATCH] feat: add deployment options (close #540, #327) --- generators/app/templates/_package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/generators/app/templates/_package.json b/generators/app/templates/_package.json index cdd1fdcb..bd432f57 100644 --- a/generators/app/templates/_package.json +++ b/generators/app/templates/_package.json @@ -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", <% } -%> @@ -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')) { -%> },