Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
satyam04 opened this issue Sep 10, 2019 · 1 comment
Labels

Comments

@satyam04
Copy link

No description provided.

@elena-p
Copy link

elena-p commented Sep 11, 2019

Hi @satyam04,

There is a proposal/feature request in another issue to enable adding demo apps at a later stage - #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"

@elena-p elena-p added the docs label Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants