@storm-software/workspace-tools 1.0.1 → 1.2.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 (88) hide show
  1. package/CHANGELOG.md +81 -0
  2. package/README.md +15 -10
  3. package/config/nx.json +22 -53
  4. package/generators.json +8 -1
  5. package/index.d.ts +3 -0
  6. package/index.js +7 -0
  7. package/index.js.map +1 -0
  8. package/package.json +14 -5
  9. package/src/executors/tsup/executor.d.ts +5 -0
  10. package/src/executors/tsup/executor.js +114 -0
  11. package/src/executors/tsup/executor.js.map +1 -0
  12. package/src/executors/tsup/get-config.d.ts +7 -0
  13. package/src/executors/tsup/get-config.js +28 -0
  14. package/src/executors/tsup/get-config.js.map +1 -0
  15. package/src/executors/tsup/hasher.js.map +1 -0
  16. package/src/executors/tsup/schema.d.ts +19 -0
  17. package/src/executors/tsup/schema.json +127 -0
  18. package/src/generators/init/init.d.ts +4 -0
  19. package/src/generators/init/init.js +21 -0
  20. package/src/generators/init/init.js.map +1 -0
  21. package/src/generators/init/schema.d.ts +3 -0
  22. package/src/generators/init/schema.json +16 -0
  23. package/src/generators/preset/files/.all-contributorsrc.template +18 -4
  24. package/src/generators/preset/files/.env.template +14 -35
  25. package/src/generators/preset/files/.gitattributes +9 -0
  26. package/src/generators/preset/files/.github/CONTRIBUTING.md.template +1 -1
  27. package/src/generators/preset/files/.github/ISSUE_TEMPLATE/bug-report.yml.template +38 -7
  28. package/src/generators/preset/files/.github/ISSUE_TEMPLATE/documentation.yml.template +12 -12
  29. package/src/generators/preset/files/.github/ISSUE_TEMPLATE/feature-request.yml.template +4 -7
  30. package/src/generators/preset/files/.github/PULL_REQUEST_TEMPLATE.md.template +1 -1
  31. package/src/generators/preset/files/.github/actions/node/action.yaml +11 -12
  32. package/src/generators/preset/files/.github/codecov.yml +1 -1
  33. package/src/generators/preset/files/.github/renovate.json.template +3 -7
  34. package/src/generators/preset/files/.github/workflows/ci.yml.template +91 -0
  35. package/src/generators/preset/files/.github/workflows/codeql.yml +4 -1
  36. package/src/generators/preset/files/.github/workflows/git-guardian.yml +5 -3
  37. package/src/generators/preset/files/.github/workflows/labels.yml +6 -5
  38. package/src/generators/preset/files/.github/workflows/lock.yml +1 -4
  39. package/src/generators/preset/files/.github/workflows/nextjs-bundle-analysis.yml +12 -28
  40. package/src/generators/preset/files/.husky/post-checkout +1 -2
  41. package/src/generators/preset/files/.husky/post-commit +4 -0
  42. package/src/generators/preset/files/.husky/post-merge +1 -2
  43. package/src/generators/preset/files/.husky/pre-commit +1 -2
  44. package/src/generators/preset/files/.husky/pre-push +3 -2
  45. package/src/generators/preset/files/.markdownlint.json +4 -1
  46. package/src/generators/preset/files/.verdaccio/config.yml.template +1 -1
  47. package/src/generators/preset/files/.vscode/extensions.json +1 -1
  48. package/src/generators/preset/files/.vscode/launch.json +3 -3
  49. package/src/generators/preset/files/README.md.template +31 -30
  50. package/src/generators/preset/files/nx.json +98 -0
  51. package/src/generators/preset/files/pnpm-workspace.yaml +2 -0
  52. package/src/generators/preset/files/socket.yaml +20 -0
  53. package/src/generators/preset/files/tsconfig.base.json.template +1 -1
  54. package/src/generators/preset/generator.js +139 -65
  55. package/src/generators/preset/generator.js.map +1 -1
  56. package/src/generators/preset/schema.d.ts +8 -0
  57. package/src/generators/preset/schema.json +86 -2
  58. package/src/utils/apply-workspace-tokens.d.ts +2 -0
  59. package/src/utils/apply-workspace-tokens.js +42 -0
  60. package/src/utils/apply-workspace-tokens.js.map +1 -0
  61. package/src/utils/get-workspace-root.d.ts +1 -0
  62. package/src/utils/get-workspace-root.js +14 -0
  63. package/src/utils/get-workspace-root.js.map +1 -0
  64. package/src/utils/versions.d.ts +20 -0
  65. package/src/executors/build/executor.d.ts +0 -34
  66. package/src/executors/build/executor.js +0 -51
  67. package/src/executors/build/executor.js.map +0 -1
  68. package/src/executors/build/get-config.d.ts +0 -40
  69. package/src/executors/build/get-config.js +0 -45
  70. package/src/executors/build/get-config.js.map +0 -1
  71. package/src/executors/build/hasher.js.map +0 -1
  72. package/src/executors/build/schema.d.ts +0 -1
  73. package/src/executors/build/schema.json +0 -9
  74. package/src/generators/preset/files/.alexignore +0 -4
  75. package/src/generators/preset/files/.alexrc +0 -39
  76. package/src/generators/preset/files/.github/workflows/ci.yml +0 -131
  77. package/src/generators/preset/files/.github/workflows/documentation.yml.template +0 -85
  78. package/src/generators/preset/files/.husky/commit-msg +0 -4
  79. package/src/generators/preset/files/commitlint.config.d.ts +0 -2
  80. package/src/generators/preset/files/commitlint.config.js +0 -3
  81. package/src/generators/preset/files/commitlint.config.js.map +0 -1
  82. package/src/generators/preset/files/src/index.ts.template +0 -1
  83. package/src/index.d.ts +0 -1
  84. package/src/index.js +0 -5
  85. package/src/index.js.map +0 -1
  86. /package/src/executors/{build → tsup}/hasher.d.ts +0 -0
  87. /package/src/executors/{build → tsup}/hasher.js +0 -0
  88. /package/src/generators/preset/files/{.log4brains.yml → .log4brains.yml.template} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,84 @@
