Skip to content

Instantly share code, notes, and snippets.

@wellwind
Last active January 21, 2018 14:29
Show Gist options
  • Save wellwind/a3a11c9c3667878c58775793975acd09 to your computer and use it in GitHub Desktop.
Save wellwind/a3a11c9c3667878c58775793975acd09 to your computer and use it in GitHub Desktop.
You can also use seed project directly: https://github.com/wellwind/native-script-with-ng-cli
  1. ng new nativescript-with-ng-cli
  2. cd nativescript-with-ng-cli
  3. rm -rf src
  4. tns create src --ng
  5. .gitignore
# NativeScript
src/node_modules
src/platforms
src/app/**/*.js
  1. npm install --save-dev rimraf

  2. package.json

"scripts": {
  "start.ios": "cd src && tns run ios",
  "start.android": "cd src && tns run android",
  "postinstall": "rimraf -rf node_modules/@types/node"
}
  1. npm install
  2. npm run start.ios or npm run start.android

using vscode: .vscode/settings.json

{
  "files.exclude": {
    "**/*.js": {
      "when": "$(basename).ts"
    },
    "**/*.js.map": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment