@shell-shock/core 0.1.1 → 0.2.1
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/README.md +221 -0
- package/dist/_virtual/rolldown_runtime.cjs +29 -1
- package/dist/api.cjs +45 -1
- package/dist/api.d.cts +7 -0
- package/dist/api.d.mts +7 -0
- package/dist/api.mjs +44 -1
- package/dist/components/index.cjs +7 -0
- package/dist/components/index.d.cts +2 -0
- package/dist/components/index.d.mts +2 -0
- package/dist/components/index.mjs +3 -0
- package/dist/components/utils-builtin.cjs +453 -0
- package/dist/components/utils-builtin.d.cts +27 -0
- package/dist/components/utils-builtin.d.mts +27 -0
- package/dist/components/utils-builtin.mjs +447 -0
- package/dist/config.cjs +17 -1
- package/dist/config.mjs +16 -1
- package/dist/helpers/persistence.cjs +49 -0
- package/dist/helpers/persistence.mjs +46 -0
- package/dist/helpers/resolve-command.cjs +92 -1
- package/dist/helpers/resolve-command.mjs +88 -1
- package/dist/helpers/update-package-json.cjs +28 -1
- package/dist/helpers/update-package-json.mjs +27 -1
- package/dist/helpers/utilities.cjs +41 -0
- package/dist/helpers/utilities.mjs +38 -0
- package/dist/index.cjs +24 -1
- package/dist/index.d.cts +16 -2
- package/dist/index.d.mts +15 -2
- package/dist/index.mjs +19 -1
- package/dist/plugin-utils/get-command-tree.cjs +22 -0
- package/dist/plugin-utils/get-command-tree.d.cts +15 -0
- package/dist/plugin-utils/get-command-tree.d.mts +15 -0
- package/dist/plugin-utils/get-command-tree.mjs +21 -0
- package/dist/plugin-utils/index.cjs +3 -0
- package/dist/plugin-utils/index.d.cts +2 -0
- package/dist/plugin-utils/index.d.mts +2 -0
- package/dist/plugin-utils/index.mjs +3 -0
- package/dist/powerlines.cjs +172 -2
- package/dist/powerlines.d.cts +2 -2
- package/dist/powerlines.d.mts +2 -2
- package/dist/powerlines.mjs +168 -2
- package/dist/types/command.d.cts +63 -0
- package/dist/types/command.d.mts +63 -0
- package/dist/types/command.mjs +1 -0
- package/dist/types/config.d.cts +9 -26
- package/dist/types/config.d.mts +9 -26
- package/dist/types/config.mjs +1 -1
- package/dist/types/context.cjs +0 -0
- package/dist/types/context.d.cts +26 -0
- package/dist/types/context.d.mts +26 -0
- package/dist/types/context.mjs +1 -0
- package/dist/types/index.d.cts +4 -2
- package/dist/types/index.d.mts +4 -2
- package/dist/types/index.mjs +1 -1
- package/dist/types/options.cjs +0 -0
- package/dist/types/options.d.cts +7 -0
- package/dist/types/options.d.mts +7 -0
- package/dist/types/options.mjs +1 -0
- package/package.json +76 -13
- package/dist/types/build.d.cts +0 -66
- package/dist/types/build.d.mts +0 -66
- package/dist/types/build.mjs +0 -1
- /package/dist/types/{build.cjs → command.cjs} +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,52 @@
|
|
|
1
1
|
<!-- START header -->
|
|
2
|
+
<!-- prettier-ignore-start -->
|
|
3
|
+
<!-- markdownlint-disable -->
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<div align="center">
|
|
7
|
+
<picture>
|
|
8
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/shell-shock/banner-1280x640-dark.gif">
|
|
9
|
+
<source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/shell-shock/banner-1280x640-light.gif">
|
|
10
|
+
<img src="https://public.storm-cdn.com/shell-shock/banner-1280x640-dark.gif" width="100%" alt="Storm Software" />
|
|
11
|
+
</picture>
|
|
12
|
+
</div>
|
|
13
|
+
<br />
|
|
14
|
+
|
|
15
|
+
<div align="center">
|
|
16
|
+
<b>
|
|
17
|
+
<a href="https://stormsoftware.com" target="_blank">Website</a> •
|
|
18
|
+
<a href="https://github.com/storm-software/shell-shock" target="_blank">GitHub</a> •
|
|
19
|
+
<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> •
|
|
20
|
+
<a href="https://github.com/storm-software/shell-shock/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a>
|
|
21
|
+
</b>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<br />
|
|
25
|
+
This package is part of the ⚡<b>Shell Shock</b> monorepo. The Shell Shock packages include CLI utility applications, tools, and various libraries used to create modern, scalable web applications.
|
|
26
|
+
<br />
|
|
27
|
+
|
|
28
|
+
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
|
+
|
|
30
|
+
[](https://stormsoftware.com/projects/shell-shock/) [](http://commitizen.github.io/cz-cli/)  
|
|
31
|
+
|
|
32
|
+
<!-- prettier-ignore-start -->
|
|
33
|
+
<!-- markdownlint-disable -->
|
|
34
|
+
|
|
35
|
+
> [!IMPORTANT]
|
|
36
|
+
> 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.
|
|
37
|
+
|
|
38
|
+
<!-- markdownlint-restore -->
|
|
39
|
+
<!-- prettier-ignore-end -->
|
|
40
|
+
|
|
41
|
+
<div align="center">
|
|
42
|
+
<b>Be sure to ⭐ this repository on <a href="https://github.com/storm-software/shell-shock" target="_blank">GitHub</a> so you can keep up to date on any daily progress!</b>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<br />
|
|
46
|
+
|
|
47
|
+
<!-- markdownlint-restore -->
|
|
48
|
+
<!-- prettier-ignore-end -->
|
|
49
|
+
|
|
2
50
|
<!-- END header -->
|
|
3
51
|
|
|
4
52
|
# Shell Shock
|
|
@@ -40,4 +88,177 @@ Run `nx build core` to build the library.
|
|
|
40
88
|
Run `nx test core` to execute the unit tests via [Jest](https://jestjs.io).
|
|
41
89
|
|
|
42
90
|
<!-- START footer -->
|
|
91
|
+
<!-- prettier-ignore-start -->
|
|
92
|
+
<!-- markdownlint-disable -->
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
## Storm Workspaces
|
|
96
|
+
|
|
97
|
+
Storm workspaces are built using
|
|
98
|
+
<a href="https://nx.dev/" target="_blank">Nx</a>, a set of extensible dev tools
|
|
99
|
+
for monorepos, which helps you develop like Google, Facebook, and Microsoft.
|
|
100
|
+
Building on top of Nx, the Open System provides a set of tools and patterns that
|
|
101
|
+
help you scale your monorepo to many teams while keeping the codebase
|
|
102
|
+
maintainable.
|
|
103
|
+
|
|
104
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
105
|
+
<br />
|
|
106
|
+
|
|
107
|
+
## Roadmap
|
|
108
|
+
|
|
109
|
+
See the [open issues](https://github.com/storm-software/shell-shock/issues) for
|
|
110
|
+
a list of proposed features (and known issues).
|
|
111
|
+
|
|
112
|
+
- [Top Feature Requests](https://github.com/storm-software/shell-shock/issues?q=label%3Aenhancement+is%3Aopen+sort%3Areactions-%2B1-desc)
|
|
113
|
+
(Add your votes using the 👍 reaction)
|
|
114
|
+
- [Top Bugs](https://github.com/storm-software/shell-shock/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc)
|
|
115
|
+
(Add your votes using the 👍 reaction)
|
|
116
|
+
- [Newest Bugs](https://github.com/storm-software/shell-shock/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
|
|
117
|
+
|
|
118
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
119
|
+
<br />
|
|
120
|
+
|
|
121
|
+
## Support
|
|
122
|
+
|
|
123
|
+
Reach out to the maintainer at one of the following places:
|
|
124
|
+
|
|
125
|
+
- [Contact](https://stormsoftware.com/contact)
|
|
126
|
+
- [GitHub discussions](https://github.com/storm-software/shell-shock/discussions)
|
|
127
|
+
- <support@stormsoftware.com>
|
|
128
|
+
|
|
129
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
130
|
+
<br />
|
|
131
|
+
|
|
132
|
+
## License
|
|
133
|
+
|
|
134
|
+
This project is licensed under the **Apache License 2.0**. Feel free to edit and
|
|
135
|
+
distribute this template as you like.
|
|
136
|
+
|
|
137
|
+
See [LICENSE](LICENSE) for more information.
|
|
138
|
+
|
|
139
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
140
|
+
<br />
|
|
141
|
+
|
|
142
|
+
## Changelog
|
|
143
|
+
|
|
144
|
+
This project adheres to
|
|
145
|
+
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). Every release, along
|
|
146
|
+
with the migration instructions, is documented in the [CHANGELOG](CHANGELOG.md)
|
|
147
|
+
file
|
|
148
|
+
|
|
149
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
150
|
+
<br />
|
|
151
|
+
|
|
152
|
+
## Contributing
|
|
153
|
+
|
|
154
|
+
First off, thanks for taking the time to contribute! Contributions are what
|
|
155
|
+
makes the open-source community such an amazing place to learn, inspire, and
|
|
156
|
+
create. Any contributions you make will benefit everybody else and are **greatly
|
|
157
|
+
appreciated**.
|
|
158
|
+
|
|
159
|
+
Please try to create bug reports that are:
|
|
160
|
+
|
|
161
|
+
- _Reproducible._ Include steps to reproduce the problem.
|
|
162
|
+
- _Specific._ Include as much detail as possible: which version, what
|
|
163
|
+
environment, etc.
|
|
164
|
+
- _Unique._ Do not duplicate existing opened issues.
|
|
165
|
+
- _Scoped to a Single Bug._ One bug per report.
|
|
166
|
+
|
|
167
|
+
Please adhere to this project's [code of conduct](.github/CODE_OF_CONDUCT.md).
|
|
168
|
+
|
|
169
|
+
You can use
|
|
170
|
+
[markdownlint-cli](https://github.com/storm-software/shell-shock/markdownlint-cli)
|
|
171
|
+
to check for common markdown style inconsistency.
|
|
172
|
+
|
|
173
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
174
|
+
<br />
|
|
175
|
+
|
|
176
|
+
## Contributors
|
|
177
|
+
|
|
178
|
+
Thanks goes to these wonderful people
|
|
179
|
+
([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
180
|
+
|
|
181
|
+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
182
|
+
|
|
183
|
+
<table>
|
|
184
|
+
<tbody>
|
|
185
|
+
<tr>
|
|
186
|
+
<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/shell-shock/commits?author=sullivanpj" title="Code">💻</a> <a href="#tool-sullivanpj" title="Tools">🔧</a> <a href="https://github.com/storm-software/shell-shock/commits?author=sullivanpj" title="Documentation">📖</a> <a href="https://github.com/storm-software/shell-shock/commits?author=sullivanpj" title="Tests">⚠️</a></td>
|
|
187
|
+
<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>
|
|
188
|
+
<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>
|
|
189
|
+
</tr>
|
|
190
|
+
</tbody>
|
|
191
|
+
<tfoot>
|
|
192
|
+
<tr>
|
|
193
|
+
<td align="center" size="13px" colspan="7">
|
|
194
|
+
<img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg" alt="All Contributors">
|
|
195
|
+
<a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
|
|
196
|
+
</img>
|
|
197
|
+
</td>
|
|
198
|
+
</tr>
|
|
199
|
+
</tfoot>
|
|
200
|
+
</table>
|
|
201
|
+
|
|
202
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
203
|
+
|
|
204
|
+
This project follows the
|
|
205
|
+
[all-contributors](https://github.com/all-contributors/all-contributors)
|
|
206
|
+
specification. Contributions of any kind welcome!
|
|
207
|
+
|
|
208
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
209
|
+
<br />
|
|
210
|
+
|
|
211
|
+
<hr />
|
|
212
|
+
<br />
|
|
213
|
+
|
|
214
|
+
<div align="center">
|
|
215
|
+
<picture>
|
|
216
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-dark.webp">
|
|
217
|
+
<source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-light.webp">
|
|
218
|
+
<img src="https://public.storm-cdn.com/storm-software/banner-1280x320-dark.webp" width="100%" alt="Storm Software" />
|
|
219
|
+
</picture>
|
|
220
|
+
</div>
|
|
221
|
+
<br />
|
|
222
|
+
|
|
223
|
+
<div align="center">
|
|
224
|
+
<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>
|
|
225
|
+
</div>
|
|
226
|
+
|
|
227
|
+
<div align="center">
|
|
228
|
+
<b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D
|
|
229
|
+
</div>
|
|
230
|
+
<br />
|
|
231
|
+
|
|
232
|
+
Storm Software is an open source software development organization and creator
|
|
233
|
+
of Acidic, StormStack and StormCloud.
|
|
234
|
+
|
|
235
|
+
Our mission is to make software development more accessible. Our ideal future is
|
|
236
|
+
one where anyone can create software without years of prior development
|
|
237
|
+
experience serving as a barrier to entry. We hope to achieve this via LLMs,
|
|
238
|
+
Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
239
|
+
|
|
240
|
+
Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team,
|
|
241
|
+
receive release notifications, ask questions, and get involved.
|
|
242
|
+
|
|
243
|
+
If this sounds interesting, and you would like to help us in creating the next
|
|
244
|
+
generation of development tools, please reach out on our
|
|
245
|
+
[website](https://stormsoftware.com/contact) or join our
|
|
246
|
+
[Slack channel](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA)!
|
|
247
|
+
|
|
248
|
+
<br />
|
|
249
|
+
|
|
250
|
+
<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>
|
|
251
|
+
<br />
|
|
252
|
+
<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>
|
|
253
|
+
|
|
254
|
+
<br />
|
|
255
|
+
|
|
256
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
257
|
+
<br />
|
|
258
|
+
<br />
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
<!-- markdownlint-restore -->
|
|
262
|
+
<!-- prettier-ignore-end -->
|
|
263
|
+
|
|
43
264
|
<!-- END footer -->
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
+
__defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
25
|
+
}) : target, mod));
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
|
|
29
|
+
exports.__toESM = __toESM;
|
package/dist/api.cjs
CHANGED
|
@@ -1 +1,45 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_powerlines = require('./powerlines.cjs');
|
|
3
|
+
let powerlines = require("powerlines");
|
|
4
|
+
|
|
5
|
+
//#region src/api.ts
|
|
6
|
+
/**
|
|
7
|
+
* The Shell Shock API class.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This class provides methods to interact with the Shell Shock build system, including cleaning, preparing, linting, building, generating documentation, and finalizing projects.
|
|
11
|
+
*/
|
|
12
|
+
var ShellShockAPI = class ShellShockAPI {
|
|
13
|
+
#powerlines;
|
|
14
|
+
static async from(config = {}) {
|
|
15
|
+
return new ShellShockAPI(await (0, powerlines.createPowerlines)({
|
|
16
|
+
framework: "shell-shock",
|
|
17
|
+
...config,
|
|
18
|
+
plugins: [...config.plugins ?? [], require_powerlines.shellShock()]
|
|
19
|
+
}));
|
|
20
|
+
}
|
|
21
|
+
constructor(powerlines$1) {
|
|
22
|
+
this.#powerlines = powerlines$1;
|
|
23
|
+
}
|
|
24
|
+
async clean(inlineConfig) {
|
|
25
|
+
return this.#powerlines.clean(inlineConfig);
|
|
26
|
+
}
|
|
27
|
+
async prepare(inlineConfig) {
|
|
28
|
+
return this.#powerlines.prepare(inlineConfig);
|
|
29
|
+
}
|
|
30
|
+
async lint(inlineConfig) {
|
|
31
|
+
return this.#powerlines.lint(inlineConfig);
|
|
32
|
+
}
|
|
33
|
+
async build(inlineConfig) {
|
|
34
|
+
return this.#powerlines.build(inlineConfig);
|
|
35
|
+
}
|
|
36
|
+
async docs(inlineConfig) {
|
|
37
|
+
return this.#powerlines.docs(inlineConfig);
|
|
38
|
+
}
|
|
39
|
+
async finalize() {
|
|
40
|
+
return this.#powerlines.finalize();
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
exports.ShellShockAPI = ShellShockAPI;
|
package/dist/api.d.cts
CHANGED
|
@@ -2,6 +2,13 @@ import { UserConfig } from "./types/config.cjs";
|
|
|
2
2
|
import { BuildInlineConfig, CleanInlineConfig, DocsInlineConfig, LintInlineConfig, PrepareInlineConfig } from "powerlines/types/config";
|
|
3
3
|
|
|
4
4
|
//#region src/api.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The Shell Shock API class.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This class provides methods to interact with the Shell Shock build system, including cleaning, preparing, linting, building, generating documentation, and finalizing projects.
|
|
11
|
+
*/
|
|
5
12
|
declare class ShellShockAPI {
|
|
6
13
|
#private;
|
|
7
14
|
static from(config?: UserConfig): Promise<ShellShockAPI>;
|
package/dist/api.d.mts
CHANGED
|
@@ -2,6 +2,13 @@ import { UserConfig } from "./types/config.mjs";
|
|
|
2
2
|
import { BuildInlineConfig, CleanInlineConfig, DocsInlineConfig, LintInlineConfig, PrepareInlineConfig } from "powerlines/types/config";
|
|
3
3
|
|
|
4
4
|
//#region src/api.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The Shell Shock API class.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This class provides methods to interact with the Shell Shock build system, including cleaning, preparing, linting, building, generating documentation, and finalizing projects.
|
|
11
|
+
*/
|
|
5
12
|
declare class ShellShockAPI {
|
|
6
13
|
#private;
|
|
7
14
|
static from(config?: UserConfig): Promise<ShellShockAPI>;
|
package/dist/api.mjs
CHANGED
|
@@ -1 +1,44 @@
|
|
|
1
|
-
import{shellShock
|
|
1
|
+
import { shellShock } from "./powerlines.mjs";
|
|
2
|
+
import { createPowerlines } from "powerlines";
|
|
3
|
+
|
|
4
|
+
//#region src/api.ts
|
|
5
|
+
/**
|
|
6
|
+
* The Shell Shock API class.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* This class provides methods to interact with the Shell Shock build system, including cleaning, preparing, linting, building, generating documentation, and finalizing projects.
|
|
10
|
+
*/
|
|
11
|
+
var ShellShockAPI = class ShellShockAPI {
|
|
12
|
+
#powerlines;
|
|
13
|
+
static async from(config = {}) {
|
|
14
|
+
return new ShellShockAPI(await createPowerlines({
|
|
15
|
+
framework: "shell-shock",
|
|
16
|
+
...config,
|
|
17
|
+
plugins: [...config.plugins ?? [], shellShock()]
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
constructor(powerlines) {
|
|
21
|
+
this.#powerlines = powerlines;
|
|
22
|
+
}
|
|
23
|
+
async clean(inlineConfig) {
|
|
24
|
+
return this.#powerlines.clean(inlineConfig);
|
|
25
|
+
}
|
|
26
|
+
async prepare(inlineConfig) {
|
|
27
|
+
return this.#powerlines.prepare(inlineConfig);
|
|
28
|
+
}
|
|
29
|
+
async lint(inlineConfig) {
|
|
30
|
+
return this.#powerlines.lint(inlineConfig);
|
|
31
|
+
}
|
|
32
|
+
async build(inlineConfig) {
|
|
33
|
+
return this.#powerlines.build(inlineConfig);
|
|
34
|
+
}
|
|
35
|
+
async docs(inlineConfig) {
|
|
36
|
+
return this.#powerlines.docs(inlineConfig);
|
|
37
|
+
}
|
|
38
|
+
async finalize() {
|
|
39
|
+
return this.#powerlines.finalize();
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { ShellShockAPI };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const require_components_utils_builtin = require('./utils-builtin.cjs');
|
|
2
|
+
|
|
3
|
+
exports.ArgsUtilities = require_components_utils_builtin.ArgsUtilities;
|
|
4
|
+
exports.ColorSupportUtilities = require_components_utils_builtin.ColorSupportUtilities;
|
|
5
|
+
exports.EnvSupportUtilities = require_components_utils_builtin.EnvSupportUtilities;
|
|
6
|
+
exports.HyperlinkSupportUtilities = require_components_utils_builtin.HyperlinkSupportUtilities;
|
|
7
|
+
exports.UtilsBuiltin = require_components_utils_builtin.UtilsBuiltin;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ArgsUtilities, ColorSupportUtilities, EnvSupportUtilities, HyperlinkSupportUtilities, UtilsBuiltin, UtilsBuiltinProps } from "./utils-builtin.cjs";
|
|
2
|
+
export { ArgsUtilities, ColorSupportUtilities, EnvSupportUtilities, HyperlinkSupportUtilities, UtilsBuiltin, UtilsBuiltinProps };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ArgsUtilities, ColorSupportUtilities, EnvSupportUtilities, HyperlinkSupportUtilities, UtilsBuiltin, UtilsBuiltinProps } from "./utils-builtin.mjs";
|
|
2
|
+
export { ArgsUtilities, ColorSupportUtilities, EnvSupportUtilities, HyperlinkSupportUtilities, UtilsBuiltin, UtilsBuiltinProps };
|