1
+ # [1.2.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.1.1...workspace-tools-v1.2.0) (2023-11-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **create-storm-workspace:** Resolved issues with create workspace script options ([b81eaf2](https://github.com/storm-software/storm-ops/commit/b81eaf2c493dd319458f5ad5b375612fb3b8206f))
7
+ * **git-tools:** Added missing GitHub release config and removed failed GitGuardian lines ([4b64698](https://github.com/storm-software/storm-ops/commit/4b646983226fa979c76f8078ffd1cee1d544f1a1))
8
+ * **storm-ops:** Regenerate pnpm lockfile ([6cc4c75](https://github.com/storm-software/storm-ops/commit/6cc4c75486d843327d8e438e34dd08182bb0e052))
9
+
10
+
11
+ ### Features
12
+
13
+ * **workspace-tools:** Added init generator and enhanced preset template files ([c1ac333](https://github.com/storm-software/storm-ops/commit/c1ac33355520a717df93f157f31bb311dd81b7c6))
14
+
15
+ # [1.2.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.1.1...workspace-tools-v1.2.0) (2023-11-06)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **create-storm-workspace:** Resolved issues with create workspace script options ([b81eaf2](https://github.com/storm-software/storm-ops/commit/b81eaf2c493dd319458f5ad5b375612fb3b8206f))
21
+ * **git-tools:** Added missing GitHub release config and removed failed GitGuardian lines ([4b64698](https://github.com/storm-software/storm-ops/commit/4b646983226fa979c76f8078ffd1cee1d544f1a1))
22
+ * **storm-ops:** Regenerate pnpm lockfile ([6cc4c75](https://github.com/storm-software/storm-ops/commit/6cc4c75486d843327d8e438e34dd08182bb0e052))
23
+
24
+
25
+ ### Features
26
+
27
+ * **workspace-tools:** Added init generator and enhanced preset template files ([c1ac333](https://github.com/storm-software/storm-ops/commit/c1ac33355520a717df93f157f31bb311dd81b7c6))
28
+
29
+ # [1.2.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.1.1...workspace-tools-v1.2.0) (2023-11-06)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * **git-tools:** Added missing GitHub release config and removed failed GitGuardian lines ([4b64698](https://github.com/storm-software/storm-ops/commit/4b646983226fa979c76f8078ffd1cee1d544f1a1))
35
+
36
+
37
+ ### Features
38
+
39
+ * **workspace-tools:** Added init generator and enhanced preset template files ([c1ac333](https://github.com/storm-software/storm-ops/commit/c1ac33355520a717df93f157f31bb311dd81b7c6))
40
+
41
+ # [1.2.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.1.1...workspace-tools-v1.2.0) (2023-11-06)
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * **git-tools:** Added missing GitHub release config and removed failed GitGuardian lines ([4b64698](https://github.com/storm-software/storm-ops/commit/4b646983226fa979c76f8078ffd1cee1d544f1a1))
47
+
48
+
49
+ ### Features
50
+
51
+ * **workspace-tools:** Added init generator and enhanced preset template files ([c1ac333](https://github.com/storm-software/storm-ops/commit/c1ac33355520a717df93f157f31bb311dd81b7c6))
52
+
53
+ # [1.2.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.1.1...workspace-tools-v1.2.0) (2023-11-06)
54
+
55
+
56
+ ### Features
57
+
58
+ * **workspace-tools:** Added init generator and enhanced preset template files ([c1ac333](https://github.com/storm-software/storm-ops/commit/c1ac33355520a717df93f157f31bb311dd81b7c6))
59
+
60
+ ## [1.1.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.1.0...workspace-tools-v1.1.1) (2023-11-06)
61
+
62
+
63
+ ### Bug Fixes
64
+
65
+ * **storm-ops:** Add @semantic-release/commit-analyzer dependency back to workspace root ([553dd65](https://github.com/storm-software/storm-ops/commit/553dd6548aba57eada49dce635312b2c4bdd474f))
66
+ * **storm-ops:** Resolved issue with prepare script in workspace root ([4caa35a](https://github.com/storm-software/storm-ops/commit/4caa35a09421e0ac48a0d2eddc27843c4dcff6e7))
67
+
68
+ # [1.1.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.0.1...workspace-tools-v1.1.0) (2023-11-06)
69
+
70
+
71
+ ### Features
72
+
73
+ * **workspace-tools:** Added the init generator and tsup build executor ([e34d64c](https://github.com/storm-software/storm-ops/commit/e34d64c84027d60cb29ca54fa957b5994128b4aa))
74
+
75
+ ## [1.0.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.0.0...workspace-tools-v1.0.1) (2023-11-06)
76
+
77
+
78
+ ### Bug Fixes
79
+
80
+ * **git-tools:** Updated default README template files used by readme CLI ([77c7c59](https://github.com/storm-software/storm-ops/commit/77c7c5936b614f7a5d3072254ff8065e70ad4d25))
81
+
1
82
  # [1.0.0](https://github.com/storm-software/storm-ops/compare/...workspace-tools-v1.0.0) (2023-11-06)
2
83
 
3
84
 
package/README.md CHANGED
@@ -9,14 +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 />
12
+ <br />
13
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
14
  <br />
15
15
 
16
- <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>
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 />
17
+
18
+ [![Version](https://img.shields.io/badge/version-1.2.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)
17
20
 
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-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 />
20
22
 
21
23
 
22
24
  <!-- markdownlint-restore -->
@@ -100,15 +102,18 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
100
102
  <table>
101
103
  <tbody>
102
104
  <tr>
103
- <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>
104
- <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>
105
108
  </tr>
106
109
  </tbody>
107
110
  <tfoot>
108
111
  <tr>
109
112
  <td align="center" size="13px" colspan="7">
110
- <a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
111
- </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>
112
117
  </tr>
113
118
  </tfoot>
114
119
  </table>
@@ -123,14 +128,14 @@ This project follows the [all-contributors](https://github.com/all-contributors/
123
128
  <img src="https://pub-e71cff0f90204755bc910518d63cacf8.r2.dev/logo-opengraph.gif" width="100%"/>
124
129
  </div>
125
130
  <div align="center">
126
- <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>
131
+ <a href="https://www.patsullivan.org" target="_blank">Website</a> | <a href="https://www.patsullivan.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>
127
132
  </div>
128
133
 
129
134
  <div align="center">
130
135
  <p><b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D</p>
131
136
  </div>
132
137
 
133
- <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 />
134
139
 
135
140
 
136
141
  <!-- markdownlint-restore -->
package/config/nx.json CHANGED
@@ -13,7 +13,6 @@
13
13
  "options": {
14
14
  "cacheableOperations": [
15
15
  "build",
16
- "build-types",
17
16
  "lint",
18
17
  "format",
19
18
  "test",
@@ -39,6 +38,9 @@
39
38
  "globalNonBuildAffectingConfig": [
40
39
  "{workspaceRoot}/.log4brains.yml",
41
40
  "{workspaceRoot}/.eslintrc.json",
41
+ "{workspaceRoot}/.all-contributorsrc",
42
+ "{workspaceRoot}/.markdownlint.json",
43
+ "{workspaceRoot}/socket.yaml",
42
44
  "{workspaceRoot}/jest.config.ts"
43
45
  ],
44
46
  "default": ["{projectRoot}/**/*", "sharedGlobals"],
@@ -62,7 +64,7 @@
62
64
  "cache": true,
63
65
  "inputs": ["default", "^production"],
64
66
  "outputs": ["{options.outputPath}"],
65
- "dependsOn": ["build-types", "^build"],
67
+ "dependsOn": ["^build"],
66
68
  "options": {
67
69
  "main": "{projectRoot}/src/index.ts",
68
70
  "outputPath": "dist/{projectRoot}",
@@ -81,15 +83,27 @@
81
83
  ]
82
84
  }
83
85
  },
84
- "test": {
86
+ "lint": {
85
87
  "cache": true,
86
- "executor": "@nx/jest:jest",
88
+ "executor": "@nx/eslint:lint",
89
+ "outputs": ["{options.outputFile}"],
90
+ "options": {
91
+ "lintFilePatterns": [
92
+ "{projectRoot}/**/*.ts",
93
+ "{projectRoot}/package.json"
94
+ ]
95
+ },
87
96
  "inputs": [
88
97
  "default",
89
- "^production",
90
- "{workspaceRoot}/testing/jest.preset.js",
91
- "{workspaceRoot}/jest.preset.js"
92
- ],
98
+ "{workspaceRoot}/.eslintrc.json",
99
+ "{workspaceRoot}/.eslintignore",
100
+ "{workspaceRoot}/eslint.config.js"
101
+ ]
102
+ },
103
+ "test": {
104
+ "cache": true,
105
+ "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
106
+ "executor": "@nx/jest:jest",
93
107
  "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
94
108
  "options": {
95
109
  "jestConfig": "{projectRoot}/jest.config.ts",
@@ -105,15 +119,6 @@
105
119
  "e2e": {
106
120
  "cache": true
107
121
  },
108
- "lint": {
109
- "cache": true,
110
- "executor": "@nx/linter:eslint",
111
- "inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
112
- "outputs": ["{options.outputFile}"],
113
- "options": {
114
- "lintFilePatterns": ["{projectRoot}/**/*.ts"]
115
- }
116
- },
117
122
  "build-storybook": {
118
123
  "cache": true,
119
124
  "inputs": [
@@ -125,41 +130,5 @@
125
130
  ]
126
131
  }
127
132
  },
128
- "generators": {
129
- "@nx/react": {
130
- "application": {
131
- "style": "css",
132
- "linter": "eslint",
133
- "bundler": "webpack",
134
- "unitTestRunner": "jest",
135
- "babel": true
136
- },
137
- "component": {
138
- "style": "css"
139
- },
140
- "library": {
141
- "style": "css",
142
- "linter": "eslint",
143
- "unitTestRunner": "jest"
144
- }
145
- },
146
- "@nx/next": {
147
- "application": {
148
- "style": "css",
149
- "linter": "eslint",
150
- "bundler": "swc",
151
- "unitTestRunner": "jest"
152
- },
153
- "component": {
154
- "style": "css"
155
- },
156
- "library": {
157
- "style": "css",
158
- "linter": "eslint",
159
- "bundler": "swc",
160
- "unitTestRunner": "jest"
161
- }
162
- }
163
- },
164
133
  "plugins": ["@nx/next"]
165
134
  }
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.1",
3
+ "version": "1.2.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
+ };