Skip to content

Commit 5f9b37b

Browse files
committed
chore: note about angular in plugin workspaces
1 parent a0af4d9 commit 5f9b37b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

plugins/plugin-workspace-guide.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,6 @@ This created a `packages/nativescript-label-marquee` folder containing a plugin
8989
- Updating the `npm start` interactive display
9090
- Updating the README here to list the new package
9191

92-
## If needed, add Angular compatibility to a package
93-
94-
Not all packages need specific Angular compatibility. Only if you want to provide Angular specific behavior for example, custom directives, components or other extended behavior to expand on top of your NativeScript plugin will you need to do this.
95-
96-
You can [see an example of Angular specific behavior in a plugin here](https://github.com/NativeScript/plugins/blob/main/packages/datetimepicker/angular/nativescript-datetimepicker.accessors.ts).
97-
98-
```cli
99-
npm run add-angular
100-
```
101-
102-
At the prompt, enter the name of the package to add an `angular` folder to it with the necessary boilerplate to provide Angular support to the package.
103-
10492
## How to focus on just 1 package to develop in isolation
10593

10694
```cli
@@ -124,6 +112,18 @@ npm run publish-packages
124112
- You will then be prompted for the version to use. Leaving blank will auto bump the patch version (it also handles prerelease types like alpha, beta, rc, etc. - It even auto tags the corresponding prelease type on npm).
125113
- You will then be given a brief sanity check 🧠😊
126114

115+
## If needed, add Angular compatibility to a package
116+
117+
Not all packages need specific Angular compatibility. Only if you want to provide Angular specific behavior for example, custom directives, components or other extended behavior to expand on top of your NativeScript plugin will you need to do this.
118+
119+
You can [see an example of Angular specific behavior in a plugin here](https://github.com/NativeScript/plugins/blob/main/packages/datetimepicker/angular/nativescript-datetimepicker.accessors.ts).
120+
121+
```cli
122+
npm run add-angular
123+
```
124+
125+
At the prompt, enter the name of the package to add an `angular` folder to it with the necessary boilerplate to provide Angular support to the package.
126+
127127
## Migrating your plugin workspace
128128

129129
One of the additional nice benefits of using plugin workspaces is updating them is a made simple and efficient through Nx tooling. The TSC maintains the plugin workspace migrations so whenever one is available you can update your plugin workspace (which will often contain auto version bumps of supporting packages to latest NativeScript versions, configuration improvements and other welcome additions to help you create and maintain great NativeScript plugins):

0 commit comments

Comments
 (0)