npm i -g @angular/cli cordova phonegap
cd %userprofile%\Documents\Projects
ng new App
cd App
cordova create cordova com.mycompany.appid "App"
cd cordova
cordova platform add browser
cd ..
{
"name": "App",
"version": "0.0.0",
"scripts": {
"start:ng:open": "ng serve --open",
"start:ng:www": "ng serve --host 0.0.0.0 --public my.public.domain",
"start:ng": "rmdir-cli cordova/www/ && ng build --output-path=cordova/www/ --watch",
"start:cordova:serve": "cd cordova && mkdirp www && phonegap serve",
"start:cordova:run": "cd cordova && mkdirp www && cordova run android",
"start": "concurrently --kill-others \"npm run start:cordova:serve\" \"npm run start:ng\""
},
"devDependencies": {
"concurrently": "^3.4.0",
"rmdir-cli": "^2.0.6",
"mkdirp": "^0.5.1",
...
}
...
}
npm i
npm run start