@storm-software/workspace-tools 1.118.0 → 1.119.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +43 -8
  3. package/executors.json +5 -0
  4. package/index.js +11902 -5321
  5. package/meta.json +1 -1
  6. package/package.json +3 -1
  7. package/packages/config/src/schema.d.ts +2 -2
  8. package/packages/workspace-tools/index.d.ts +2 -0
  9. package/packages/workspace-tools/src/base/base-executor.d.ts +2 -4
  10. package/packages/workspace-tools/src/executors/clean-package/constants.d.ts +4 -0
  11. package/packages/workspace-tools/src/executors/clean-package/executor.d.ts +8 -0
  12. package/packages/workspace-tools/src/executors/clean-package/types.d.ts +8 -0
  13. package/packages/workspace-tools/src/executors/clean-package/utils.d.ts +4 -0
  14. package/packages/workspace-tools/src/executors/rolldown/executor.d.ts +1 -3
  15. package/packages/workspace-tools/src/executors/tsup/executor.d.ts +1 -3
  16. package/packages/workspace-tools/src/executors/tsup-browser/executor.d.ts +1 -3
  17. package/packages/workspace-tools/src/executors/tsup-neutral/executor.d.ts +1 -3
  18. package/packages/workspace-tools/src/executors/tsup-node/executor.d.ts +1 -3
  19. package/packages/workspace-tools/src/executors/typia/executor.d.ts +1 -3
  20. package/packages/workspace-tools/src/executors/unbuild/executor.d.ts +1 -3
  21. package/packages/workspace-tools/src/plugins/typescript/project-config.d.ts +1 -1
  22. package/src/base/index.js +4 -2
  23. package/src/executors/clean-package/executor.js +80083 -0
  24. package/src/executors/clean-package/schema.d.ts +10 -0
  25. package/src/executors/clean-package/schema.json +41 -0
  26. package/src/executors/rolldown/executor.js +4 -2
  27. package/src/executors/tsup/executor.js +4 -2
  28. package/src/executors/tsup-browser/executor.js +4 -2
  29. package/src/executors/tsup-neutral/executor.js +4 -2
  30. package/src/executors/tsup-node/executor.js +4 -2
  31. package/src/executors/typia/executor.js +4 -2
  32. package/src/executors/unbuild/executor.js +4 -2
  33. package/src/generators/browser-library/generator.js +2 -1
  34. package/src/generators/config-schema/generator.js +2 -1
  35. package/src/generators/neutral-library/generator.js +2 -1
  36. package/src/generators/node-library/generator.js +2 -1
  37. package/src/generators/preset/files/.github/workflows/dependabot-update.yml +32 -0
  38. package/src/generators/preset/generator.js +2 -1
  39. package/src/generators/release-version/generator.js +2 -1
  40. package/src/plugins/rust/index.js +38 -7
  41. package/src/plugins/typescript/index.js +27 -1
  42. package/src/utils/index.js +2 -1
  43. package/src/generators/preset/files/.github/workflows/dependabot-approve.yml +0 -24
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 1.119.0 (2024-07-19)
2
+
3
+
4
+ ### Features
5
+
6
+ - **workspace-tools:** Added the `clean-package` executor ([a1763e45](https://github.com/storm-software/storm-ops/commit/a1763e45))
7
+
8
+ - **config:** Updated `workspaceRoot` with a default value ([5ee3fb09](https://github.com/storm-software/storm-ops/commit/5ee3fb09))
9
+
1
10
  ## 1.118.0 (2024-07-19)
2
11
 
3
12
 
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
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
23
 
24
- [![Version](https://img.shields.io/badge/version-1.116.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/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.118.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/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -70,23 +70,26 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
70
70
  - [Unbuild Builder](#unbuild-builder)
71
71
  - [Example](#example-8)
72
72
  - [Options](#options-6)
73
+ - [Clean Publish Executor](#clean-publish-executor)
74
+ - [Example](#example-9)
75
+ - [Options](#options-7)
73
76
  - [Generators](#generators)
74
77
  - [Init Storm Workspace Plugin](#init-storm-workspace-plugin)
75
- - [Options](#options-7)
78
+ - [Options](#options-8)
76
79
  - [Workspace Preset](#workspace-preset)
77
80
  - [Examples](#examples)
78
- - [Options](#options-8)
79
- - [Add Node Library](#add-node-library)
80
81
  - [Options](#options-9)
81
- - [Configuration Schema Creator](#configuration-schema-creator)
82
+ - [Add Node Library](#add-node-library)
82
83
  - [Options](#options-10)
83
- - [Add Neutral Library](#add-neutral-library)
84
+ - [Configuration Schema Creator](#configuration-schema-creator)
84
85
  - [Options](#options-11)
85
- - [Add browser Library](#add-browser-library)
86
+ - [Add Neutral Library](#add-neutral-library)
86
87
  - [Options](#options-12)
88
+ - [Add browser Library](#add-browser-library)
89
+ - [Options](#options-13)
87
90
  - [design-tokens](#design-tokens)
88
91
  - [Storm Release Version Generator](#storm-release-version-generator)
89
- - [Options](#options-13)
92
+ - [Options](#options-14)
90
93
  - [Building](#building)
91
94
  - [Running unit tests](#running-unit-tests)
92
95
  - [Storm Workspaces](#storm-workspaces)
@@ -427,6 +430,38 @@ The following executor options are available:
427
430
 
428
431
 
429
432
 
433
+ ## Clean Publish Executor
434
+
435
+ Remove configuration files, fields, and scripts for development before publishing package. This tool is inspired by the [clean-publish](https://github.com/shashkovdanil/clean-publish/tree/master) package
436
+
437
+ ### Example
438
+
439
+ This executor can be used by executing the following in a command line utility:
440
+
441
+ ```cmd
442
+ nx run my-project:clean-package
443
+ ```
444
+
445
+ **Please note:** _The clean-package executor should be included in the desired projects's `project.json` file.All required options must be included in the `options` property of the json._
446
+
447
+ ### Options
448
+
449
+ The following executor options are available:
450
+
451
+ | Option | Type | Description | Default |
452
+ | --------- | ------ | ------------- | --------- |
453
+ | **outputPath \*** | `string` | The output path of the generated files. | "dist/{projectRoot}" |
454
+ | packageJsonPath | `string` | The path to the package.json file, relative to the workspace root. | |
455
+ | **cleanReadMe \*** | `boolean` | Should API Extractor generate an TSDoc Metadata file. | `true` |
456
+ | **cleanComments \*** | `boolean` | Should API Extractor generate an TSDoc Metadata file. | `true` |
457
+ | ignoredFiles | `string` | List of ESBuild plugins to use during processing | |
458
+ | fields | `string` | List of ESBuild plugins to use during processing | |
459
+
460
+
461
+ **Please note:** _Option names followed by \* above are required, and must be provided to run the executor._
462
+
463
+
464
+
430
465
  <!-- markdownlint-restore -->
431
466
  <!-- prettier-ignore-end -->
432
467
 
package/executors.json CHANGED
@@ -45,6 +45,11 @@
45
45
  "implementation": "./src/executors/unbuild/executor",
46
46
  "schema": "./src/executors/unbuild/schema.json",
47
47
  "description": "Run an unbuild build process on a selected project"
48
+ },
49
+ "clean-package": {
50
+ "implementation": "./src/executors/clean-package/executor",
51
+ "schema": "./src/executors/clean-package/schema.json",
52
+ "description": "Remove configuration files, fields, and scripts for development before publishing package"
48
53
  }
49
54
  }
50
55
  }