@powerlines/plugin-tsup 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,294 @@
1
+ <!-- START header -->
2
+ <!-- prettier-ignore-start -->
3
+ <!-- markdownlint-disable -->
4
+
5
+
6
+ <div align="center"><img src="https://public.storm-cdn.com/storm-banner.gif" width="100%" alt="Powerlines" /></div>
7
+ <br />
8
+
9
+ <div align="center">
10
+ <b>
11
+ <a href="https://stormsoftware.com" target="_blank">Website</a> •
12
+ <a href="https://github.com/storm-software/powerlines" target="_blank">GitHub</a> •
13
+ <a href="https://discord.gg/MQ6YVzakM5">Discord</a> • <a href="https://stormstack.github.io/stormstack/" target="_blank">Docs</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> •
14
+ <a href="https://github.com/storm-software/powerlines/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a>
15
+ </b>
16
+ </div>
17
+
18
+ <br />
19
+ This package is part of the ⚡<b>Powerlines</b> monorepo. Powerlines packages include CLI utility applications, tools, and various libraries used to create modern, scalable web applications.
20
+ <br />
21
+
22
+ <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
+
24
+ [![Version](https://img.shields.io/badge/version-0.2.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
+
26
+ <!-- prettier-ignore-start -->
27
+ <!-- markdownlint-disable -->
28
+
29
+ > [!IMPORTANT]
30
+ > This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be available through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.
31
+
32
+ <!-- markdownlint-restore -->
33
+ <!-- prettier-ignore-end -->
34
+
35
+ <div align="center">
36
+ <b>Be sure to ⭐ this repository on <a href="https://github.com/storm-software/powerlines" target="_blank">GitHub</a> so you can keep up to date on any daily progress!</b>
37
+ </div>
38
+
39
+ <br />
40
+
41
+ <!-- markdownlint-restore -->
42
+ <!-- prettier-ignore-end -->
43
+
44
+ <!-- END header -->
45
+
46
+ # Powerlines - Plugin Plugin
47
+
48
+ A package containing a Powerlines plugin to assist in developing other Powerlines plugins.
49
+
50
+ <!-- START doctoc -->
51
+ <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
52
+ ## Table of Contents
53
+
54
+ - [Powerlines - Plugin Plugin](#powerlines---plugin-plugin)
55
+ - [Table of Contents](#table-of-contents)
56
+ - [Installing](#installing)
57
+ - [Reduced Package Size](#reduced-package-size)
58
+ - [Development](#development)
59
+ - [Building](#building)
60
+ - [Running unit tests](#running-unit-tests)
61
+ - [Linting](#linting)
62
+ - [Storm Workspaces](#storm-workspaces)
63
+ - [Roadmap](#roadmap)
64
+ - [Support](#support)
65
+ - [License](#license)
66
+ - [Changelog](#changelog)
67
+ - [Contributing](#contributing)
68
+ - [Contributors](#contributors)
69
+
70
+ <!-- END doctoc -->
71
+
72
+ ## Installing
73
+
74
+ Using [pnpm](http://pnpm.io):
75
+
76
+ ```bash
77
+ pnpm add @powerlines/plugin-plugin
78
+ ```
79
+
80
+ <details>
81
+ <summary>Using npm</summary>
82
+
83
+ ```bash
84
+ npm install @powerlines/plugin-plugin
85
+ ```
86
+
87
+ </details>
88
+
89
+ <details>
90
+ <summary>Using yarn</summary>
91
+
92
+ ```bash
93
+ yarn add @powerlines/plugin-plugin
94
+ ```
95
+
96
+ </details>
97
+
98
+ ## Reduced Package Size
99
+
100
+ This project uses [tsup](https://tsup.egoist.dev/) to package the source code
101
+ due to its ability to remove unused code and ship smaller javascript files
102
+ thanks to code splitting. This helps to greatly reduce the size of the package
103
+ and to make it easier to use in other projects.
104
+
105
+ ## Development
106
+
107
+ This project is built using [Nx](https://nx.dev). As a result, many of the usual
108
+ commands are available to assist in development.
109
+
110
+ ### Building
111
+
112
+ Run `nx build plugin-plugin` to build the library.
113
+
114
+ ### Running unit tests
115
+
116
+ Run `nx test plugin-plugin` to execute the unit tests via
117
+ [Jest](https://jestjs.io).
118
+
119
+ ### Linting
120
+
121
+ Run `nx lint plugin-plugin` to run
122
+ [ESLint](https://eslint.org/) on the package.
123
+
124
+ <!-- START footer -->
125
+ <!-- prettier-ignore-start -->
126
+ <!-- markdownlint-disable -->
127
+
128
+
129
+ ## Storm Workspaces
130
+
131
+ Storm workspaces are built using
132
+ <a href="https://nx.dev/" target="_blank">Nx</a>, a set of extensible dev tools
133
+ for monorepos, which helps you develop like Google, Facebook, and Microsoft.
134
+ Building on top of Nx, the Open System provides a set of tools and patterns that
135
+ help you scale your monorepo to many teams while keeping the codebase
136
+ maintainable.
137
+
138
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
139
+ <br />
140
+
141
+ ## Roadmap
142
+
143
+ See the [open issues](https://github.com/storm-software/powerlines/issues) for
144
+ a list of proposed features (and known issues).
145
+
146
+ - [Top Feature Requests](https://github.com/storm-software/powerlines/issues?q=label%3Aenhancement+is%3Aopen+sort%3Areactions-%2B1-desc)
147
+ (Add your votes using the 👍 reaction)
148
+ - [Top Bugs](https://github.com/storm-software/powerlines/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc)
149
+ (Add your votes using the 👍 reaction)
150
+ - [Newest Bugs](https://github.com/storm-software/powerlines/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
151
+
152
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
153
+ <br />
154
+
155
+ ## Support
156
+
157
+ Reach out to the maintainer at one of the following places:
158
+
159
+ - [Contact](https://stormsoftware.com/contact)
160
+ - [GitHub discussions](https://github.com/storm-software/powerlines/discussions)
161
+ - <support@stormsoftware.com>
162
+
163
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
164
+ <br />
165
+
166
+ ## License
167
+
168
+ This project is licensed under the **Apache License 2.0**. Feel free to edit and
169
+ distribute this template as you like.
170
+
171
+ See [LICENSE](LICENSE) for more information.
172
+
173
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
174
+ <br />
175
+
176
+ ## Changelog
177
+
178
+ This project adheres to
179
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Every release, along
180
+ with the migration instructions, is documented in the [CHANGELOG](CHANGELOG.md)
181
+ file
182
+
183
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
184
+ <br />
185
+
186
+ ## Contributing
187
+
188
+ First off, thanks for taking the time to contribute! Contributions are what
189
+ makes the open-source community such an amazing place to learn, inspire, and
190
+ create. Any contributions you make will benefit everybody else and are **greatly
191
+ appreciated**.
192
+
193
+ Please try to create bug reports that are:
194
+
195
+ - _Reproducible._ Include steps to reproduce the problem.
196
+ - _Specific._ Include as much detail as possible: which version, what
197
+ environment, etc.
198
+ - _Unique._ Do not duplicate existing opened issues.
199
+ - _Scoped to a Single Bug._ One bug per report.
200
+
201
+ Please adhere to this project's [code of conduct](.github/CODE_OF_CONDUCT.md).
202
+
203
+ You can use
204
+ [markdownlint-cli](https://github.com/storm-software/powerlines/markdownlint-cli)
205
+ to check for common markdown style inconsistency.
206
+
207
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
208
+ <br />
209
+
210
+ ## Contributors
211
+
212
+ Thanks goes to these wonderful people
213
+ ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
214
+
215
+ <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
216
+
217
+ <table>
218
+ <tbody>
219
+ <tr>
220
+ <td align="center" valign="top" width="14.28%"><a href="http://www.sullypat.com/"><img src="https://avatars.githubusercontent.com/u/99053093?v=4?s=100" width="100px;" alt="Patrick Sullivan"/><br /><sub><b>Patrick Sullivan</b></sub></a><br /><a href="#design-sullivanpj" title="Design">🎨</a> <a href="https://github.com/storm-software/powerlines/commits?author=sullivanpj" title="Code">💻</a> <a href="#tool-sullivanpj" title="Tools">🔧</a> <a href="https://github.com/storm-software/powerlines/commits?author=sullivanpj" title="Documentation">📖</a> <a href="https://github.com/storm-software/powerlines/commits?author=sullivanpj" title="Tests">⚠️</a></td>
221
+ <td align="center" valign="top" width="14.28%"><a href="https://tylerbenning.com/"><img src="https://avatars.githubusercontent.com/u/7265547?v=4?s=100" width="100px;" alt="Tyler Benning"/><br /><sub><b>Tyler Benning</b></sub></a><br /><a href="#design-tbenning" title="Design">🎨</a></td>
222
+ <td align="center" valign="top" width="14.28%"><a href="http://stormsoftware.com"><img src="https://avatars.githubusercontent.com/u/149802440?v=4?s=100" width="100px;" alt="Stormie"/><br /><sub><b>Stormie</b></sub></a><br /><a href="#maintenance-stormie-bot" title="Maintenance">🚧</a></td>
223
+ </tr>
224
+ </tbody>
225
+ <tfoot>
226
+ <tr>
227
+ <td align="center" size="13px" colspan="7">
228
+ <img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg" alt="All Contributors">
229
+ <a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
230
+ </img>
231
+ </td>
232
+ </tr>
233
+ </tfoot>
234
+ </table>
235
+
236
+ <!-- ALL-CONTRIBUTORS-LIST:END -->
237
+
238
+ This project follows the
239
+ [all-contributors](https://github.com/all-contributors/all-contributors)
240
+ specification. Contributions of any kind welcome!
241
+
242
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
243
+ <br />
244
+
245
+ <hr />
246
+ <br />
247
+
248
+ <div align="center">
249
+ <img src="https://public.storm-cdn.com/brand-banner.png" width="100%" alt="Storm Software" />
250
+ </div>
251
+ <br />
252
+
253
+ <div align="center">
254
+ <a href="https://stormsoftware.com" target="_blank">Website</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> • <a href="https://linkedin.com/in/patrick-sullivan-865526b0" target="_blank">LinkedIn</a> • <a href="https://medium.com/@pat.joseph.sullivan" target="_blank">Medium</a> • <a href="https://github.com/storm-software" target="_blank">GitHub</a> • <a href="https://keybase.io/sullivanp" target="_blank">OpenPGP Key</a>
255
+ </div>
256
+
257
+ <div align="center">
258
+ <b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D
259
+ </div>
260
+ <br />
261
+
262
+ Storm Software is an open source software development organization and creator
263
+ of Acidic, StormStack and StormCloud.
264
+
265
+ Our mission is to make software development more accessible. Our ideal future is
266
+ one where anyone can create software without years of prior development
267
+ experience serving as a barrier to entry. We hope to achieve this via LLMs,
268
+ Generative AI, and intuitive, high-level data modeling/programming languages.
269
+
270
+ Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team,
271
+ receive release notifications, ask questions, and get involved.
272
+
273
+ If this sounds interesting, and you would like to help us in creating the next
274
+ generation of development tools, please reach out on our
275
+ [website](https://stormsoftware.com/contact) or join our
276
+ [Slack channel](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA)!
277
+
278
+ <br />
279
+
280
+ <div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/icon-fill.png" alt="Storm Software" width="200px"/></a></div>
281
+ <br />
282
+ <div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/visit-us-text.svg" alt="Visit us at stormsoftware.com" height="90px"/></a></div>
283
+
284
+ <br />
285
+
286
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
287
+ <br />
288
+ <br />
289
+
290
+
291
+ <!-- markdownlint-restore -->
292
+ <!-- prettier-ignore-end -->
293
+
294
+ <!-- END footer -->
@@ -0,0 +1,4 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
4
+ export { __name };
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
5
+
6
+ exports.__name = __name;
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var unplugin = require('./unplugin');
4
+
5
+
6
+
7
+ Object.keys(unplugin).forEach(function (k) {
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
+ enumerable: true,
10
+ get: function () { return unplugin[k]; }
11
+ });
12
+ });
@@ -0,0 +1,7 @@
1
+ export { createTsupPlugin } from './unplugin.cjs';
2
+ import 'esbuild';
3
+ import '../types/plugin.cjs';
4
+ import 'powerlines/types/build';
5
+ import 'powerlines/types/config';
6
+ import 'powerlines/types/context';
7
+ import 'powerlines/types/resolved';
@@ -0,0 +1,7 @@
1
+ export { createTsupPlugin } from './unplugin.js';
2
+ import 'esbuild';
3
+ import '../types/plugin.js';
4
+ import 'powerlines/types/build';
5
+ import 'powerlines/types/config';
6
+ import 'powerlines/types/context';
7
+ import 'powerlines/types/resolved';
@@ -0,0 +1 @@
1
+ export * from './unplugin';
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var chunkUSNT2KNT_cjs = require('../chunk-USNT2KNT.cjs');
4
+ var unplugin$1 = require('powerlines/lib/unplugin');
5
+ var unplugin = require('unplugin');
6
+
7
+ function createTsupPlugin(context) {
8
+ return unplugin.createEsbuildPlugin(unplugin$1.createUnplugin(context, {
9
+ skipResolve: true
10
+ }))({});
11
+ }
12
+ chunkUSNT2KNT_cjs.__name(createTsupPlugin, "createTsupPlugin");
13
+
14
+ exports.createTsupPlugin = createTsupPlugin;
@@ -0,0 +1,10 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { TsupPluginContext } from '../types/plugin.cjs';
3
+ import 'powerlines/types/build';
4
+ import 'powerlines/types/config';
5
+ import 'powerlines/types/context';
6
+ import 'powerlines/types/resolved';
7
+
8
+ declare function createTsupPlugin(context: TsupPluginContext): esbuild.Plugin;
9
+
10
+ export { createTsupPlugin };
@@ -0,0 +1,10 @@
1
+ import * as esbuild from 'esbuild';
2
+ import { TsupPluginContext } from '../types/plugin.js';
3
+ import 'powerlines/types/build';
4
+ import 'powerlines/types/config';
5
+ import 'powerlines/types/context';
6
+ import 'powerlines/types/resolved';
7
+
8
+ declare function createTsupPlugin(context: TsupPluginContext): esbuild.Plugin;
9
+
10
+ export { createTsupPlugin };
@@ -0,0 +1,12 @@
1
+ import { __name } from '../chunk-SHUYVCID.js';
2
+ import { createUnplugin } from 'powerlines/lib/unplugin';
3
+ import { createEsbuildPlugin } from 'unplugin';
4
+
5
+ function createTsupPlugin(context) {
6
+ return createEsbuildPlugin(createUnplugin(context, {
7
+ skipResolve: true
8
+ }))({});
9
+ }
10
+ __name(createTsupPlugin, "createTsupPlugin");
11
+
12
+ export { createTsupPlugin };
package/dist/index.cjs ADDED
@@ -0,0 +1,83 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
6
+ var types$1 = require('@storm-software/config-tools/types');
7
+ var tsup = require('@storm-software/tsup');
8
+ var isParentPath = require('@stryke/path/is-parent-path');
9
+ var join = require('@stryke/path/join');
10
+ var isFunction = require('@stryke/type-checks/is-function');
11
+ var defu = require('defu');
12
+ var tsup$1 = require('powerlines/lib/build/tsup');
13
+ var unplugin = require('./helpers/unplugin');
14
+ var helpers = require('./helpers');
15
+ var types = require('./types');
16
+
17
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
18
+
19
+ var defu__default = /*#__PURE__*/_interopDefault(defu);
20
+
21
+ const plugin = /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((options = {}) => {
22
+ return {
23
+ name: "tsup",
24
+ config() {
25
+ this.log(types$1.LogLevelLabel.TRACE, "Providing default configuration for the Powerlines `tsup` build plugin.");
26
+ return {
27
+ output: {
28
+ format: [
29
+ "cjs",
30
+ "esm"
31
+ ]
32
+ },
33
+ build: {
34
+ ...options,
35
+ variant: "tsup"
36
+ }
37
+ };
38
+ },
39
+ configResolved() {
40
+ this.log(types$1.LogLevelLabel.TRACE, "The Powerlines `tsup` build plugin has resolved the final configuration.");
41
+ this.dependencies["@storm-software/tsup"] = {
42
+ type: "devDependency",
43
+ version: "^0.1.1"
44
+ };
45
+ },
46
+ async build() {
47
+ this.log(types$1.LogLevelLabel.TRACE, "Building the Powerlines plugin.");
48
+ return tsup.build(await tsup.resolveOptions(defu__default.default({
49
+ config: false,
50
+ esbuildOptions: /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((buildOptions, ctx) => {
51
+ if (isFunction.isFunction(options.esbuildOptions)) {
52
+ options.esbuildOptions(buildOptions, ctx);
53
+ }
54
+ buildOptions.alias = defu__default.default(buildOptions.alias ?? {}, Object.fromEntries(this.fs.builtinIdMap.entries()));
55
+ }, "esbuildOptions"),
56
+ entry: Object.fromEntries(Object.entries(tsup$1.resolveTsupEntry(this, this.entry)).map(([key, value]) => [
57
+ key,
58
+ isParentPath.isParentPath(value, this.config.projectRoot) ? value : join.joinPaths(this.config.projectRoot, value)
59
+ ]))
60
+ }, tsup$1.extractTsupConfig(this), {
61
+ esbuildPlugins: [
62
+ unplugin.createTsupPlugin(this)
63
+ ]
64
+ })));
65
+ }
66
+ };
67
+ }, "plugin");
68
+ var index_default = plugin;
69
+
70
+ exports.default = index_default;
71
+ exports.plugin = plugin;
72
+ Object.keys(helpers).forEach(function (k) {
73
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
74
+ enumerable: true,
75
+ get: function () { return helpers[k]; }
76
+ });
77
+ });
78
+ Object.keys(types).forEach(function (k) {
79
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
80
+ enumerable: true,
81
+ get: function () { return types[k]; }
82
+ });
83
+ });
@@ -0,0 +1,16 @@
1
+ import { Plugin } from 'powerlines/types/plugin';
2
+ import { TsupPluginContext, TsupPluginOptions } from './types/plugin.cjs';
3
+ export { TsupPluginResolvedConfig, TsupPluginUserConfig } from './types/plugin.cjs';
4
+ export { createTsupPlugin } from './helpers/unplugin.cjs';
5
+ import 'powerlines/types/build';
6
+ import 'powerlines/types/config';
7
+ import 'powerlines/types/context';
8
+ import 'powerlines/types/resolved';
9
+ import 'esbuild';
10
+
11
+ /**
12
+ * A Powerlines plugin to assist in developing other Powerlines plugins.
13
+ */
14
+ declare const plugin: <TContext extends TsupPluginContext = TsupPluginContext>(options?: TsupPluginOptions) => Plugin<TContext>;
15
+
16
+ export { TsupPluginContext, TsupPluginOptions, plugin as default, plugin };
@@ -0,0 +1,16 @@
1
+ import { Plugin } from 'powerlines/types/plugin';
2
+ import { TsupPluginContext, TsupPluginOptions } from './types/plugin.js';
3
+ export { TsupPluginResolvedConfig, TsupPluginUserConfig } from './types/plugin.js';
4
+ export { createTsupPlugin } from './helpers/unplugin.js';
5
+ import 'powerlines/types/build';
6
+ import 'powerlines/types/config';
7
+ import 'powerlines/types/context';
8
+ import 'powerlines/types/resolved';
9
+ import 'esbuild';
10
+
11
+ /**
12
+ * A Powerlines plugin to assist in developing other Powerlines plugins.
13
+ */
14
+ declare const plugin: <TContext extends TsupPluginContext = TsupPluginContext>(options?: TsupPluginOptions) => Plugin<TContext>;
15
+
16
+ export { TsupPluginContext, TsupPluginOptions, plugin as default, plugin };
package/dist/index.js ADDED
@@ -0,0 +1,62 @@
1
+ import { __name } from './chunk-SHUYVCID.js';
2
+ import { LogLevelLabel } from '@storm-software/config-tools/types';
3
+ import { build, resolveOptions } from '@storm-software/tsup';
4
+ import { isParentPath } from '@stryke/path/is-parent-path';
5
+ import { joinPaths } from '@stryke/path/join';
6
+ import { isFunction } from '@stryke/type-checks/is-function';
7
+ import defu from 'defu';
8
+ import { resolveTsupEntry, extractTsupConfig } from 'powerlines/lib/build/tsup';
9
+ import { createTsupPlugin } from './helpers/unplugin';
10
+ export * from './helpers';
11
+ export * from './types';
12
+
13
+ const plugin = /* @__PURE__ */ __name((options = {}) => {
14
+ return {
15
+ name: "tsup",
16
+ config() {
17
+ this.log(LogLevelLabel.TRACE, "Providing default configuration for the Powerlines `tsup` build plugin.");
18
+ return {
19
+ output: {
20
+ format: [
21
+ "cjs",
22
+ "esm"
23
+ ]
24
+ },
25
+ build: {
26
+ ...options,
27
+ variant: "tsup"
28
+ }
29
+ };
30
+ },
31
+ configResolved() {
32
+ this.log(LogLevelLabel.TRACE, "The Powerlines `tsup` build plugin has resolved the final configuration.");
33
+ this.dependencies["@storm-software/tsup"] = {
34
+ type: "devDependency",
35
+ version: "^0.1.1"
36
+ };
37
+ },
38
+ async build() {
39
+ this.log(LogLevelLabel.TRACE, "Building the Powerlines plugin.");
40
+ return build(await resolveOptions(defu({
41
+ config: false,
42
+ esbuildOptions: /* @__PURE__ */ __name((buildOptions, ctx) => {
43
+ if (isFunction(options.esbuildOptions)) {
44
+ options.esbuildOptions(buildOptions, ctx);
45
+ }
46
+ buildOptions.alias = defu(buildOptions.alias ?? {}, Object.fromEntries(this.fs.builtinIdMap.entries()));
47
+ }, "esbuildOptions"),
48
+ entry: Object.fromEntries(Object.entries(resolveTsupEntry(this, this.entry)).map(([key, value]) => [
49
+ key,
50
+ isParentPath(value, this.config.projectRoot) ? value : joinPaths(this.config.projectRoot, value)
51
+ ]))
52
+ }, extractTsupConfig(this), {
53
+ esbuildPlugins: [
54
+ createTsupPlugin(this)
55
+ ]
56
+ })));
57
+ }
58
+ };
59
+ }, "plugin");
60
+ var index_default = plugin;
61
+
62
+ export { index_default as default, plugin };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var plugin = require('./plugin');
4
+
5
+
6
+
7
+ Object.keys(plugin).forEach(function (k) {
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
+ enumerable: true,
10
+ get: function () { return plugin[k]; }
11
+ });
12
+ });
@@ -0,0 +1,5 @@
1
+ export { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig } from './plugin.cjs';
2
+ import 'powerlines/types/build';
3
+ import 'powerlines/types/config';
4
+ import 'powerlines/types/context';
5
+ import 'powerlines/types/resolved';
@@ -0,0 +1,5 @@
1
+ export { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig } from './plugin.js';
2
+ import 'powerlines/types/build';
3
+ import 'powerlines/types/config';
4
+ import 'powerlines/types/context';
5
+ import 'powerlines/types/resolved';
@@ -0,0 +1 @@
1
+ export * from './plugin';
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,11 @@
1
+ import { TsupBuildConfig } from 'powerlines/types/build';
2
+ import { TsupUserConfig } from 'powerlines/types/config';
3
+ import { PluginContext } from 'powerlines/types/context';
4
+ import { TsupResolvedConfig } from 'powerlines/types/resolved';
5
+
6
+ type TsupPluginOptions = Partial<TsupBuildConfig>;
7
+ type TsupPluginUserConfig = TsupUserConfig;
8
+ type TsupPluginResolvedConfig = TsupResolvedConfig;
9
+ type TsupPluginContext<TResolvedConfig extends TsupPluginResolvedConfig = TsupPluginResolvedConfig> = PluginContext<TResolvedConfig>;
10
+
11
+ export type { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig };
@@ -0,0 +1,11 @@
1
+ import { TsupBuildConfig } from 'powerlines/types/build';
2
+ import { TsupUserConfig } from 'powerlines/types/config';
3
+ import { PluginContext } from 'powerlines/types/context';
4
+ import { TsupResolvedConfig } from 'powerlines/types/resolved';
5
+
6
+ type TsupPluginOptions = Partial<TsupBuildConfig>;
7
+ type TsupPluginUserConfig = TsupUserConfig;
8
+ type TsupPluginResolvedConfig = TsupResolvedConfig;
9
+ type TsupPluginContext<TResolvedConfig extends TsupPluginResolvedConfig = TsupPluginResolvedConfig> = PluginContext<TResolvedConfig>;
10
+
11
+ export type { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig };
@@ -0,0 +1 @@
1
+
package/package.json ADDED
@@ -0,0 +1,142 @@
1
+ {
2
+ "name": "@powerlines/plugin-tsup",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
+ "repository": {
7
+ "type": "github",
8
+ "url": "https://github.com/storm-software/powerlines.git",
9
+ "directory": "packages/plugin-tsup"
10
+ },
11
+ "homepage": "https://stormsoftware.com",
12
+ "bugs": {
13
+ "url": "https://stormsoftware.com/support",
14
+ "email": "support@stormsoftware.com"
15
+ },
16
+ "author": {
17
+ "name": "Storm Software",
18
+ "email": "contact@stormsoftware.com",
19
+ "url": "https://stormsoftware.com"
20
+ },
21
+ "maintainers": [
22
+ {
23
+ "name": "Storm Software",
24
+ "email": "contact@stormsoftware.com",
25
+ "url": "https://stormsoftware.com"
26
+ }
27
+ ],
28
+ "contributors": [
29
+ {
30
+ "name": "Storm Software",
31
+ "email": "contact@stormsoftware.com",
32
+ "url": "https://stormsoftware.com"
33
+ }
34
+ ],
35
+ "funding": {
36
+ "type": "github",
37
+ "url": "https://github.com/sponsors/storm-software"
38
+ },
39
+ "license": "Apache-2.0",
40
+ "private": false,
41
+ "main": "dist/index.cjs",
42
+ "module": "dist/index.js",
43
+ "exports": {
44
+ "./package.json": "./package.json",
45
+ ".": {
46
+ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
47
+ "require": {
48
+ "types": "./dist/index.d.cts",
49
+ "default": "./dist/index.cjs"
50
+ },
51
+ "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
52
+ },
53
+ "./index": {
54
+ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
55
+ "require": {
56
+ "types": "./dist/index.d.cts",
57
+ "default": "./dist/index.cjs"
58
+ },
59
+ "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
60
+ },
61
+ "./plugin": {
62
+ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
63
+ "require": {
64
+ "types": "./dist/index.d.cts",
65
+ "default": "./dist/index.cjs"
66
+ },
67
+ "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
68
+ },
69
+ "./types": {
70
+ "import": {
71
+ "types": "./dist/types/index.d.ts",
72
+ "default": "./dist/types/index.js"
73
+ },
74
+ "require": {
75
+ "types": "./dist/types/index.d.cts",
76
+ "default": "./dist/types/index.cjs"
77
+ },
78
+ "default": {
79
+ "types": "./dist/types/index.d.ts",
80
+ "default": "./dist/types/index.js"
81
+ }
82
+ },
83
+ "./types/*": {
84
+ "import": {
85
+ "types": "./dist/types/*.d.ts",
86
+ "default": "./dist/types/*.js"
87
+ },
88
+ "require": {
89
+ "types": "./dist/types/*.d.cts",
90
+ "default": "./dist/types/*.cjs"
91
+ },
92
+ "default": {
93
+ "types": "./dist/types/*.d.ts",
94
+ "default": "./dist/types/*.js"
95
+ }
96
+ },
97
+ "./helpers": {
98
+ "import": {
99
+ "types": "./dist/helpers/index.d.ts",
100
+ "default": "./dist/helpers/index.js"
101
+ },
102
+ "require": {
103
+ "types": "./dist/helpers/index.d.cts",
104
+ "default": "./dist/helpers/index.cjs"
105
+ },
106
+ "default": {
107
+ "types": "./dist/helpers/index.d.ts",
108
+ "default": "./dist/helpers/index.js"
109
+ }
110
+ },
111
+ "./helpers/*": {
112
+ "import": {
113
+ "types": "./dist/helpers/*.d.ts",
114
+ "default": "./dist/helpers/*.js"
115
+ },
116
+ "require": {
117
+ "types": "./dist/helpers/*.d.cts",
118
+ "default": "./dist/helpers/*.cjs"
119
+ },
120
+ "default": {
121
+ "types": "./dist/helpers/*.d.ts",
122
+ "default": "./dist/helpers/*.js"
123
+ }
124
+ }
125
+ },
126
+ "typings": "dist/index.d.ts",
127
+ "files": ["dist/**/*"],
128
+ "keywords": ["tsup", "powerlines", "storm-software", "powerlines-plugin"],
129
+ "dependencies": {
130
+ "@storm-software/tsup": "^0.2.4",
131
+ "@stryke/fs": "^0.31.4",
132
+ "@stryke/path": "^0.15.5",
133
+ "@stryke/type-checks": "^0.3.10",
134
+ "@stryke/types": "^0.10.0",
135
+ "defu": "^6.1.4",
136
+ "jiti": "^2.6.1",
137
+ "powerlines": "^0.1.0"
138
+ },
139
+ "devDependencies": { "@powerlines/nx": "^0.1.0", "@types/node": "^22.18.11" },
140
+ "publishConfig": { "access": "public" },
141
+ "gitHead": "ecb19d2493e29805acdca3a87b7ffaf6d331dfec"
142
+ }