@storm-software/workspace-tools 1.0.0 → 1.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/README.md +23 -15
  3. package/generators.json +8 -1
  4. package/index.d.ts +3 -0
  5. package/index.js +7 -0
  6. package/index.js.map +1 -0
  7. package/package.json +14 -5
  8. package/src/executors/tsup/executor.d.ts +5 -0
  9. package/src/executors/tsup/executor.js +114 -0
  10. package/src/executors/tsup/executor.js.map +1 -0
  11. package/src/executors/tsup/get-config.d.ts +7 -0
  12. package/src/executors/tsup/get-config.js +28 -0
  13. package/src/executors/tsup/get-config.js.map +1 -0
  14. package/src/executors/tsup/hasher.js.map +1 -0
  15. package/src/executors/tsup/schema.d.ts +19 -0
  16. package/src/executors/tsup/schema.json +127 -0
  17. package/src/generators/init/init.d.ts +4 -0
  18. package/src/generators/init/init.js +36 -0
  19. package/src/generators/init/init.js.map +1 -0
  20. package/src/generators/init/schema.d.ts +3 -0
  21. package/src/generators/init/schema.json +16 -0
  22. package/src/generators/preset/files/.env.template +7 -7
  23. package/src/utils/apply-workspace-tokens.d.ts +2 -0
  24. package/src/utils/apply-workspace-tokens.js +42 -0
  25. package/src/utils/apply-workspace-tokens.js.map +1 -0
  26. package/src/utils/get-workspace-root.d.ts +1 -0
  27. package/src/utils/get-workspace-root.js +14 -0
  28. package/src/utils/get-workspace-root.js.map +1 -0
  29. package/src/utils/versions.d.ts +17 -0
  30. package/src/executors/build/executor.d.ts +0 -34
  31. package/src/executors/build/executor.js +0 -51
  32. package/src/executors/build/executor.js.map +0 -1
  33. package/src/executors/build/get-config.d.ts +0 -40
  34. package/src/executors/build/get-config.js +0 -45
  35. package/src/executors/build/get-config.js.map +0 -1
  36. package/src/executors/build/hasher.js.map +0 -1
  37. package/src/executors/build/schema.d.ts +0 -1
  38. package/src/executors/build/schema.json +0 -9
  39. package/src/index.d.ts +0 -1
  40. package/src/index.js +0 -5
  41. package/src/index.js.map +0 -1
  42. /package/src/executors/{build → tsup}/hasher.d.ts +0 -0
  43. /package/src/executors/{build → tsup}/hasher.js +0 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,70 @@
