You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/plugin-workspace-guide.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,18 +89,6 @@ This created a `packages/nativescript-label-marquee` folder containing a plugin
89
89
- Updating the `npm start` interactive display
90
90
- Updating the README here to list the new package
91
91
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
-
104
92
## How to focus on just 1 package to develop in isolation
105
93
106
94
```cli
@@ -124,6 +112,18 @@ npm run publish-packages
124
112
- 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).
125
113
- You will then be given a brief sanity check 🧠😊
126
114
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
+
127
127
## Migrating your plugin workspace
128
128
129
129
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