-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
livereload on device, emulator, web versions are working perfectly.
Question ; How to build for production?
using --cmd for debug build with commands like below;
nx run tablet:build:development
nx run tablet:copy:android --verbose
nx run tablet:sync:android
nx run tablet:cap --cmd "run android -l --external"
generates apdebug.apk successfully
How can i do same compilation for production version of apk
nx run tablet:build:production
nx run tablet:copy:android
nx run tablet:sync:android
nx run tablet:cap --cmd "run android --prod" < at here it says build parameter unknown
{
"name": "my-app",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"start": "nx serve",
"build": "nx build",
"test": "nx test",
"postinstall": "ngcc --properties es2015 browser module main",
"all": "run-p web:serve tablet:serve mobile:serve",
"web:build": "nx build web",
"web:serve": "nx serve web --port 4200 --open",
"mobile:build": "nx build mobile",
"mobile:serve": "nx serve mobile --port 4201 --open --disable-host-check",
"tablet:build": "nx build tablet",
"tablet:serve": "nx serve tablet --host 0.0.0.0 --port 4202 --open --disable-host-check",
"mobile:device": "nx run mobile:build:development && nx run mobile:copy:android && nx run mobile:sync:android && nx run mobile:run:android",
"mobile:devicecap": "nx run mobile:build:development && nx run mobile:copy:android && nx run mobile:sync:android && nx run mobile:cap --cmd \"run android -l --external\"",
"mobile:device_verbose": "nx run mobile:build:development && nx run mobile:copy:android && nx run mobile:sync:android && nx run mobile:cap --verbose --sdk-info --cmd \"run android -l --external --verbose --sdk-info\"",
"tablet:device": "nx run tablet:build:development && nx run tablet:copy:android --verbose && nx run tablet:sync:android && nx run tablet:cap --cmd \"run android -l --external\"",
"tablet:production": "nx run tablet:build:production && nx run tablet:copy:android && nx run tablet:sync:android && nx run tablet:cap --cmd \"run android --prod\""
},
"private": true,
"dependencies": {
"@angular/animations": "~13.3.0",
"@angular/common": "~13.3.0",
"@angular/compiler": "~13.3.0",
"@angular/core": "~13.3.0",
"@angular/forms": "~13.3.0",
"@angular/material": "13.2.3",
"@angular/material-moment-adapter": "13.2.3",
"@angular/platform-browser": "~13.3.0",
"@angular/platform-browser-dynamic": "~13.3.0",
"@angular/router": "~13.3.0",
"@awesome-cordova-plugins/device": "^5.44.0",
"@capacitor/core": "^3.2.5",
"@ionic/angular": "^6.2.4",
"@ionic/storage-angular": "^3.0.6",
"@ngneat/transloco": "3.1.4",
"cordova-plugin-device": "^2.1.0",
"lodash-es": "4.17.21",
"moment": "^2.29.1",
"perfect-scrollbar": "1.5.3",
"primeicons": "^5.0.0",
"primeng": "^13.2.1",
"quill": "1.3.7",
"rxjs": "~7.4.0",
"simple-keyboard": "3.4.44",
"simple-keyboard-layouts": "3.1.44",
"tslib": "^2.0.0",
"xml2js": "^0.4.23",
"xml-js": "^1.6.11",
"zone.js": "~0.11.4",
"html2canvas": "^1.4.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "~13.3.0",
"@angular-eslint/eslint-plugin": "~13.1.0",
"@angular-eslint/eslint-plugin-template": "~13.1.0",
"@angular-eslint/template-parser": "~13.1.0",
"@angular/cli": "~13.3.0",
"@angular/compiler-cli": "~13.3.0",
"@angular/language-service": "~13.3.0",
"@capacitor/android": "^3.2.5",
"@capacitor/cli": "^3.2.5",
"@capacitor/ios": "^3.2.5",
"@nrwl/angular": "^13.0.0",
"@nrwl/cli": "13.10.6",
"@nrwl/cypress": "13.10.6",
"@nrwl/eslint-plugin-nx": "13.10.6",
"@nrwl/jest": "13.10.6",
"@nrwl/linter": "13.10.6",
"@nrwl/nx-cloud": "13.1.6",
"@nrwl/workspace": "13.10.6",
"@nxtend/capacitor": "^13.0.0",
"@nxtend/ionic-angular": "^13.1.0",
"@tailwindcss/aspect-ratio": "0.4.0",
"@tailwindcss/line-clamp": "0.3.1",
"@tailwindcss/typography": "0.5.2",
"@types/chroma-js": "2.1.3",
"@types/jest": "27.0.2",
"@types/lodash": "4.14.178",
"@types/lodash-es": "4.17.6",
"@types/node": "16.11.7",
"@typescript-eslint/eslint-plugin": "~5.18.0",
"@typescript-eslint/parser": "~5.18.0",
"chroma-js": "2.4.2",
"cypress": "^9.1.0",
"devextreme": "22.1.3",
"devextreme-angular": "22.1.3",
"eslint": "~8.12.0",
"eslint-config-prettier": "8.1.0",
"eslint-plugin-cypress": "^2.10.3",
"jest": "27.2.3",
"jest-preset-angular": "11.1.1",
"npm-run-all": "^4.1.5",
"nx": "13.10.6",
"prettier": "^2.5.1",
"tailwindcss": "3.0.23",
"ts-jest": "27.0.5",
"typescript": "~4.6.2"
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels