NativeScript / nativescript-plugin-seed

Get started building NativeScript plugins quickly.
Apache License 2.0
102 stars 54 forks source link

How to add "demo-angular" project after the plugin was created initially without it #169

Open satyam04 opened 5 years ago

elena-p commented 5 years ago

Hi @satyam04,

There is a proposal/feature request in another issue to enable adding demo apps at a later stage - https://github.com/NativeScript/nativescript-plugin-seed/issues/168.

However, here are the steps that you could execute in your plugin directory in order to add demo-angular to your repo:

  1. tns create demo-angular --template tns-template-blank-ng - create blank nativescript angular app
  2. in demo-angular/tsconfig.json update include and exclude properties to the following (same as in your demo app): "include": [ "../src", "*/" ], "exclude": [ "../src/node_modules", "node_modules", "platforms" ]
  3. in demo-angular/package.json add your plugin source as a dependency - "nativescript-your-plugin": "file:../src"