1
+ ## [1.0.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.0.0...workspace-tools-v1.0.1) (2023-11-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **git-tools:** Updated default README template files used by readme CLI ([77c7c59](https://github.com/storm-software/storm-ops/commit/77c7c5936b614f7a5d3072254ff8065e70ad4d25))
7
+
8
+ # [1.0.0](https://github.com/storm-software/storm-ops/compare/...workspace-tools-v1.0.0) (2023-11-06)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** pin dependencies ([3a245b9](https://github.com/storm-software/storm-ops/commit/3a245b9f6781af520862474da42de105a59a96e1))
14
+ * **deps:** update dependencies-non-major ([8b99e68](https://github.com/storm-software/storm-ops/commit/8b99e68edc98c02d0e59d69d7c82069e60ee0faa))
15
+ * **deps:** update dependency @cspell/dict-en-gb to v4 ([eddf2bf](https://github.com/storm-software/storm-ops/commit/eddf2bff0125b38008a3dccf22928f20767ecd26))
16
+ * **deps:** update dependency p-limit to v5 ([353e00a](https://github.com/storm-software/storm-ops/commit/353e00a00d4de71ca2d828d4a788726da6020ba4))
17
+ * **deps:** update dependency prettier to v3 ([f505213](https://github.com/storm-software/storm-ops/commit/f50521399cb1f54916a803b91587f6241467123a))
18
+ * **deps:** update patch prod dependencies ([651ea23](https://github.com/storm-software/storm-ops/commit/651ea23e5a515e2391a415b5c9b1f194eb7ff8f0))
19
+ * **deps:** update typescript-eslint monorepo to v6 ([c8b086b](https://github.com/storm-software/storm-ops/commit/c8b086b43f25c22c200bf157e88459371391ec38))
20
+ * **git-tools:** Add @semantic-release/github dependency to git-tools ([949bc8d](https://github.com/storm-software/storm-ops/commit/949bc8d953b855e3f2e0a2f7e1faae12da83cdad))
21
+ * **git-tools:** Added config token replacement functionality ([cd48602](https://github.com/storm-software/storm-ops/commit/cd4860283eb249bfe2b2b08a439f729f2f5b89a3))
22
+ * **git-tools:** Added missing semantic-release depenencies ([33a0f5e](https://github.com/storm-software/storm-ops/commit/33a0f5e635a417715db8cbfd78540912e721529b))
23
+ * **git-tools:** Added missing semantic-release plugins ([5350bc2](https://github.com/storm-software/storm-ops/commit/5350bc2bd4c89f9f1dc1f29903dfbd90ffb6f337))
24
+ * **git-tools:** Added semantic-release plugins to root package.json ([55289a7](https://github.com/storm-software/storm-ops/commit/55289a75b08e1603f087dfa1c8b6d594b6386f95))
25
+ * **git-tools:** Convert package to ES module ([b845fda](https://github.com/storm-software/storm-ops/commit/b845fdacbd530a90cb6a596cd9e182f3466e92f0))
26
+ * **git-tools:** Patch semantic-release to use an import instead of require on the plugin ([25dcf81](https://github.com/storm-software/storm-ops/commit/25dcf81794381cb3df24ea944592bf6e729093cf))
27
+ * **git-tools:** Remove unused lodash dependency ([0381059](https://github.com/storm-software/storm-ops/commit/0381059a48e7260648a61178ad52912c69362601))
28
+ * **git-tools:** Resolve issue with CJS vs ESM conflicts ([7afb4c9](https://github.com/storm-software/storm-ops/commit/7afb4c98b22dff7a9b9d9ba5987b212797b7aa29))
29
+ * **git-tools:** Resolved issues with release module imports ([befe2b2](https://github.com/storm-software/storm-ops/commit/befe2b21a3726abd51a032abaed21e8bcaf50c74))
30
+ * **git-tools:** Update method of importing semantic-release ([5ae114e](https://github.com/storm-software/storm-ops/commit/5ae114e0fee775840363ffcf7f2efcb727c2c9ed))
31
+ * **git-tools:** Update require to import in semantic-release patch ([e2ef52c](https://github.com/storm-software/storm-ops/commit/e2ef52cd0920336ad33857954040af7291a66e6d))
32
+ * **semantic-release-plugin:** Add cjs build to release plugin ([3e06494](https://github.com/storm-software/storm-ops/commit/3e0649470fcc68814b550dd933fedb5840425617))
33
+ * **semantic-release-plugin:** Add code for commit analyzer ([2757ca3](https://github.com/storm-software/storm-ops/commit/2757ca3c9805b1cde9cb4bab0361ebee783fae11))
34
+ * **semantic-release-plugin:** Add release note generation to semantic release plugin ([c4e250d](https://github.com/storm-software/storm-ops/commit/c4e250d910daa10aa33549c1c6f508e569930870))
35
+ * **semantic-release-plugin:** Add rootDir to plugin ([674ebdd](https://github.com/storm-software/storm-ops/commit/674ebddf21eaea5958064d4791df1ef676aab393))
36
+ * **semantic-release-plugin:** Change compiler type ([542667d](https://github.com/storm-software/storm-ops/commit/542667db6b58fe9775c92632cf0497a80d74593b))
37
+ * **semantic-release-plugin:** Changed import type for release plugin ([51f4809](https://github.com/storm-software/storm-ops/commit/51f480922809acb5592fcc8b594548d729388a7b))
38
+ * **semantic-release-plugin:** Converted the plugin to CommonJS ([ff870ee](https://github.com/storm-software/storm-ops/commit/ff870ee083c7da4524f50332cf2b47ef27734a3f))
39
+ * **semantic-release-plugin:** Format output to mjs file ([2175391](https://github.com/storm-software/storm-ops/commit/217539176889675d3e47a7dac102a1533a68869a))
40
+ * **semantic-release-plugin:** Invoke commit analzyer manually to prevent ES module issues ([09c66cb](https://github.com/storm-software/storm-ops/commit/09c66cb2c2fc94f59149b93d299cc95346438542))
41
+ * **semantic-release-plugin:** Mark the semantic-release plugin as external ([863ed64](https://github.com/storm-software/storm-ops/commit/863ed640a3960fbed7de71f946db0e2d591c87b8))
42
+ * **semantic-release-plugin:** Patch semantic-release-plugin-decorators to use import instead of require ([8a4b348](https://github.com/storm-software/storm-ops/commit/8a4b34854be0b5b6e7d4bef05942de8ea7ab84b4))
43
+ * **semantic-release-plugin:** Remove code to avoid semantic release built-in plugins ([6a7263b](https://github.com/storm-software/storm-ops/commit/6a7263b1273c0233ccdb79b3c3c06a9059375e5d))
44
+ * **semantic-release-plugin:** Remove third party code from bundle ([5d0d464](https://github.com/storm-software/storm-ops/commit/5d0d464e75d1fdd47e8db9f471ef8655a6b800e5))
45
+ * **semantic-release-plugin:** Removed dependancy on commit analyzer ([4796955](https://github.com/storm-software/storm-ops/commit/479695525e578ead9ada3fc79b2f46edfb0b667d))
46
+ * **semantic-release-plugin:** Resolve imports to support ES modules ([91cdf56](https://github.com/storm-software/storm-ops/commit/91cdf569e0e2237bbc0cb2e81446c3b2578a2e27))
47
+ * **semantic-release-plugin:** Resolve issue with main path extension in package.json ([b2aa62b](https://github.com/storm-software/storm-ops/commit/b2aa62be19ed31f64f6b1c483f0dd480ce73c1de))
48
+ * **semantic-release-plugin:** Resolve missing path module ([34409df](https://github.com/storm-software/storm-ops/commit/34409df07f095e6b11d80f570d03dea3bf859a86))
49
+ * **semantic-release-plugin:** Resolve path import issue ([c7769a1](https://github.com/storm-software/storm-ops/commit/c7769a123fbb48988c58047fa4832563b7946dad))
50
+ * **semantic-release-plugin:** Unbundle sematic release plugin ([7910e43](https://github.com/storm-software/storm-ops/commit/7910e43b14a9f048ad4979cdc8819589adbc1b3a))
51
+ * **semantic-release-plugin:** Update extension on main file to be mjs ([8c6e389](https://github.com/storm-software/storm-ops/commit/8c6e389bac21008b2cb4289b47f345ec52b2c204))
52
+ * **semantic-release-plugin:** Update the package.json index file path ([1da1cce](https://github.com/storm-software/storm-ops/commit/1da1cce9d135826636ed7af371e01db329bf1cc9))
53
+ * **storm-ops:** Added back husky hooks and removed config from package.json ([f1b0b85](https://github.com/storm-software/storm-ops/commit/f1b0b85af21c22051a9f26c8d987c4370c60ca76))
54
+ * **storm-ops:** Patch semantic release to use old config import ([18e27d6](https://github.com/storm-software/storm-ops/commit/18e27d6f5038475e28a83efbfdb0438fac3acda2))
55
+ * **storm-ops:** Remove unused workspace config from package.json ([0651468](https://github.com/storm-software/storm-ops/commit/0651468547eab92f29ea0f74152752eb700af0cb))
56
+ * **storm-ops:** Resolved issues with build/CI ([fc81a8f](https://github.com/storm-software/storm-ops/commit/fc81a8f527d7b0a069818243f955d05062a4efac))
57
+ * **storm-ops:** Resolved issues with pnpm lockfile ([563238c](https://github.com/storm-software/storm-ops/commit/563238cad00bc4042512438aee4072a084cfce99))
58
+ * **storm-ops:** Update linting tools, and scripts, to use ES modules ([59cb4a1](https://github.com/storm-software/storm-ops/commit/59cb4a18772bbe85a8d88aa356c37b799ce0d11f))
59
+ * **storm-ops:** Update lockfile for monorepo ([fc39b4a](https://github.com/storm-software/storm-ops/commit/fc39b4a32e199550eddf85360728e9253d210fa7))
60
+ * **storm-ops:** Update workspace package.json file with private field set to false ([2045f27](https://github.com/storm-software/storm-ops/commit/2045f2753e90828747d155903dc5071864e893aa))
61
+ * **workspace-tools:** Resolved issue with invalid include path ([e1a29fd](https://github.com/storm-software/storm-ops/commit/e1a29fd4c0688af43b1f59bca19be087534d7c3b))
62
+
63
+
64
+ ### Features
65
+
66
+ * **create-storm-workspace:** Initial check-in for storm-ops monorepo ([ecb9822](https://github.com/storm-software/storm-ops/commit/ecb9822741fd989c3ce68fd7d07547e8b925cd9d))
67
+ * **git-tools:** Move the semantic-release-plugin into the git-tools package ([663e7ca](https://github.com/storm-software/storm-ops/commit/663e7ca6f51bf141b698a6448f88471278a2c77f))
68
+ * **semantic-release-plugin:** Resolve issues with plugin so release executes ([b7164b5](https://github.com/storm-software/storm-ops/commit/b7164b5b5b077da44a40141ade245ddd26ae54ee))
69
+ * **semantic-release-plugin:** Split out the semantic release plugin into it's own project ([317e52c](https://github.com/storm-software/storm-ops/commit/317e52ca4278855a87a5d1f8b52faab610a35ba8))
70
+ * **workspace-tools:** Added initial code for tsup build executor ([b3d08b6](https://github.com/storm-software/storm-ops/commit/b3d08b6ae781436ae941669047bbbb62a95cc709))
package/README.md CHANGED
@@ -9,15 +9,16 @@
9
9
  <a href="https://stormsoftware.org" target="_blank">Website</a> | <a href="https://stormsoftware.org/contact" target="_blank">Contact</a> | <a href="https://github.com/storm-software/stormstack" target="_blank">Repository</a> | <a href="https://stormstack.github.io/stormstack/" target="_blank">Documentation</a> | <a href="https://github.com/storm-software/stormstack/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a> | <a href="https://github.com/storm-software/stormstack/issues/new?assignees=&labels=enhancement&template=feature-request.yml&title=Feature Request%3A+">Request a Feature</a> | <a href="https://github.com/storm-software/stormstack/issues/new?assignees=&labels=documentation&template=documentation.yml&title=Documentation Request%3A+">Request Documentation</a> | <a href="https://github.com/storm-software/stormstack/discussions">Ask a Question</a>
10
10
  </div>
11
11
 
12
- <br />
13
- The <b>⚡Storm-Ops</b> monorepo contains CLI utility applications, tools, and various libraries used to create modern, scalable web applications.
14
- <br />
15
- Storm workspaces are built using <a href="https://nx.dev/" target="_blank">Nx</a>, a set of extensible dev tools for monorepos, which helps you develop like Google, Facebook, and Microsoft. Building on top of Nx, the Open System provides a set of tools and patterns that help you scale your monorepo to many teams while keeping the codebase maintainable.
12
+ <br />
13
+ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages include CLI utility applications, tools, and various libraries used to create modern, scalable web applications.
14
+ <br />
15
+
16
+ <h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
16
17
 
17
- <h4 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer<br /><br /></h4>
18
+ [![Version](https://img.shields.io/badge/version-1.0.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
19
+ [![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 docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&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)
18
20
 
19
- [![Version](https://img.shields.io/badge/version-0.0.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
20
- [![Nx](https://img.shields.io/badge/Nx-14.4.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-13.0.5-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![codecov.io](https://img.shields.io/codecov/c/github/commitizen/cz-cli.svg?style=for-the-badge&color=1fb2a6)](https://codecov.io/github/commitizen/cz-cli?branch=master)&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 docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&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)
21
+ <h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ - 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 availible 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.</h3><br />
21
22
 
22
23
 
23
24
  <!-- markdownlint-restore -->
@@ -47,6 +48,10 @@ Run `nx test workspace-tools` to execute the unit tests via [Jest](https://jestj
47
48
  <!-- markdownlint-disable -->
48
49
 
49
50
 
51
+ ## Storm Workspaces
52
+
53
+ Storm workspaces are built using <a href="https://nx.dev/" target="_blank">Nx</a>, a set of extensible dev tools for monorepos, which helps you develop like Google, Facebook, and Microsoft. Building on top of Nx, the Open System provides a set of tools and patterns that help you scale your monorepo to many teams while keeping the codebase maintainable.
54
+
50
55
  ## Roadmap
51
56
 
52
57
  See the [open issues](https://github.com/storm-software/stormstack/issues) for a list of proposed features (and known issues).
@@ -59,9 +64,9 @@ See the [open issues](https://github.com/storm-software/stormstack/issues) for a
59
64
 
60
65
  Reach out to the maintainer at one of the following places:
61
66
 
62
- - [Contact](https://stormcloud.dev/contact)
67
+ - [Contact](https://stormsoftware.org/contact)
63
68
  - [GitHub discussions](https://github.com/storm-software/stormstack/discussions)
64
- - <support@stormcloud.dev>
69
+ - <support@stormsoftware.org>
65
70
 
66
71
  ## License
67
72
 
@@ -97,15 +102,18 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
97
102
  <table>
98
103
  <tbody>
99
104
  <tr>
100
- <td align="center"><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/stormstack/commits?author=sullivanpj" title="Code">💻</a> <a href="#tool-sullivanpj" title="Tools">🔧</a> <a href="https://github.com/storm-software/stormstack/commits?author=sullivanpj" title="Documentation">📖</a> <a href="https://github.com/storm-software/stormstack/commits?author=sullivanpj" title="Tests">⚠️</a></td>
101
- <td align="center"><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>
105
+ <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/storm-ops/commits?author=sullivanpj" title="Code">💻</a> <a href="#tool-sullivanpj" title="Tools">🔧</a> <a href="https://github.com/storm-software/storm-ops/commits?author=sullivanpj" title="Documentation">📖</a> <a href="https://github.com/storm-software/storm-ops/commits?author=sullivanpj" title="Tests">⚠️</a></td>
106
+ <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>
107
+ <td align="center" valign="top" width="14.28%"><a href="http://stormsoftware.org"><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>
102
108
  </tr>
103
109
  </tbody>
104
110
  <tfoot>
105
111
  <tr>
106
112
  <td align="center" size="13px" colspan="7">
107
- <a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
108
- </td>
113
+ <img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg">
114
+ <a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
115
+ </img>
116
+ </td>
109
117
  </tr>
110
118
  </tfoot>
111
119
  </table>
@@ -120,14 +128,14 @@ This project follows the [all-contributors](https://github.com/all-contributors/
120
128
  <img src="https://pub-e71cff0f90204755bc910518d63cacf8.r2.dev/logo-opengraph.gif" width="100%"/>
121
129
  </div>
122
130
  <div align="center">
123
- <a href="https://www.patsullivan.org" target="_blank">Website</a> | <a href="https://stormcloud.dev/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/sullivanpj" target="_blank">GitHub</a> | <a href="https://keybase.io/sullivanp" target="_blank">OpenPGP Key</a>
131
+ <a href="https://www.patsullivan.org" target="_blank">Website</a> | <a href="https://stormsoftware.org/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/sullivanpj" target="_blank">GitHub</a> | <a href="https://keybase.io/sullivanp" target="_blank">OpenPGP Key</a>
124
132
  </div>
125
133
 
126
134
  <div align="center">
127
135
  <p><b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D</p>
128
136
  </div>
129
137
 
130
- <h4 align="center">💻 Visit <a href="https://www.patsullivan.org" target="_blank">patsullivan.org</a> to stay up to date with this developer<br /><br /></h4>
138
+ <h3 align="center">💻 Visit <a href="https://www.patsullivan.org" target="_blank">patsullivan.org</a> to stay up to date with this developer</h3><br /><br />
131
139
 
132
140
 
133
141
  <!-- markdownlint-restore -->
package/generators.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "generators": {
3
+ "init": {
4
+ "factory": "./src/generators/init/init#stormInitGenerator",
5
+ "schema": "./src/generators/init/schema.json",
6
+ "description": "Initialize the `@storm-software/workspace-tools` plugin.",
7
+ "aliases": ["ng-add"],
8
+ "hidden": true
9
+ },
3
10
  "preset": {
4
11
  "factory": "./src/generators/preset/generator",
5
12
  "schema": "./src/generators/preset/schema.json",
6
- "description": "preset generator",
13
+ "description": "Storm workspace preset generator",
7
14
  "x-use-standalone-layout": true
8
15
  }
9
16
  }
package/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from "./src/generators/init/init";
2
+ export * from "./src/generators/preset/generator";
3
+ export * from "./src/utils/versions";
package/index.js ADDED
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./src/generators/init/init"), exports);
5
+ tslib_1.__exportStar(require("./src/generators/preset/generator"), exports);
6
+ tslib_1.__exportStar(require("./src/utils/versions"), exports);
7
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/workspace-tools/index.ts"],"names":[],"mappings":";;;AAAA,qEAA2C;AAC3C,4EAAkD;AAClD,+DAAqC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "private": false,
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "keywords": [
@@ -29,15 +29,24 @@
29
29
  "url": "https://stormsoftware.org"
30
30
  },
31
31
  "type": "commonjs",
32
- "main": "./src/index.js",
33
- "typings": "./src/index.d.ts",
32
+ "main": "./index.js",
33
+ "typings": "./index.d.ts",
34
34
  "dependencies": {
35
35
  "@nx/devkit": "17.0.3",
36
36
  "esbuild-plugin-file-path-extensions": "1.0.0",
37
- "fs-extra": "^11.1.1",
38
- "tslib": "2.6.2",
37
+ "tslib": "2.6.2"
38
+ },
39
+ "devDependencies": {
40
+ "tsup": "7.2.0"
41
+ },
42
+ "peerDependencies": {
39
43
  "tsup": "7.2.0"
40
44
  },
45
+ "peerDependenciesMeta": {
46
+ "tsup": {
47
+ "optional": true
48
+ }
49
+ },
41
50
  "publishConfig": {
42
51
  "access": "public"
43
52
  },
@@ -0,0 +1,5 @@
1
+ import { ExecutorContext } from "@nx/devkit";
2
+ import { TsupExecutorSchema } from "./schema";
3
+ export default function runExecutor(options: TsupExecutorSchema, context: ExecutorContext): Promise<{
4
+ success: boolean;
5
+ }>;
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const build_esbuild_options_1 = require("@nx/esbuild/src/executors/esbuild/lib/build-esbuild-options");
5
+ const get_extra_dependencies_1 = require("@nx/esbuild/src/executors/esbuild/lib/get-extra-dependencies");
6
+ const js_1 = require("@nx/js");
7
+ const path_1 = require("path");
8
+ const tsup_1 = require("tsup");
9
+ const apply_workspace_tokens_1 = require("../../utils/apply-workspace-tokens");
10
+ const get_workspace_root_1 = require("../../utils/get-workspace-root");
11
+ const get_config_1 = require("./get-config");
12
+ function runExecutor(options, context) {
13
+ var _a;
14
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
15
+ try {
16
+ console.log("⚡Running build executor on the workspace");
17
+ const workspaceRoot = (0, get_workspace_root_1.getWorkspaceRoot)();
18
+ const projectRoot = context.projectsConfigurations[context.projectName].root;
19
+ const sourceRoot = context.projectsConfigurations[context.projectName].sourceRoot;
20
+ const outputPath = (0, apply_workspace_tokens_1.applyWorkspaceTokens)(options.outputPath
21
+ ? options.outputPath
22
+ : (0, path_1.join)(workspaceRoot, "dist", projectRoot), context);
23
+ const main = (0, apply_workspace_tokens_1.applyWorkspaceTokens)(options.main
24
+ ? options.main
25
+ : (0, path_1.join)(sourceRoot, "**/*@(.js|.jsx|.ts|.tsx)"), context);
26
+ const assets = Array.from(options.assets);
27
+ assets.push({
28
+ glob: (0, path_1.join)(sourceRoot, "package.json"),
29
+ input: sourceRoot,
30
+ output: "."
31
+ });
32
+ assets.push({
33
+ glob: (0, path_1.join)(sourceRoot, "README.md"),
34
+ input: sourceRoot,
35
+ output: outputPath
36
+ });
37
+ assets.push({
38
+ glob: "",
39
+ input: "LICENSE",
40
+ output: "."
41
+ });
42
+ assets.push({
43
+ glob: "",
44
+ input: "assets/logo-light.png",
45
+ output: "."
46
+ });
47
+ assets.push({
48
+ glob: "",
49
+ input: "assets/logo-dark.png",
50
+ output: "."
51
+ });
52
+ const result = yield (0, js_1.copyAssets)({ assets, watch: options.watch, outputPath }, context);
53
+ if (!result.success) {
54
+ throw Error("The Build process failed trying to copy assets");
55
+ }
56
+ options.external = options.external || [];
57
+ const externalDependencies = options.external.reduce((acc, name) => {
58
+ const externalNode = context.projectGraph.externalNodes[`npm:${name}`];
59
+ if (externalNode) {
60
+ acc.push({
61
+ name,
62
+ outputs: [],
63
+ node: externalNode
64
+ });
65
+ }
66
+ return acc;
67
+ }, []);
68
+ const thirdPartyDependencies = (0, get_extra_dependencies_1.getExtraDependencies)(context.projectName, context.projectGraph);
69
+ for (const tpd of thirdPartyDependencies) {
70
+ options.external.push(tpd.node.data.packageName);
71
+ externalDependencies.push(tpd);
72
+ }
73
+ const cpjOptions = Object.assign(Object.assign({}, options), { generateLockfile: true, outputFileExtensionForCjs: (0, build_esbuild_options_1.getOutExtension)("cjs", Object.assign(Object.assign({ external: [] }, options), { singleEntry: ((_a = options.additionalEntryPoints) === null || _a === void 0 ? void 0 : _a.length) === 0, thirdParty: true, assets, userDefinedBuildOptions: {} })), excludeLibsInPackageJson: true, updateBuildableProjectDepsInPackageJson: externalDependencies.length > 0 });
74
+ // If we're bundling third-party packages, then any extra deps from external should be the only deps in package.json
75
+ if (externalDependencies.length > 0) {
76
+ cpjOptions.overrideDependencies = externalDependencies;
77
+ }
78
+ else {
79
+ cpjOptions.extraDependencies = externalDependencies;
80
+ }
81
+ const packageJsonResult = yield (0, js_1.copyPackageJson)(cpjOptions, context);
82
+ if (!packageJsonResult.success) {
83
+ throw Error("The Build process failed trying to copy package.json");
84
+ }
85
+ const config = (0, get_config_1.getConfig)(Object.assign(Object.assign({}, options), { main, outputPath }));
86
+ if (typeof config === "function") {
87
+ yield build(yield Promise.resolve(config({})));
88
+ }
89
+ else {
90
+ yield build(config);
91
+ }
92
+ console.log("⚡The Build process has completed successfully");
93
+ return {
94
+ success: true
95
+ };
96
+ }
97
+ catch (e) {
98
+ console.error(e);
99
+ return {
100
+ success: false
101
+ };
102
+ }
103
+ });
104
+ }
105
+ exports.default = runExecutor;
106
+ const build = (options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
107
+ if (Array.isArray(options)) {
108
+ yield Promise.all(options.map(buildOptions => (0, tsup_1.build)(buildOptions)));
109
+ }
110
+ else {
111
+ yield (0, tsup_1.build)(options);
112
+ }
113
+ });
114
+ //# sourceMappingURL=executor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/workspace-tools/src/executors/tsup/executor.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,7 @@
1
+ import { Options } from "tsup";
2
+ import { TsupExecutorSchema } from "./schema";
3
+ type Entry = string | string[] | Record<string, string>;
4
+ export declare function modernConfig(entry: Entry, outDir: string, tsConfig?: string, minify?: boolean, bundle?: boolean, platform?: string, clean?: boolean, options?: Options): Options;
5
+ export declare function legacyConfig(entry: Entry, outDir: string, tsConfig?: string, minify?: boolean, bundle?: boolean, platform?: string, clean?: boolean, options?: Options): Options;
6
+ export declare function getConfig({ outputPath, tsConfig, minify, bundle, platform, clean, options, main, additionalEntryPoints }: TsupExecutorSchema): Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
7
+ export {};
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getConfig = exports.legacyConfig = exports.modernConfig = void 0;
4
+ const esbuild_plugin_file_path_extensions_1 = require("esbuild-plugin-file-path-extensions");
5
+ const tsup_1 = require("tsup");
6
+ function modernConfig(entry, outDir, tsConfig = "tsconfig.lib.json", minify = true, bundle = true, platform = "node", clean = true, options = {}) {
7
+ return Object.assign(Object.assign({}, options), { entry, splitting: true, format: ["cjs", "esm"], target: ["chrome91", "firefox90", "edge91", "safari15", "ios15", "opera77"], tsconfig: tsConfig, outDir,
8
+ minify,
9
+ bundle,
10
+ platform, dts: true, sourcemap: true, clean, esbuildPlugins: [(0, esbuild_plugin_file_path_extensions_1.esbuildPluginFilePathExtensions)({ esmExtension: "js" })] });
11
+ }
12
+ exports.modernConfig = modernConfig;
13
+ function legacyConfig(entry, outDir, tsConfig = "tsconfig.lib.json", minify = true, bundle = true, platform = "node", clean = true, options = {}) {
14
+ return Object.assign(Object.assign({}, options), { entry, splitting: true, format: ["cjs", "esm"], target: ["es2020", "node16"], tsconfig: tsConfig, outDir,
15
+ minify,
16
+ bundle,
17
+ platform, dts: true, sourcemap: true, clean, esbuildPlugins: [(0, esbuild_plugin_file_path_extensions_1.esbuildPluginFilePathExtensions)({ esmExtension: "js" })] });
18
+ }
19
+ exports.legacyConfig = legacyConfig;
20
+ function getConfig({ outputPath, tsConfig, minify, bundle, platform, clean, options, main, additionalEntryPoints }) {
21
+ const entry = [main, ...(additionalEntryPoints !== null && additionalEntryPoints !== void 0 ? additionalEntryPoints : [])];
22
+ return (0, tsup_1.defineConfig)([
23
+ modernConfig(entry, outputPath, tsConfig, minify, bundle, platform, clean, options),
24
+ legacyConfig(entry, outputPath, tsConfig, minify, bundle, platform, clean, options)
25
+ ]);
26
+ }
27
+ exports.getConfig = getConfig;
28
+ //# sourceMappingURL=get-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-config.js","sourceRoot":"","sources":["../../../../../../packages/workspace-tools/src/executors/tsup/get-config.ts"],"names":[],"mappings":";;;AAAA,6FAAsF;AACtF,+BAA6C;AAK7C,SAAgB,YAAY,CAC1B,KAAY,EACZ,MAAc,EACd,QAAQ,GAAG,mBAAmB,EAC9B,MAAM,GAAG,IAAI,EACb,MAAM,GAAG,IAAI,EACb,QAAQ,GAAG,MAAM,EACjB,KAAK,GAAG,IAAI,EACZ,UAAmB,EAAE;IAErB,OAAO,gCACF,OAAO,KACV,KAAK,EACL,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EACtB,MAAM,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,CAAC,EAC3E,QAAQ,EAAE,QAAQ,EAClB,MAAM;QACN,MAAM;QACN,MAAM;QACN,QAAQ,EACR,GAAG,EAAE,IAAI,EACT,SAAS,EAAE,IAAI,EACf,KAAK,EACL,cAAc,EAAE,CAAC,IAAA,qEAA+B,EAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,GAC/D,CAAC;AACf,CAAC;AA1BD,oCA0BC;AAED,SAAgB,YAAY,CAC1B,KAAY,EACZ,MAAc,EACd,QAAQ,GAAG,mBAAmB,EAC9B,MAAM,GAAG,IAAI,EACb,MAAM,GAAG,IAAI,EACb,QAAQ,GAAG,MAAM,EACjB,KAAK,GAAG,IAAI,EACZ,UAAmB,EAAE;IAErB,OAAO,gCACF,OAAO,KACV,KAAK,EACL,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EACtB,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAC5B,QAAQ,EAAE,QAAQ,EAClB,MAAM;QACN,MAAM;QACN,MAAM;QACN,QAAQ,EACR,GAAG,EAAE,IAAI,EACT,SAAS,EAAE,IAAI,EACf,KAAK,EACL,cAAc,EAAE,CAAC,IAAA,qEAA+B,EAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,GAC/D,CAAC;AACf,CAAC;AA1BD,oCA0BC;AAED,SAAgB,SAAS,CAAC,EACxB,UAAU,EACV,QAAQ,EACR,MAAM,EACN,MAAM,EACN,QAAQ,EACR,KAAK,EACL,OAAO,EACP,IAAI,EACJ,qBAAqB,EACF;IACnB,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,qBAAqB,aAArB,qBAAqB,cAArB,qBAAqB,GAAI,EAAE,CAAC,CAAC,CAAC;IAEvD,OAAO,IAAA,mBAAY,EAAC;QAClB,YAAY,CACV,KAAK,EACL,UAAU,EACV,QAAQ,EACR,MAAM,EACN,MAAM,EACN,QAAQ,EACR,KAAK,EACL,OAAO,CACR;QACD,YAAY,CACV,KAAK,EACL,UAAU,EACV,QAAQ,EACR,MAAM,EACN,MAAM,EACN,QAAQ,EACR,KAAK,EACL,OAAO,CACR;KACF,CAAC,CAAC;AACL,CAAC;AAnCD,8BAmCC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasher.js","sourceRoot":"","sources":["../../../../../../packages/workspace-tools/src/executors/tsup/hasher.ts"],"names":[],"mappings":";;;;AAEA;;;;GAIG;AACI,MAAM,WAAW,GAAiB,CAAO,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/D,OAAO,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;AAC1D,CAAC,CAAA,CAAC;AAFW,QAAA,WAAW,eAEtB;AAEF,kBAAe,mBAAW,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { EsBuildExecutorOptions } from "@nx/esbuild/src/executors/esbuild/schema.d.ts";
2
+ import { Options } from "tsup";
3
+
4
+ export type TsupExecutorSchema = Omit<
5
+ EsBuildExecutorOptions,
6
+ | "outputFileName"
7
+ | "metafile"
8
+ | "generatePackageJson"
9
+ | "sourcemap"
10
+ | "format"
11
+ | "target"
12
+ | "thirdParty"
13
+ | "skipTypeCheck"
14
+ | "esbuildOptions"
15
+ | "esbuildConfig"
16
+ > & {
17
+ options: Options;
18
+ clean: boolean;
19
+ };
@@ -0,0 +1,127 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "version": 2,
4
+ "title": "Build executor",
5
+ "description": "",
6
+ "type": "object",
7
+ "properties": {
8
+ "properties": {
9
+ "main": {
10
+ "type": "string",
11
+ "description": "The path to the entry file, relative to project.",
12
+ "alias": "entryFile",
13
+ "x-completion-type": "file",
14
+ "x-completion-glob": "**/*@(.js|.ts)",
15
+ "x-priority": "important",
16
+ "default": "{sourceRoot}/**/*@(.js|.jsx|.ts|.tsx)"
17
+ },
18
+ "outputPath": {
19
+ "type": "string",
20
+ "description": "The output path of the generated files.",
21
+ "x-completion-type": "directory",
22
+ "x-priority": "important",
23
+ "default": "dist/{projectRoot}"
24
+ },
25
+ "tsConfig": {
26
+ "type": "string",
27
+ "description": "The path to tsconfig file.",
28
+ "x-completion-type": "file",
29
+ "x-completion-glob": "tsconfig.*.json",
30
+ "x-priority": "important",
31
+ "default": "tsconfig.lib.json"
32
+ },
33
+ "additionalEntryPoints": {
34
+ "type": "array",
35
+ "description": "List of additional entry points.",
36
+ "items": {
37
+ "type": "string"
38
+ },
39
+ "default": []
40
+ },
41
+ "external": {
42
+ "type": "array",
43
+ "description": "Mark one or more module as external. Can use * wildcards, such as '*.png'.",
44
+ "items": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ "bundle": {
49
+ "type": "boolean",
50
+ "description": "Whether to bundle the main entry point and additional entry points. Set to false to keep individual output files.",
51
+ "default": true
52
+ },
53
+ "watch": {
54
+ "type": "boolean",
55
+ "description": "Enable re-building when files change.",
56
+ "default": false
57
+ },
58
+ "assets": {
59
+ "type": "array",
60
+ "description": "List of static assets.",
61
+ "default": [],
62
+ "items": {
63
+ "$ref": "#/definitions/assetPattern"
64
+ }
65
+ },
66
+ "clean": {
67
+ "type": "boolean",
68
+ "description": "Remove previous output before build.",
69
+ "alias": "deleteOutputPath",
70
+ "default": true
71
+ },
72
+ "minify": {
73
+ "type": "boolean",
74
+ "description": "Minifies outputs.",
75
+ "default": true
76
+ },
77
+ "platform": {
78
+ "type": "string",
79
+ "description": "Platform target for outputs.",
80
+ "enum": ["browser", "node", "neutral"],
81
+ "default": "node"
82
+ },
83
+ "options": {
84
+ "type": "object",
85
+ "description": "Additional options to pass to tsup. See https://paka.dev/npm/tsup@7.2.0/api#d35d54aca71eb26e.",
86
+ "additionalProperties": true,
87
+ "x-priority": "important"
88
+ }
89
+ },
90
+ "required": ["tsConfig", "main"],
91
+ "definitions": {
92
+ "assetPattern": {
93
+ "oneOf": [
94
+ {
95
+ "type": "object",
96
+ "properties": {
97
+ "glob": {
98
+ "type": "string",
99
+ "description": "The pattern to match."
100
+ },
101
+ "input": {
102
+ "type": "string",
103
+ "description": "The input directory path in which to apply `glob`. Defaults to the project root."
104
+ },
105
+ "output": {
106
+ "type": "string",
107
+ "description": "Relative path within the output folder."
108
+ },
109
+ "ignore": {
110
+ "description": "An array of globs to ignore.",
111
+ "type": "array",
112
+ "items": {
113
+ "type": "string"
114
+ }
115
+ }
116
+ },
117
+ "additionalProperties": false,
118
+ "required": ["glob", "input", "output"]
119
+ },
120
+ {
121
+ "type": "string"
122
+ }
123
+ ]
124
+ }
125
+ }
126
+ }
127
+ }
@@ -0,0 +1,4 @@
1
+ import { Tree } from "@nx/devkit";
2
+ import { Schema } from "./schema";
3
+ export declare function stormInitGenerator(tree: Tree, schema: Schema): Promise<import("@nx/devkit").GeneratorCallback>;
4
+ export default stormInitGenerator;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stormInitGenerator = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const devkit_1 = require("@nx/devkit");
6
+ const versions_1 = require("../../utils/versions");
7
+ function stormInitGenerator(tree, schema) {
8
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
9
+ const task = (0, devkit_1.addDependenciesToPackageJson)(tree, {
10
+ "nx": versions_1.nxVersion,
11
+ "@nx/workspace": versions_1.nxVersion,
12
+ "tsup": versions_1.tsupVersion,
13
+ "prettier": versions_1.prettierVersion,
14
+ "prettier-plugin-packagejson": versions_1.prettierPackageJsonVersion,
15
+ "prettier-plugin-prisma": versions_1.prettierPrismaVersion,
16
+ "@swc/cli": versions_1.swcCliVersion,
17
+ "@swc/core": versions_1.swcCoreVersion,
18
+ "@swc/helpers": versions_1.swcHelpersVersion,
19
+ "@swc-node/register": versions_1.swcNodeVersion,
20
+ "tslib": versions_1.tsLibVersion,
21
+ "@types/node": versions_1.typesNodeVersion,
22
+ "verdaccio": versions_1.verdaccioVersion,
23
+ "typescript": versions_1.typescriptVersion,
24
+ "eslint": versions_1.eslintVersion,
25
+ "lint-staged": versions_1.lintStagedVersion,
26
+ "semantic-release": versions_1.semanticReleaseVersion
27
+ }, {});
28
+ if (!schema.skipFormat) {
29
+ yield (0, devkit_1.formatFiles)(tree);
30
+ }
31
+ return task;
32
+ });
33
+ }
34
+ exports.stormInitGenerator = stormInitGenerator;
35
+ exports.default = stormInitGenerator;
36
+ //# sourceMappingURL=init.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../packages/workspace-tools/src/generators/init/init.ts"],"names":[],"mappings":";;;;AAAA,uCAA6E;AAC7E,mDAiB8B;AAG9B,SAAsB,kBAAkB,CAAC,IAAU,EAAE,MAAc;;QACjE,MAAM,IAAI,GAAG,IAAA,qCAA4B,EACvC,IAAI,EACJ;YACE,IAAI,EAAE,oBAAS;YACf,eAAe,EAAE,oBAAS;YAC1B,MAAM,EAAE,sBAAW;YACnB,UAAU,EAAE,0BAAe;YAC3B,6BAA6B,EAAE,qCAA0B;YACzD,wBAAwB,EAAE,gCAAqB;YAC/C,UAAU,EAAE,wBAAa;YACzB,WAAW,EAAE,yBAAc;YAC3B,cAAc,EAAE,4BAAiB;YACjC,oBAAoB,EAAE,yBAAc;YACpC,OAAO,EAAE,uBAAY;YACrB,aAAa,EAAE,2BAAgB;YAC/B,WAAW,EAAE,2BAAgB;YAC7B,YAAY,EAAE,4BAAiB;YAC/B,QAAQ,EAAE,wBAAa;YACvB,aAAa,EAAE,4BAAiB;YAChC,kBAAkB,EAAE,iCAAsB;SAC3C,EACD,EAAE,CACH,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;YACtB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CAAA;AA9BD,gDA8BC;AAED,kBAAe,kBAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export interface Schema {
2
+ skipFormat?: boolean;
3
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "StormWorkspaceInit",
4
+ "cli": "nx",
5
+ "title": "Init Storm Workspace Plugin",
6
+ "description": "Init Storm Workspace Plugin.",
7
+ "type": "object",
8
+ "properties": {
9
+ "skipFormat": {
10
+ "description": "Skip formatting files.",
11
+ "type": "boolean",
12
+ "default": false
13
+ }
14
+ },
15
+ "required": []
16
+ }
@@ -17,12 +17,12 @@ SENTRY_PROPERTIES="apps/web/shell"
17
17
  DEFAULT_LOCALE="en_US"
18
18
  DEFAULT_TIMEZONE="America/New_York"
19
19
 
20
- CI_REPO_OWNER="sullivanpj"
21
- CI_REPO_WORKER="🤖 Storm Bot"
22
- CI_REPO_NAME="<%= name %>"
23
- CI_REPO_URL="https://github.com/storm-software/<%= name %>"
24
- CI_BRANCH="main"
25
- CI_PRE_MAJOR=true
20
+ STORM_REPO_OWNER="sullivanpj"
21
+ STORM_REPO_WORKER="🤖 Storm Bot"
22
+ STORM_REPO_NAME="<%= name %>"
23
+ STORM_REPO_URL="https://github.com/storm-software/<%= name %>"
24
+ STORM_BRANCH="main"
25
+ STORM_PRE_MAJOR=true
26
26
 
27
27
  # OAUTH_GOOGLE_CLIENT_ID=
28
28
  # OAUTH_GOOGLE_CLIENT_SECRET=
@@ -52,7 +52,7 @@ LOG_LEVEL="debug"
52
52
  PNPM_VERSION="8.7.4"
53
53
 
54
54
  DEV_EDITOR_ID="vscode"
55
- DEV_REPO_ROOT="C:\\Development\\<%= name %>"
55
+ STORM_REPO_ROOT="C:\\Development\\<%= name %>"
56
56
 
57
57
  THEME_PRIMARY_COLOR="#1fb2a6"
58
58
  THEME_BACKGROUND_COLOR="#1d232a"
@@ -0,0 +1,2 @@
1
+ import { ExecutorContext, ProjectConfiguration } from "@nx/devkit";
2
+ export declare const applyWorkspaceTokens: (option: string, config: ProjectConfiguration | ExecutorContext) => string;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.applyWorkspaceTokens = void 0;
4
+ const get_workspace_root_1 = require("./get-workspace-root");
5
+ const applyWorkspaceTokens = (option, config) => {
6
+ let result = option;
7
+ if (!result) {
8
+ return result;
9
+ }
10
+ const workspaceRoot = (0, get_workspace_root_1.getWorkspaceRoot)();
11
+ let projectName;
12
+ let projectRoot;
13
+ let sourceRoot;
14
+ if ((config === null || config === void 0 ? void 0 : config.projectsConfigurations) &&
15
+ (config === null || config === void 0 ? void 0 : config.projectName)) {
16
+ const context = config;
17
+ projectName = context.projectName;
18
+ projectRoot = context.projectsConfigurations[projectName].root;
19
+ sourceRoot = context.projectsConfigurations[projectName].sourceRoot;
20
+ }
21
+ else {
22
+ const projectConfig = config;
23
+ projectName = projectConfig.name;
24
+ projectRoot = projectConfig.root;
25
+ sourceRoot = projectConfig.sourceRoot;
26
+ }
27
+ if (result.includes("{projectName}")) {
28
+ result = result.replaceAll("{projectName}", projectName);
29
+ }
30
+ if (result.includes("{projectRoot}")) {
31
+ result = result.replaceAll("{projectRoot}", projectRoot);
32
+ }
33
+ if (result.includes("{sourceRoot}")) {
34
+ result = result.replaceAll("{sourceRoot}", sourceRoot);
35
+ }
36
+ if (result.includes("{workspaceRoot}")) {
37
+ result = result.replaceAll("{workspaceRoot}", workspaceRoot);
38
+ }
39
+ return result;
40
+ };
41
+ exports.applyWorkspaceTokens = applyWorkspaceTokens;
42
+ //# sourceMappingURL=apply-workspace-tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply-workspace-tokens.js","sourceRoot":"","sources":["../../../../../packages/workspace-tools/src/utils/apply-workspace-tokens.ts"],"names":[],"mappings":";;;AACA,6DAAwD;AAEjD,MAAM,oBAAoB,GAAG,CAClC,MAAc,EACd,MAA8C,EACtC,EAAE;IACV,IAAI,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,MAAM,CAAC;KACf;IAED,MAAM,aAAa,GAAG,IAAA,qCAAgB,GAAE,CAAC;IAEzC,IAAI,WAAoB,CAAC;IACzB,IAAI,WAAoB,CAAC;IACzB,IAAI,UAAmB,CAAC;IACxB,IACE,CAAC,MAA0B,aAA1B,MAAM,uBAAN,MAAM,CAAsB,sBAAsB;SAClD,MAA0B,aAA1B,MAAM,uBAAN,MAAM,CAAsB,WAAW,CAAA,EACxC;QACA,MAAM,OAAO,GAAG,MAAyB,CAAC;QAC1C,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;QAClC,WAAW,GAAG,OAAO,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC;QAC/D,UAAU,GAAG,OAAO,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC,UAAU,CAAC;KACrE;SAAM;QACL,MAAM,aAAa,GAAG,MAA8B,CAAC;QACrD,WAAW,GAAG,aAAa,CAAC,IAAI,CAAC;QACjC,WAAW,GAAG,aAAa,CAAC,IAAI,CAAC;QACjC,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC;KACvC;IAED,IAAI,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;QACpC,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;KAC1D;IACD,IAAI,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;QACpC,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;KAC1D;IACD,IAAI,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE;QACnC,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;KACxD;IACD,IAAI,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE;QACtC,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;KAC9D;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AA3CW,QAAA,oBAAoB,wBA2C/B"}
@@ -0,0 +1 @@
1
+ export declare const getWorkspaceRoot: () => string;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getWorkspaceRoot = void 0;
4
+ const find_workspace_root_js_1 = require("nx/src/utils/find-workspace-root.js");
5
+ const getWorkspaceRoot = () => {
6
+ var _a, _b;
7
+ var _c, _d;
8
+ const root = (0, find_workspace_root_js_1.findWorkspaceRoot)(process.cwd());
9
+ (_a = (_c = process.env).STORM_REPO_ROOT) !== null && _a !== void 0 ? _a : (_c.STORM_REPO_ROOT = root === null || root === void 0 ? void 0 : root.dir);
10
+ (_b = (_d = process.env).NX_WORKSPACE_ROOT_PATH) !== null && _b !== void 0 ? _b : (_d.NX_WORKSPACE_ROOT_PATH = root === null || root === void 0 ? void 0 : root.dir);
11
+ return root === null || root === void 0 ? void 0 : root.dir;
12
+ };
13
+ exports.getWorkspaceRoot = getWorkspaceRoot;
14
+ //# sourceMappingURL=get-workspace-root.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-workspace-root.js","sourceRoot":"","sources":["../../../../../packages/workspace-tools/src/utils/get-workspace-root.ts"],"names":[],"mappings":";;;AAAA,gFAAwE;AAEjE,MAAM,gBAAgB,GAAG,GAAG,EAAE;;;IACnC,MAAM,IAAI,GAAG,IAAA,0CAAiB,EAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAC9C,YAAA,OAAO,CAAC,GAAG,EAAC,eAAe,uCAAf,eAAe,GAAK,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,GAAG,EAAC;IAC1C,YAAA,OAAO,CAAC,GAAG,EAAC,sBAAsB,uCAAtB,sBAAsB,GAAK,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,GAAG,EAAC;IAEjD,OAAO,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,GAAG,CAAC;AACnB,CAAC,CAAC;AANW,QAAA,gBAAgB,oBAM3B"}
@@ -0,0 +1,17 @@
1
+ export declare const nxVersion: "^17.0.3";
2
+ export declare const tsupVersion = "^7.2.0";
3
+ export declare const prettierVersion = "^3.0.3";
4
+ export declare const prettierPackageJsonVersion = "2.4.6";
5
+ export declare const prettierPrismaVersion = "5.0.0";
6
+ export declare const prettierVersion = "^3.0.3";
7
+ export declare const swcCliVersion = "~0.1.62";
8
+ export declare const swcCoreVersion = "~1.3.95";
9
+ export declare const swcHelpersVersion = "~0.5.3";
10
+ export declare const swcNodeVersion = "1.6.8";
11
+ export declare const tsLibVersion = "2.6.2";
12
+ export declare const typesNodeVersion = "20.8.10";
13
+ export declare const verdaccioVersion = "5.27.0";
14
+ export declare const typescriptVersion = "~5.2.2";
15
+ export declare const eslintVersion = "~8.53.0";
16
+ export declare const lintStagedVersion = "15.0.2";
17
+ export declare const semanticReleaseVersion = "22.0.7";
@@ -1,34 +0,0 @@
1
- import { BuildExecutorSchema } from "./schema";
2
- export default function runExecutor(options: BuildExecutorSchema): Promise<{
3
- success: boolean;
4
- }>;
5
- /**
6
- * @param {Object} opts - Options for building configurations.
7
- * @param {string[]} opts.entry - The entry array.
8
- * @returns {import('tsup').Options}
9
- */
10
- export declare function modernConfig(opts: any): {
11
- entry: any;
12
- format: string[];
13
- target: string[];
14
- outDir: string;
15
- dts: boolean;
16
- sourcemap: boolean;
17
- clean: boolean;
18
- esbuildPlugins: import("esbuild").Plugin[];
19
- };
20
- /**
21
- * @param {Object} opts - Options for building configurations.
22
- * @param {string[]} opts.entry - The entry array.
23
- * @returns {import('tsup').Options}
24
- */
25
- export declare function legacyConfig(opts: any): {
26
- entry: any;
27
- format: string[];
28
- target: string[];
29
- outDir: string;
30
- dts: boolean;
31
- sourcemap: boolean;
32
- clean: boolean;
33
- esbuildPlugins: import("esbuild").Plugin[];
34
- };
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.legacyConfig = exports.modernConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- function runExecutor(options) {
6
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
7
- console.log("Executor ran for Build", options);
8
- return {
9
- success: true
10
- };
11
- });
12
- }
13
- exports.default = runExecutor;
14
- const esbuild_plugin_file_path_extensions_1 = require("esbuild-plugin-file-path-extensions");
15
- /**
16
- * @param {Object} opts - Options for building configurations.
17
- * @param {string[]} opts.entry - The entry array.
18
- * @returns {import('tsup').Options}
19
- */
20
- function modernConfig(opts) {
21
- return {
22
- entry: opts.entry,
23
- format: ["cjs", "esm"],
24
- target: ["chrome91", "firefox90", "edge91", "safari15", "ios15", "opera77"],
25
- outDir: "build/modern",
26
- dts: true,
27
- sourcemap: true,
28
- clean: true,
29
- esbuildPlugins: [(0, esbuild_plugin_file_path_extensions_1.esbuildPluginFilePathExtensions)({ esmExtension: "js" })]
30
- };
31
- }
32
- exports.modernConfig = modernConfig;
33
- /**
34
- * @param {Object} opts - Options for building configurations.
35
- * @param {string[]} opts.entry - The entry array.
36
- * @returns {import('tsup').Options}
37
- */
38
- function legacyConfig(opts) {
39
- return {
40
- entry: opts.entry,
41
- format: ["cjs", "esm"],
42
- target: ["es2020", "node16"],
43
- outDir: "build/legacy",
44
- dts: true,
45
- sourcemap: true,
46
- clean: true,
47
- esbuildPlugins: [(0, esbuild_plugin_file_path_extensions_1.esbuildPluginFilePathExtensions)({ esmExtension: "js" })]
48
- };
49
- }
50
- exports.legacyConfig = legacyConfig;
51
- //# sourceMappingURL=executor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/workspace-tools/src/executors/build/executor.ts"],"names":[],"mappings":";;;;AAEA,SAA8B,WAAW,CAAC,OAA4B;;QACpE,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;QAC/C,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;CAAA;AALD,8BAKC;AACD,6FAAsF;AAEtF;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAI;IAC/B,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QACtB,MAAM,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,CAAC;QAC3E,MAAM,EAAE,cAAc;QACtB,GAAG,EAAE,IAAI;QACT,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,IAAI;QACX,cAAc,EAAE,CAAC,IAAA,qEAA+B,EAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;KAC1E,CAAC;AACJ,CAAC;AAXD,oCAWC;AAED;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAI;IAC/B,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QACtB,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAC5B,MAAM,EAAE,cAAc;QACtB,GAAG,EAAE,IAAI;QACT,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,IAAI;QACX,cAAc,EAAE,CAAC,IAAA,qEAA+B,EAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;KAC1E,CAAC;AACJ,CAAC;AAXD,oCAWC"}
@@ -1,40 +0,0 @@
1
- /**
2
- * @param {Object} opts - Options for building configurations.
3
- * @param {string[]} opts.entry - The entry array.
4
- * @returns {import('tsup').Options}
5
- */
6
- export declare function modernConfig(opts: any): {
7
- entry: any;
8
- format: string[];
9
- target: string[];
10
- outDir: string;
11
- dts: boolean;
12
- sourcemap: boolean;
13
- clean: boolean;
14
- esbuildPlugins: import("esbuild").Plugin[];
15
- };
16
- /**
17
- * @param {Object} opts - Options for building configurations.
18
- * @param {string[]} opts.entry - The entry array.
19
- * @returns {import('tsup').Options}
20
- */
21
- export declare function legacyConfig(opts: any): {
22
- entry: any;
23
- format: string[];
24
- target: string[];
25
- outDir: string;
26
- dts: boolean;
27
- sourcemap: boolean;
28
- clean: boolean;
29
- esbuildPlugins: import("esbuild").Plugin[];
30
- };
31
- export declare function getConfig(opts: any): {
32
- entry: any;
33
- format: string[];
34
- target: string[];
35
- outDir: string;
36
- dts: boolean;
37
- sourcemap: boolean;
38
- clean: boolean;
39
- esbuildPlugins: import("esbuild").Plugin[];
40
- }[];
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getConfig = exports.legacyConfig = exports.modernConfig = void 0;
4
- const esbuild_plugin_file_path_extensions_1 = require("esbuild-plugin-file-path-extensions");
5
- /**
6
- * @param {Object} opts - Options for building configurations.
7
- * @param {string[]} opts.entry - The entry array.
8
- * @returns {import('tsup').Options}
9
- */
10
- function modernConfig(opts) {
11
- return {
12
- entry: opts.entry,
13
- format: ["cjs", "esm"],
14
- target: ["chrome91", "firefox90", "edge91", "safari15", "ios15", "opera77"],
15
- outDir: "build/modern",
16
- dts: true,
17
- sourcemap: true,
18
- clean: true,
19
- esbuildPlugins: [(0, esbuild_plugin_file_path_extensions_1.esbuildPluginFilePathExtensions)({ esmExtension: "js" })]
20
- };
21
- }
22
- exports.modernConfig = modernConfig;
23
- /**
24
- * @param {Object} opts - Options for building configurations.
25
- * @param {string[]} opts.entry - The entry array.
26
- * @returns {import('tsup').Options}
27
- */
28
- function legacyConfig(opts) {
29
- return {
30
- entry: opts.entry,
31
- format: ["cjs", "esm"],
32
- target: ["es2020", "node16"],
33
- outDir: "build/legacy",
34
- dts: true,
35
- sourcemap: true,
36
- clean: true,
37
- esbuildPlugins: [(0, esbuild_plugin_file_path_extensions_1.esbuildPluginFilePathExtensions)({ esmExtension: "js" })]
38
- };
39
- }
40
- exports.legacyConfig = legacyConfig;
41
- function getConfig(opts) {
42
- return [modernConfig(opts), legacyConfig(opts)];
43
- }
44
- exports.getConfig = getConfig;
45
- //# sourceMappingURL=get-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-config.js","sourceRoot":"","sources":["../../../../../../packages/workspace-tools/src/executors/build/get-config.ts"],"names":[],"mappings":";;;AAAA,6FAAsF;AAEtF;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAI;IAC/B,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QACtB,MAAM,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,CAAC;QAC3E,MAAM,EAAE,cAAc;QACtB,GAAG,EAAE,IAAI;QACT,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,IAAI;QACX,cAAc,EAAE,CAAC,IAAA,qEAA+B,EAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;KAC1E,CAAC;AACJ,CAAC;AAXD,oCAWC;AAED;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAI;IAC/B,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QACtB,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAC5B,MAAM,EAAE,cAAc;QACtB,GAAG,EAAE,IAAI;QACT,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,IAAI;QACX,cAAc,EAAE,CAAC,IAAA,qEAA+B,EAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;KAC1E,CAAC;AACJ,CAAC;AAXD,oCAWC;AAED,SAAgB,SAAS,CAAC,IAAI;IAC5B,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;AAClD,CAAC;AAFD,8BAEC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"hasher.js","sourceRoot":"","sources":["../../../../../../packages/workspace-tools/src/executors/build/hasher.ts"],"names":[],"mappings":";;;;AAEA;;;;GAIG;AACI,MAAM,WAAW,GAAiB,CAAO,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/D,OAAO,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;AAC1D,CAAC,CAAA,CAAC;AAFW,QAAA,WAAW,eAEtB;AAEF,kBAAe,mBAAW,CAAC"}
@@ -1 +0,0 @@
1
- export interface BuildExecutorSchema {} // eslint-disable-line
@@ -1,9 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "version": 2,
4
- "title": "Build executor",
5
- "description": "",
6
- "type": "object",
7
- "properties": {},
8
- "required": []
9
- }
package/src/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./generators/preset/generator";
package/src/index.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./generators/preset/generator"), exports);
5
- //# sourceMappingURL=index.js.map
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/workspace-tools/src/index.ts"],"names":[],"mappings":";;;AAAA,wEAA8C"}
File without changes
File without changes