@storm-software/workspace-tools 1.0.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 (78) hide show
  1. package/README.md +136 -0
  2. package/config/nx.json +165 -0
  3. package/executors.json +10 -0
  4. package/generators.json +10 -0
  5. package/package.json +46 -0
  6. package/src/executors/build/executor.d.ts +34 -0
  7. package/src/executors/build/executor.js +51 -0
  8. package/src/executors/build/executor.js.map +1 -0
  9. package/src/executors/build/get-config.d.ts +40 -0
  10. package/src/executors/build/get-config.js +45 -0
  11. package/src/executors/build/get-config.js.map +1 -0
  12. package/src/executors/build/hasher.d.ts +8 -0
  13. package/src/executors/build/hasher.js +15 -0
  14. package/src/executors/build/hasher.js.map +1 -0
  15. package/src/executors/build/schema.d.ts +1 -0
  16. package/src/executors/build/schema.json +9 -0
  17. package/src/generators/preset/files/.alexignore +4 -0
  18. package/src/generators/preset/files/.alexrc +39 -0
  19. package/src/generators/preset/files/.all-contributorsrc.template +34 -0
  20. package/src/generators/preset/files/.editorconfig +454 -0
  21. package/src/generators/preset/files/.env.template +64 -0
  22. package/src/generators/preset/files/.eslintrc.json +123 -0
  23. package/src/generators/preset/files/.gitattributes +43 -0
  24. package/src/generators/preset/files/.github/.nvmrc +1 -0
  25. package/src/generators/preset/files/.github/CODEOWNERS +1 -0
  26. package/src/generators/preset/files/.github/CODE_OF_CONDUCT.md +125 -0
  27. package/src/generators/preset/files/.github/CONTRIBUTING.md.template +15 -0
  28. package/src/generators/preset/files/.github/ISSUE_TEMPLATE/bug-report.yml.template +71 -0
  29. package/src/generators/preset/files/.github/ISSUE_TEMPLATE/documentation.yml.template +56 -0
  30. package/src/generators/preset/files/.github/ISSUE_TEMPLATE/feature-request.yml.template +63 -0
  31. package/src/generators/preset/files/.github/PULL_REQUEST_TEMPLATE.md.template +39 -0
  32. package/src/generators/preset/files/.github/SECURITY.md +9 -0
  33. package/src/generators/preset/files/.github/actions/node/action.yaml +42 -0
  34. package/src/generators/preset/files/.github/codecov.yml +29 -0
  35. package/src/generators/preset/files/.github/labels.yml +78 -0
  36. package/src/generators/preset/files/.github/renovate.json.template +55 -0
  37. package/src/generators/preset/files/.github/stale.yml +50 -0
  38. package/src/generators/preset/files/.github/workflows/ci.yml +131 -0
  39. package/src/generators/preset/files/.github/workflows/codeql.yml +81 -0
  40. package/src/generators/preset/files/.github/workflows/cr.yml +18 -0
  41. package/src/generators/preset/files/.github/workflows/documentation.yml.template +85 -0
  42. package/src/generators/preset/files/.github/workflows/git-guardian.yml +21 -0
  43. package/src/generators/preset/files/.github/workflows/greetings.yml +24 -0
  44. package/src/generators/preset/files/.github/workflows/labels.yml +30 -0
  45. package/src/generators/preset/files/.github/workflows/lock.yml +29 -0
  46. package/src/generators/preset/files/.github/workflows/nextjs-bundle-analysis.yml +139 -0
  47. package/src/generators/preset/files/.husky/commit-msg +4 -0
  48. package/src/generators/preset/files/.husky/post-checkout +6 -0
  49. package/src/generators/preset/files/.husky/post-merge +6 -0
  50. package/src/generators/preset/files/.husky/pre-commit +5 -0
  51. package/src/generators/preset/files/.husky/pre-push +3 -0
  52. package/src/generators/preset/files/.log4brains.yml +5 -0
  53. package/src/generators/preset/files/.markdownlint.json +25 -0
  54. package/src/generators/preset/files/.verdaccio/config.yml.template +40 -0
  55. package/src/generators/preset/files/.vscode/cspell.json +3 -0
  56. package/src/generators/preset/files/.vscode/extensions.json +14 -0
  57. package/src/generators/preset/files/.vscode/launch.json +39 -0
  58. package/src/generators/preset/files/.vscode/settings.json +300 -0
  59. package/src/generators/preset/files/.vscode/tasks.json +19 -0
  60. package/src/generators/preset/files/LICENSE +201 -0
  61. package/src/generators/preset/files/README.md.template +270 -0
  62. package/src/generators/preset/files/commitlint.config.d.ts +2 -0
  63. package/src/generators/preset/files/commitlint.config.js +3 -0
  64. package/src/generators/preset/files/commitlint.config.js.map +1 -0
  65. package/src/generators/preset/files/jest.config.d.ts +47 -0
  66. package/src/generators/preset/files/jest.config.js +58 -0
  67. package/src/generators/preset/files/jest.config.js.map +1 -0
  68. package/src/generators/preset/files/pnpm-workspace.yaml +4 -0
  69. package/src/generators/preset/files/src/index.ts.template +1 -0
  70. package/src/generators/preset/files/tsconfig.base.json.template +15 -0
  71. package/src/generators/preset/generator.d.ts +3 -0
  72. package/src/generators/preset/generator.js +148 -0
  73. package/src/generators/preset/generator.js.map +1 -0
  74. package/src/generators/preset/schema.d.ts +3 -0
  75. package/src/generators/preset/schema.json +18 -0
  76. package/src/index.d.ts +1 -0
  77. package/src/index.js +5 -0
  78. package/src/index.js.map +1 -0
