Skip to content

Repository files navigation

Local Development

To work on this library locally with another project (e.g., tablogs_mobile_app), follow these steps:

1. Build and Watch the Library

In this library project (tablogs-plugins), run the build command in watch mode:

npm run watch

2. Link the Library in the Application

In your application project (tablogs_mobile_app):

  1. Update package.json to point to the local build:

    "dependencies": {
      "form": "file:../tablogs-plugins/dist/form"
    }
  2. Run npm install.

  3. Enable preserveSymlinks in angular.json under the build options and in tsconfig.json to ensure the application can resolve dependencies correctly:

    angular.json:

    "architect": {
      "build": {
        "options": {
          "preserveSymlinks": true
        }
      }
    }

    tsconfig.json:

    "compilerOptions": {
      "preserveSymlinks": true
    }

This setup allows you to make changes in the library and have them immediately reflected in the application without needing to publish to a registry.

ng generate component my-feature --project=my-plugin --standalone

Generate a New Component

To generate a new component within a specific plugin, use the following command:

ng generate component <component-name> --project=<project-name>

Example for generating a component in the form project:

ng generate component components/my-new-component --project=form
```-+-+-+-+-+



sometimes it dont work 

plugin
rm -rf .angular/cache && npm run watch form

web
ng build --configuration=development && ng serve

mobile
ng build --configuration=development && ionic  serve

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages