ng new nativescript-with-ng-cli
cd nativescript-with-ng-cli
- rm -rf src
tns create src --ng
- .gitignore
# NativeScript
src/node_modules
src/platforms
src/app/**/*.js
-
npm install --save-dev rimraf
-
package.json
"scripts": {
"start.ios": "cd src && tns run ios",
"start.android": "cd src && tns run android",
"postinstall": "rimraf -rf node_modules/@types/node"
}
npm install
npm run start.ios
ornpm run start.android
using vscode: .vscode/settings.json
{
"files.exclude": {
"**/*.js": {
"when": "$(basename).ts"
},
"**/*.js.map": true
}