@@ -0,0 +1,270 @@
1
+ <div align="center"><img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/logo-banner.png" width="100%" altText="<%= name %>" /></div>
2
+
3
+ <div align="center">
4
+ <a href="https://stormcloud.dev" target="_blank">Website</a> | <a href="https://stormcloud.dev/contact" target="_blank">Contact</a> | <a href="https://github.com/storm-software/<%= name %>" target="_blank">Repository</a> | <a href="https://storm-software.github.io/<%= name %>/" target="_blank">Documentation</a> | <a href="https://github.com/storm-software/<%= name %>/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a> | <a href="https://github.com/storm-software/<%= name %>/issues/new?assignees=&labels=enhancement&template=feature-request.yml&title=Feature Request%3A+">Request a Feature</a> | <a href="https://github.com/storm-software/<%= name %>/issues/new?assignees=&labels=documentation&template=documentation.yml&title=Documentation Request%3A+">Request Documentation</a> | <a href="https://github.com/storm-software/<%= name %>/discussions">Ask a Question</a>
5
+ </div>
6
+
7
+ <br />
8
+ Storm Software's <b>⚡<%= name %></b> monorepo contains utility applications, tools, and various libraries used to create modern, scalable web applications. <b>With the assistance of Storm's <a href="#forecast---model-driven-development">Forecast modelling</a>, a developer could create and a fully featured back-end without writing any actual code themselves.</b>
9
+ <br />
10
+ <%= name %> is 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.
11
+
12
+ <h3 align="center">💻 Visit <a href="https://stormcloud.dev" target="_blank">stormcloud.dev</a> to stay up to date with this developer<br /><br /></h3>
13
+
14
+ [![github](https://img.shields.io/github/package-json/v/storm-software/<%= name %>?style=for-the-badge&color=1fb2a6)](https://github.com/storm-software/<%= name %>)&nbsp;[![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/)
15
+
16
+ <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.<br /><br /></h3>
17
+
18
+ <!--#if GitHubActions-->
19
+
20
+ [![GitHub Actions Build History](https://buildstats.info/github/chart/storm-software/<%= name %>?branch=main&includeBuildsFromPullRequest=false)](https://github.com/storm-software/<%= name %>/actions)
21
+
22
+ <!--#endif-->
23
+
24
+ <!-- START doctoc generated TOC please keep comment here to allow auto update -->
25
+ <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
26
+
27
+ ## Table of Contents
28
+
29
+ - [Quick Features](#quick-features)
30
+ - [Tech Stack](#tech-stack)
31
+ - [Getting Started](#getting-started)
32
+ - [Build](#build)
33
+ - [Development Server](#development-server)
34
+ - [Forecast - Model-Driven Development](#forecast---model-driven-development)
35
+ - [Visual Studio Code Extension](#visual-studio-code-extension)
36
+ - [Environment Configuration Help](#environment-configuration-help)
37
+ - [Plug-Ins](#plug-ins)
38
+ - [Generate an Application](#generate-an-application)
39
+ - [Generate a Library](#generate-a-library)
40
+ - [Code Scaffolding](#code-scaffolding)
41
+ - [Testing](#testing)
42
+ - [Running Unit Tests](#running-unit-tests)
43
+ - [Running End-to-End Tests](#running-end-to-end-tests)
44
+ - [Understand your workspace](#understand-your-workspace)
45
+ - [☁ Nx Cloud](#-nx-cloud)
46
+ - [Distributed Computation Caching \& Distributed Task Execution](#distributed-computation-caching--distributed-task-execution)
47
+ - [Roadmap](#roadmap)
48
+ - [Contributing](#contributing)
49
+ - [Support](#support)
50
+ - [License](#license)
51
+ - [Contributors ✨](#contributors-)
52
+
53
+ <!-- END doctoc generated TOC please keep comment here to allow auto update -->
54
+
55
+ <br />
56
+
57
+ # Quick Features
58
+
59
+ The following are some of the features/publishable code that are included in this repository:
60
+
61
+ - Transport/protocol/backend agnostic data fetching (REST, GraphQL, promises, whatever!)
62
+ - Auto Caching + Refetching (stale-while-revalidate, Window Refocus, Polling/Realtime)
63
+ - Parallel + Dependent Queries
64
+ - Mutations + Reactive Query Refetching
65
+ - Multi-layer Cache + Automatic Garbage Collection
66
+ - Paginated + Cursor-based Queries
67
+ - Load-More + Infinite Scroll Queries w/ Scroll Recovery
68
+ - Request Cancellation
69
+ - React Suspense + Fetch-As-You-Render Query Prefetching
70
+ - Dedicated Devtools
71
+
72
+ ## Tech Stack
73
+
74
+ <div>
75
+ <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/typescript/typescript-original.svg" alt="TypeScript" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/codecov/codecov-plain.svg" alt="Codecov" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/apachekafka/apachekafka-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/amazonwebservices/amazonwebservices-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-plain.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/github/github-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/canva/canva-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/electron/electron-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/docker/docker-plain.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/eslint/eslint-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/figma/figma-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/graphql/graphql-plain.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/jira/jira-plain.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/markdown/markdown-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/mongodb/mongodb-plain.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/mysql/mysql-plain.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/nextjs/nextjs-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/nodejs/nodejs-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/postgresql/postgresql-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/storybook/storybook-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/redis/redis-plain.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/prometheus/prometheus-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/sqlite/sqlite-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/react/react-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/tailwindcss/tailwindcss-plain.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/threejs/threejs-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/vscode/vscode-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/android/android-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/apple/apple-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/bash/bash-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/blender/blender-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/jamstack/jamstack-original.svg" alt="Kafka" width="40" height="40"/>&nbsp;<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/npm/npm-original-wordmark.svg" alt="Kafka" width="40" height="40"/>&nbsp;
76
+ </div>
77
+
78
+ **Note:** The above list of technologies is far from exhaustive. It is just meant to serve as a short list of _some_ of the technologies that are used in this repository.
79
+ <br /><br />
80
+
81
+ # Getting Started
82
+
83
+ Once the code is pulled locally, open a command prompt and run `npm install` in the root repo directory (/<%= name %>).
84
+
85
+ More information can be found in the [Open System documentation](https://storm-software.github.io/<%= name %>/docs/getting-started/installation).
86
+
87
+ ## Build
88
+
89
+ Run `pnpm build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
90
+
91
+ ## Development Server
92
+
93
+ Run `pnpm serve` for a dev server. Navigate to <http://localhost:4200/>. The app will automatically reload if you change any of the source files.
94
+ <br /><br />
95
+
96
+ # Forecast - Model-Driven Development
97
+
98
+ In StormStack, ⚡ _forecast_ refers to a collection of applications and libraries that are used to build server-side code from a user-defined model. This functionality all lives in the Storm monorepo's `tools` directory (/tools/forecast).
99
+
100
+ <div align="center"><img src="https://pub-e71cff0f90204755bc910518d63cacf8.r2.dev/storm-generate.bg.png" width="800px" /></div>
101
+ <br />
102
+
103
+ More information can be found in the [📓 Documentation](https://forecastjs.com/docs).
104
+ <br /><br />
105
+
106
+ ## Visual Studio Code Extension
107
+
108
+ Forecast has it's own Visual Studio Code extension to support the language model in the IDE. The extension can be found in the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=storm-software.forecast).
109
+
110
+ # Environment Configuration Help
111
+
112
+ If you run into any issues while trying to run any of the above steps, please reach out to Patrick Sullivan. See the [Support](#support) section for more information.
113
+
114
+ ## Plug-Ins
115
+
116
+ Some of the plug-ins used by this repository are:
117
+
118
+ - [@nx/next](https://nx.dev/packages/next)
119
+ - [@nx/react](https://nx.dev/packages/react)
120
+ - [@nx/lint](https://nx.dev/linter/overview)
121
+ - [@nx/js](https://nx.dev/js/overview)
122
+ - [@nx/node](https://nodejs.org)
123
+ - [@nx/web](https://nx.dev/web/overview)
124
+ - [@nx/storybook](https://nx.dev/storybook/overview-react)
125
+ - [@nx/cypress](https://nx.dev/packages/cypress)
126
+ - [@nx/jest](https://nx.dev/packages/jest)
127
+ - And more...
128
+
129
+ ## Generate an Application
130
+
131
+ Run `nx g @storm-software/workspace:app my-app` to generate an application.
132
+
133
+ > You can use any of the plugins above to generate applications as well.
134
+
135
+ When using Nx, you can create multiple applications and libraries in the same workspace.
136
+
137
+ ## Generate a Library
138
+
139
+ Run `nx g @storm-software/workspace:lib my-lib` to generate a library.
140
+
141
+ > You can also use any of the plugins above to generate libraries as well.
142
+
143
+ Libraries are shareable across libraries and applications. They can be imported from `@<%= name %>/my-lib`.
144
+
145
+ ## Code Scaffolding
146
+
147
+ Run `nx g @nx/react:component my-component --project=<%= name %>` to generate a new component.
148
+ <br /><br />
149
+
150
+ # Testing
151
+
152
+ Open System uses [Jest](https://jestjs.io/) for unit testing and [Cypress](https://www.cypress.io/) for end-to-end testing.
153
+
154
+ ## Running Unit Tests
155
+
156
+ Run `pnpm test` to execute the unit tests via [Jest](https://jestjs.io).
157
+
158
+ Run `pnpm affected:test` to execute the unit tests affected by a change.
159
+
160
+ ## Running End-to-End Tests
161
+
162
+ Run `pnpm e2e` to execute the end-to-end tests via [Cypress](https://www.cypress.io).
163
+
164
+ Run `pnpm affected:e2e` to execute the end-to-end tests affected by a change.
165
+
166
+ ## Understand your workspace
167
+
168
+ Run `pnpm graph` to see a diagram of the dependencies of the Open System projects.
169
+ <br /><br />
170
+
171
+ # ☁ Nx Cloud
172
+
173
+ Nx caches the output of any previously run command such as testing and building, so it can replay the cached results instead of rerunning it. Nx Cloud allows you to share the computation cache across everyone in your team and CI.
174
+
175
+ <p align="center"><img src="https://pub-4661138852db4e5da99a6660fbf9b633.r2.dev/Nx Cloud - Dashboard.png" width="100%" altText="Nx Cloud - Dashboard" /></p>
176
+
177
+ ## Distributed Computation Caching & Distributed Task Execution
178
+
179
+ Nx Cloud pairs with Nx in order to enable you to build and test code more rapidly, by up to 10 times. Even teams that are new to Nx can connect to Nx Cloud and start saving time instantly.
180
+
181
+ Teams using Nx gain the advantage of building full-stack applications with their preferred framework alongside Nx’s advanced code generation and project dependency graph, plus a unified experience for both frontend and backend developers.
182
+
183
+ Visit [Nx Cloud](https://nx.app/) to learn more.
184
+ <br /><br />
185
+
186
+ # Roadmap
187
+
188
+ See the [open issues](https://github.com/storm-software/<%= name %>/issues) for a list of proposed features (and known issues).
189
+
190
+ - [Top Feature Requests](https://github.com/storm-software/<%= name %>/issues?q=label%3Aenhancement+is%3Aopen+sort%3Areactions-%2B1-desc) (Add your votes using the 👍 reaction)
191
+ - [Top Bugs](https://github.com/storm-software/<%= name %>/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc) (Add your votes using the 👍 reaction)
192
+ - [Newest Bugs](https://github.com/storm-software/<%= name %>/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
193
+ <br /><br />
194
+
195
+ # Contributing
196
+
197
+ First off, thanks for taking the time to contribute! Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are **greatly appreciated**.
198
+
199
+ Please try to create bug reports that are:
200
+
201
+ - _Reproducible._ Include steps to reproduce the problem.
202
+ - _Specific._ Include as much detail as possible: which version, what environment, etc.
203
+ - _Unique._ Do not duplicate existing opened issues.
204
+ - _Scoped to a Single Bug._ One bug per report.
205
+
206
+ Please adhere to this project's [code of conduct](.github/CODE_OF_CONDUCT.md).
207
+
208
+ You can use [markdownlint-cli](https://github.com/storm-software/<%= name %>/markdownlint-cli) to check for common markdown style inconsistency.
209
+ <br /><br />
210
+
211
+ # Support
212
+
213
+ Reach out to the maintainer at one of the following places:
214
+
215
+ - [Contact](https://stormcloud.dev/contact)
216
+ - [GitHub discussions](https://github.com/storm-software/<%= name %>/discussions)
217
+ - <contact@stormcloud.dev>
218
+
219
+ # License
220
+
221
+ This project is licensed under the **Apache License 2.0**. Feel free to edit and distribute this template as you like.
222
+
223
+ See [LICENSE](LICENSE) for more information.
224
+
225
+ # Contributors ✨
226
+
227
+ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
228
+
229
+ <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
230
+ <!-- prettier-ignore-start -->
231
+ <!-- markdownlint-disable -->
232
+ <table>
233
+ <tbody>
234
+ <tr>
235
+ <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/<%= name %>/commits?author=sullivanpj" title="Code">💻</a> <a href="#tool-sullivanpj" title="Tools">🔧</a> <a href="https://github.com/storm-software/<%= name %>/commits?author=sullivanpj" title="Documentation">📖</a> <a href="https://github.com/storm-software/<%= name %>/commits?author=sullivanpj" title="Tests">⚠️</a></td>
236
+ <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>
237
+ </tr>
238
+ </tbody>
239
+ <tfoot>
240
+ <tr>
241
+ <td align="center" size="13px" colspan="7">
242
+ <a href="https://all-contributors.js.org/docs/en/bot/usage">
243
+ <img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg" />
244
+ Add your contributions</a>
245
+ </td>
246
+ </tr>
247
+ </tfoot>
248
+ </table>
249
+
250
+ <!-- markdownlint-restore -->
251
+ <!-- prettier-ignore-end -->
252
+
253
+ <!-- ALL-CONTRIBUTORS-LIST:END -->
254
+
255
+ This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
256
+
257
+ <h1 align="center"></h1>
258
+ <br />
259
+ <div align="center">
260
+ <img src="https://pub-e71cff0f90204755bc910518d63cacf8.r2.dev/logo-opengraph.gif" width="100%"/>
261
+ </div>
262
+ <div align="center">
263
+ <a href="https://stormcloud.dev" 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>
264
+ </div>
265
+
266
+ <div align="center">
267
+ <p><b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D</p>
268
+ </div>
269
+
270
+ <h2 align="center">💻 Visit <a href="https://stormcloud.dev" target="_blank">stormcloud.dev</a> to stay up to date with this developer<br /><br /></h2>
@@ -0,0 +1,2 @@
1
+ declare let _extends: string[];
2
+ export { _extends as extends };
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ extends: ["@storm-software/linting-tools/commitlint"]
3
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commitlint.config.js","sourceRoot":"","sources":["../../../../../../../packages/workspace-tools/src/generators/preset/files/commitlint.config.js"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,GAAG;IACf,OAAO,EAAE,CAAC,0CAA0C,CAAC;CACtD,CAAC"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Config for Jest unit tests
3
+ *
4
+ * https://jestjs.io/docs/configuration#projects-arraystring--projectconfig
5
+ */
6
+ declare const _default: {
7
+ /**
8
+ * When the projects configuration is provided with an array of paths or glob patterns, Jest will run tests in all of the specified projects at the same time.
9
+ * This is great for monorepos or when working on multiple projects at the same time.
10
+ */
11
+ projects: string[];
12
+ /**
13
+ * Indicates whether the coverage information should be collected while executing the test. Because this retrofits all
14
+ * executed files with coverage collection statements, it may significantly slow down your tests. Default: false
15
+ */
16
+ collectCoverage: boolean;
17
+ /**
18
+ * An array of glob patterns indicating a set of files for which coverage information should be collected.
19
+ * If a file matches the specified glob pattern, coverage information will be collected for it even if no tests exist
20
+ * for this file and it's never required in the test suite. Default: undefined
21
+ */
22
+ /**
23
+ * The directory where Jest should output its coverage files. Default: undefined
24
+ */
25
+ coverageDirectory: string;
26
+ /**
27
+ * An array of regexp pattern strings that are matched against all file paths before executing the test. If the file path
28
+ * matches any of the patterns, coverage information will be skipped.
29
+ */
30
+ coveragePathIgnorePatterns: string[];
31
+ /**
32
+ * The test environment that will be used for testing. The default environment in Jest is a Node.js environment.
33
+ * If you are building a web app, you can use a browser-like environment through jsdom instead.
34
+ */
35
+ testEnvironment: string;
36
+ /**
37
+ * A list of reporter names that Jest uses when writing coverage reports. Any istanbul reporter can be used.
38
+ * Default: ["json", "lcov", "text"]
39
+ */
40
+ coverageReporters: string[];
41
+ setupFiles: string[];
42
+ moduleNameMapper: {
43
+ "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": string;
44
+ "\\.(css|less)$": string;
45
+ };
46
+ };
47
+ export default _default;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jest_1 = require("@nx/jest");
4
+ /**
5
+ * Config for Jest unit tests
6
+ *
7
+ * https://jestjs.io/docs/configuration#projects-arraystring--projectconfig
8
+ */
9
+ exports.default = {
10
+ /**
11
+ * When the projects configuration is provided with an array of paths or glob patterns, Jest will run tests in all of the specified projects at the same time.
12
+ * This is great for monorepos or when working on multiple projects at the same time.
13
+ */
14
+ projects: (0, jest_1.getJestProjects)(),
15
+ /**
16
+ * Indicates whether the coverage information should be collected while executing the test. Because this retrofits all
17
+ * executed files with coverage collection statements, it may significantly slow down your tests. Default: false
18
+ */
19
+ collectCoverage: true,
20
+ /**
21
+ * An array of glob patterns indicating a set of files for which coverage information should be collected.
22
+ * If a file matches the specified glob pattern, coverage information will be collected for it even if no tests exist
23
+ * for this file and it's never required in the test suite. Default: undefined
24
+ */
25
+ // collectCoverageFrom: ["**/*(!*.spec).tsx", "**/*(!*.spec).ts"],
26
+ /**
27
+ * The directory where Jest should output its coverage files. Default: undefined
28
+ */
29
+ coverageDirectory: "<rootDir>/coverage",
30
+ /**
31
+ * An array of regexp pattern strings that are matched against all file paths before executing the test. If the file path
32
+ * matches any of the patterns, coverage information will be skipped.
33
+ */
34
+ coveragePathIgnorePatterns: [
35
+ "\\.spec\\.ts$",
36
+ "\\.test\\.ts$",
37
+ "<rootDir>/dist",
38
+ "<rootDir>/test",
39
+ "<rootDir>/__generated__",
40
+ "<rootDir>/node_modules"
41
+ ],
42
+ /**
43
+ * The test environment that will be used for testing. The default environment in Jest is a Node.js environment.
44
+ * If you are building a web app, you can use a browser-like environment through jsdom instead.
45
+ */
46
+ testEnvironment: "jest-environment-jsdom",
47
+ /**
48
+ * A list of reporter names that Jest uses when writing coverage reports. Any istanbul reporter can be used.
49
+ * Default: ["json", "lcov", "text"]
50
+ */
51
+ coverageReporters: ["lcov"],
52
+ setupFiles: ["@storm-software/jest/mocks/jest.setup.js"],
53
+ moduleNameMapper: {
54
+ "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "@storm-software/jest/mocks/file.mock.js",
55
+ "\\.(css|less)$": "@storm-software/jest/mocks/style.mock.js"
56
+ }
57
+ };
58
+ //# sourceMappingURL=jest.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.config.js","sourceRoot":"","sources":["../../../../../../../packages/workspace-tools/src/generators/preset/files/jest.config.ts"],"names":[],"mappings":";;AAAA,mCAA2C;AAE3C;;;;GAIG;AACH,kBAAe;IACb;;;OAGG;IACH,QAAQ,EAAE,IAAA,sBAAe,GAAE;IAE3B;;;OAGG;IACH,eAAe,EAAE,IAAI;IAErB;;;;OAIG;IACH,kEAAkE;IAElE;;OAEG;IACH,iBAAiB,EAAE,oBAAoB;IAEvC;;;OAGG;IACH,0BAA0B,EAAE;QAC1B,eAAe;QACf,eAAe;QACf,gBAAgB;QAChB,gBAAgB;QAChB,yBAAyB;QACzB,wBAAwB;KACzB;IAED;;;OAGG;IACH,eAAe,EAAE,wBAAwB;IAEzC;;;OAGG;IACH,iBAAiB,EAAE,CAAC,MAAM,CAAC;IAE3B,UAAU,EAAE,CAAC,0CAA0C,CAAC;IAExD,gBAAgB,EAAE;QAChB,qFAAqF,EACnF,yCAAyC;QAC3C,gBAAgB,EAAE,0CAA0C;KAC7D;CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ packages:
2
+ - "tools/**"
3
+ - "packages/**"
4
+ - "docs/**"
@@ -0,0 +1 @@
1
+ const variable = "<%= name %>";
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "@storm-software/workspace-tools/config/tsconfig.root.json",
4
+ "display": "Storm Software - <%= name %>",
5
+ "compilerOptions": {
6
+ "rootDir": ".",
7
+ "baseUrl": ".",
8
+ "paths": {}
9
+ },
10
+ "references": [
11
+ {
12
+ "path": "./.storybook/tsconfig.json"
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,3 @@
1
+ import { Tree } from "@nx/devkit";
2
+ import { PresetGeneratorSchema } from "./schema";
3
+ export default function (tree: Tree, options: PresetGeneratorSchema): Promise<import("@nx/devkit").GeneratorCallback>;
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const devkit_1 = require("@nx/devkit");
5
+ const path = require("path");
6
+ function default_1(tree, options) {
7
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
+ const projectRoot = `.`;
9
+ (0, devkit_1.addProjectConfiguration)(tree, options.name, {
10
+ root: projectRoot,
11
+ projectType: "application",
12
+ targets: {}
13
+ });
14
+ (0, devkit_1.updateJson)(tree, "package.json", json => {
15
+ var _a, _b, _c, _d, _e, _f;
16
+ json.scripts = json.scripts || {};
17
+ json.version = "0.0.0";
18
+ json.private = true;
19
+ (_a = json.keywords) !== null && _a !== void 0 ? _a : (json.keywords = [
20
+ "storm",
21
+ "stormstack",
22
+ "storm-stack",
23
+ "forecast",
24
+ "forecast-lang",
25
+ "forecast-model",
26
+ "impact",
27
+ "nextjs",
28
+ "prisma",
29
+ "zenstack",
30
+ "hasura",
31
+ "strapi",
32
+ "graphql",
33
+ "sullivanpj",
34
+ "open-system",
35
+ "monorepo"
36
+ ]);
37
+ (_b = json.homepage) !== null && _b !== void 0 ? _b : (json.homepage = "https://stormsoftware.org");
38
+ (_c = json.bugs) !== null && _c !== void 0 ? _c : (json.bugs = {
39
+ url: "https://stormsoftware.org/support",
40
+ email: "support@stormsoftware.org"
41
+ });
42
+ (_d = json.license) !== null && _d !== void 0 ? _d : (json.license = "Apache License 2.0");
43
+ (_e = json.author) !== null && _e !== void 0 ? _e : (json.author = {
44
+ name: "Storm Software",
45
+ email: "contact@stormsoftware.org",
46
+ url: "https://stormsoftware.org"
47
+ });
48
+ // generate a start script into the package.json
49
+ json.scripts.adr = "pnpm log4brains adr new";
50
+ json.scripts["adr-preview"] = "pnpm log4brains preview";
51
+ json.scripts.prepare = "pnpm prepare:husky && npx patch-package -y";
52
+ json.scripts["prepare:husky"] = "is-ci || husky install";
53
+ json.scripts.preinstall =
54
+ "pnpm @storm-software/workspace-tools/scripts/pre-install.js || npx -y only-allow pnpm";
55
+ json.scripts["install:csb"] =
56
+ "corepack enable && pnpm install --frozen-lockfile";
57
+ json.scripts.clean = "rimraf dist";
58
+ json.scripts.prebuild = "pnpm clean";
59
+ json.scripts.build = "nx affected -t build --parallel=5";
60
+ json.scripts["build:all"] = "nx run-many -t build --all --parallel=5";
61
+ json.scripts["build:production"] =
62
+ "nx run-many -t build --all --prod --parallel=5";
63
+ json.scripts.nx = "nx";
64
+ json.scripts.graph = "nx graph";
65
+ json.scripts.lint = "pnpm storm-lint all";
66
+ json.scripts.start = "nx serve";
67
+ json.scripts.test = "nx test";
68
+ json.scripts.e2e = "nx e2e";
69
+ json.scripts.format = "nx format:write && pnpm doctoc --github README.md";
70
+ json.scripts.help = "nx help";
71
+ json.scripts["dep-graph"] = "nx dep-graph";
72
+ json.scripts["local-registry"] =
73
+ "nx local-registry @storm-software/storm-ops";
74
+ json.scripts["pre-push"] =
75
+ "lint-staged --concurrent false --config @storm-software/linting-tools/lint-staged/config";
76
+ json.scripts.commit = "pnpm storm-git commit";
77
+ json.scripts["api-extractor"] =
78
+ "nx g @storm-software/workspace-tools:api-extractor --outputPath 'docs/api-reference' --clean --no-interactive";
79
+ json.scripts.release = "pnpm storm-git release";
80
+ (_f = json.packageManager) !== null && _f !== void 0 ? _f : (json.packageManager = "pnpm@8.7.4");
81
+ json.engines = {
82
+ node: ">=18.17.0",
83
+ pnpm: ">=8.7.4"
84
+ };
85
+ json.prettier = "@storm-software/linting-tools/prettier/config";
86
+ json.resolutions = {
87
+ graphql: "^16.8.0",
88
+ minimist: "^1.2.6"
89
+ };
90
+ json.bundlewatch = {
91
+ files: [
92
+ {
93
+ path: "dist/*/*.js",
94
+ maxSize: "200kB"
95
+ }
96
+ ],
97
+ ci: {
98
+ trackBranches: ["main", "alpha", "beta"]
99
+ }
100
+ };
101
+ json.nx = {
102
+ includedScripts: ["lint", "format"]
103
+ };
104
+ return json;
105
+ });
106
+ (0, devkit_1.generateFiles)(tree, path.join(__dirname, "files"), projectRoot, options);
107
+ yield (0, devkit_1.formatFiles)(tree);
108
+ return (0, devkit_1.addDependenciesToPackageJson)(tree, {
109
+ react: "latest",
110
+ nx: "latest",
111
+ "react-dom": "latest",
112
+ "react-scripts": "latest"
113
+ }, {
114
+ "@storm-software/git-tools": "latest",
115
+ "@storm-software/linting-tools": "latest",
116
+ "@storm-software/workspace-tools": "latest",
117
+ "prettier-plugin-packagejson": "latest",
118
+ "prettier-plugin-prisma": "latest",
119
+ "patch-package": "latest",
120
+ tsup: "latest",
121
+ eslint: "latest",
122
+ "eslint-config-next": "latest",
123
+ "eslint-config-prettier": "latest",
124
+ "eslint-plugin-cypress": "latest",
125
+ "eslint-plugin-import": "latest",
126
+ "eslint-plugin-jest": "latest",
127
+ "eslint-plugin-jsx-a11y": "latest",
128
+ "eslint-plugin-react": "latest",
129
+ "eslint-plugin-react-hooks": "latest",
130
+ "eslint-plugin-storybook": "latest",
131
+ "nx-cloud": "latest",
132
+ log4brains: "latest",
133
+ husky: "latest",
134
+ prettier: "latest",
135
+ "is-ci": "latest",
136
+ "lint-staged": "latest",
137
+ jest: "29.5.0",
138
+ "jest-cli": "^29.5.0",
139
+ "jest-environment-jsdom": "29.5.0",
140
+ "jest-environment-node": "^29.4.1",
141
+ jsdom: "~22.1.0",
142
+ "@types/react": "latest",
143
+ "@types/react-dom": "latest"
144
+ });
145
+ });
146
+ }
147
+ exports.default = default_1;
148
+ //# sourceMappingURL=generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/workspace-tools/src/generators/preset/generator.ts"],"names":[],"mappings":";;;AAAA,uCAOoB;AACpB,6BAA6B;AAG7B,mBAA+B,IAAU,EAAE,OAA8B;;QACvE,MAAM,WAAW,GAAG,GAAG,CAAC;QAExB,IAAA,gCAAuB,EAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE;YAC1C,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,aAAa;YAC1B,OAAO,EAAE,EAAE;SACZ,CAAC,CAAC;QAEH,IAAA,mBAAU,EAAC,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE;;YACtC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,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AAE,QAAQ;YAC/B,2BAA2B,EAAE,QAAQ;YACrC,yBAAyB,EAAE,QAAQ;YACnC,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;YACpB,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;YACjB,aAAa,EAAE,QAAQ;YACvB,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,SAAS;YACrB,wBAAwB,EAAE,QAAQ;YAClC,uBAAuB,EAAE,SAAS;YAClC,KAAK,EAAE,SAAS;YAChB,cAAc,EAAE,QAAQ;YACxB,kBAAkB,EAAE,QAAQ;SAC7B,CACF,CAAC;IACJ,CAAC;CAAA;AA9JD,4BA8JC"}
@@ -0,0 +1,3 @@
1
+ export interface PresetGeneratorSchema {
2
+ name: string;
3
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "Preset",
4
+ "title": "Storm Workspace preset",
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "description": "",
10
+ "$default": {
11
+ "$source": "argv",
12
+ "index": 0
13
+ },
14
+ "x-prompt": "What name would you like to use?"
15
+ }
16
+ },
17
+ "required": ["name"]
18
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./generators/preset/generator";
package/src/index.js ADDED
@@ -0,0 +1,5 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/workspace-tools/src/index.ts"],"names":[],"mappings":";;;AAAA,wEAA8C"}