Skip to content

Commit 2cdef19

Browse files
committed
feat(tools-forecast-plugins-valibot): Added the Forecast Valibot Schema Generation plugin
1 parent 4cf31b5 commit 2cdef19

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1812
-395
lines changed

design-system/tokens/README.md

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,40 @@
33
<!-- markdownlint-disable -->
44

55

6-
<div align="center"><img src="https://pub-e71cff0f90204755bc910518d63cacf8.r2.dev/open-system.logo-green.svg" width="100%" title="Open System" altText="Open System" /></div>
6+
<div align="center"><img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/logo-banner.png" width="100%" altText="StormStack" /></div>
77

88
<div align="center">
9-
<a href="https://www.patsullivan.org" target="_blank">Website</a> | <a href="https://stormcloud.dev/contact" target="_blank">Contact</a> | <a href="https://github.com/stormstack/stormstack" target="_blank">Repository</a> | <a href="https://stormstack.github.io/stormstack/" target="_blank">Documentation</a> | <a href="https://github.com/stormstack/stormstack/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a> | <a href="https://github.com/stormstack/stormstack/issues/new?assignees=&labels=enhancement&template=feature-request.yml&title=Feature Request%3A+">Request a Feature</a> | <a href="https://github.com/stormstack/stormstack/issues/new?assignees=&labels=documentation&template=documentation.yml&title=Documentation Request%3A+">Request Documentation</a> | <a href="https://github.com/stormstack/stormstack/discussions">Ask a Question</a>
9+
<a href="https://stormcloud.dev" target="_blank">Website</a> | <a href="https://stormcloud.dev/contact" target="_blank">Contact</a> | <a href="https://github.com/stormstack/stormstack" target="_blank">Repository</a> | <a href="https://stormstack.github.io/stormstack/" target="_blank">Documentation</a> | <a href="https://github.com/stormstack/stormstack/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a> | <a href="https://github.com/stormstack/stormstack/issues/new?assignees=&labels=enhancement&template=feature-request.yml&title=Feature Request%3A+">Request a Feature</a> | <a href="https://github.com/stormstack/stormstack/issues/new?assignees=&labels=documentation&template=documentation.yml&title=Documentation Request%3A+">Request Documentation</a> | <a href="https://github.com/stormstack/stormstack/discussions">Ask a Question</a>
1010
</div>
1111

12-
<br />
13-
The <b>Open System</b> is a monorepo containing modern, scalable web application code, additional utility applications/tools, various libraries, and a fully featured, serverless back-end framework. The Open System 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.
12+
<br />
13+
The <b>⚡StormStack</b> monorepo contains utility applications, tools, and various libraries used to create modern, scalable web applications.<b>With the assistance of StormStack's <a href="#forecast---model-driven-development">Forecast modelling</a>, a developer could create and a fully featured, serverless back-end without writing any actual code themselves.</b>
14+
<br />
15+
StormStack 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.
1416

15-
<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>
17+
<h4 align="center">💻 Visit <a href="https://stormcloud.dev" target="_blank">stormcloud.dev</a> to stay up to date with this developer<br /><br /></h4>
1618

17-
[![Version](https://img.shields.io/badge/version-0.0.1-10B981.svg?style=for-the-badge&color=10B981)](https://prettier.io/)&nbsp;
18-
[![Nx](https://img.shields.io/badge/Nx-14.4.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=10B981)](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=10B981)](https://nextjs.org/)&nbsp;[![codecov.io](https://img.shields.io/codecov/c/github/commitizen/cz-cli.svg?style=for-the-badge&color=10B981)](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=10B981)](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=10B981)&nbsp;[![documented with docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=10B981)](https://docusaurus.io/)
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/)
1921

2022

2123
<!-- markdownlint-restore -->
2224
<!-- prettier-ignore-end -->
2325

2426
<!-- END header -->
2527

26-
# Impact Design System - Design Tokens
28+
# ☄️ Impact Design System - Design Tokens
2729

28-
The Impact design system is a part of the Open System monorepo/family of tools. This library was generated with [Nx](https://nx.dev) and includes the Design Tokens used by this design system.
30+
The ☄️ Impact design system is a part of the ⚡StormStack monorepo/family of tools. This library was generated with [Nx](https://nx.dev) and includes the Design Tokens used by this design system.
2931

3032
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
3133
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3234

3335
## Table of Contents
3436

35-
- [Impact Design System - Design Tokens](#impact-design-system---design-tokens)
37+
- [☄️ Impact Design System - Design Tokens](#️-impact-design-system---design-tokens)
3638
- [Table of Contents](#table-of-contents)
3739
- [Figma](#figma)
38-
- [Building](#building)
3940
- [Running unit tests](#running-unit-tests)
4041
- [Roadmap](#roadmap)
4142
- [Support](#support)
@@ -56,34 +57,29 @@ The design tokens are updated and exported from Figma using the [Tokens Studio f
5657

5758
The Figma file associated with the design tokens can be found in the themes folder of this library.
5859

59-
## Building
60-
61-
Run `nx build shared-ui-design-tokens` to build the library.
62-
6360
## Running unit tests
6461

65-
Run `nx test shared-ui-design-tokens` to execute the unit tests via [Jest](https://jestjs.io).
62+
Run `nx test tools-forecast-language` to execute the unit tests via [Jest](https://jestjs.io).
6663

6764
<!-- START footer -->
6865
<!-- prettier-ignore-start -->
6966
<!-- markdownlint-disable -->
7067

71-
7268
## Roadmap
7369

7470
See the [open issues](https://github.com/stormstack/stormstack/issues) for a list of proposed features (and known issues).
7571

76-
- [Top Feature Requests](https://github.com/stormstack/stormstack/issues?q=label%3Aenhancement+is%3Aopen+sort%3Areactions-%2B1-desc) (Add your votes using the 👍 reaction)
77-
- [Top Bugs](https://github.com/stormstack/stormstack/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc) (Add your votes using the 👍 reaction)
78-
- [Newest Bugs](https://github.com/stormstack/stormstack/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
72+
- [Top Feature Requests](https://github.com/stormstack/stormstack/issues?q=label%3Aenhancement+is%3Aopen+sort%3Areactions-%2B1-desc) (Add your votes using the 👍 reaction)
73+
- [Top Bugs](https://github.com/stormstack/stormstack/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc) (Add your votes using the 👍 reaction)
74+
- [Newest Bugs](https://github.com/stormstack/stormstack/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
7975

8076
## Support
8177

8278
Reach out to the maintainer at one of the following places:
8379

84-
- [Contact](https://stormcloud.dev/contact)
85-
- [GitHub discussions](https://github.com/stormstack/stormstack/discussions)
86-
80+
- [Contact](https://stormcloud.dev/contact)
81+
- [GitHub discussions](https://github.com/stormstack/stormstack/discussions)
82+
8783

8884
## License
8985

@@ -101,10 +97,10 @@ First off, thanks for taking the time to contribute! Contributions are what make
10197

10298
Please try to create bug reports that are:
10399

104-
- _Reproducible._ Include steps to reproduce the problem.
105-
- _Specific._ Include as much detail as possible: which version, what environment, etc.
106-
- _Unique._ Do not duplicate existing opened issues.
107-
- _Scoped to a Single Bug._ One bug per report.
100+
- _Reproducible._ Include steps to reproduce the problem.
101+
- _Specific._ Include as much detail as possible: which version, what environment, etc.
102+
- _Unique._ Do not duplicate existing opened issues.
103+
- _Scoped to a Single Bug._ One bug per report.
108104

109105
Please adhere to this project's [code of conduct](.github/CODE_OF_CONDUCT.md).
110106

libs/contact/typescript/server/attachment/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.0.1",
44
"dependencies": {
55
"@envelop/types": "^4.0.0",
6-
"drizzle-orm": "^0.28.5"
6+
"drizzle-orm": "^0.28.5",
7+
"valibot": "^0.19.0"
78
}
89
}

libs/contact/typescript/server/attachment/schema.4cast

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ output = "drizzle"
2424
compile = false
2525
}
2626

27+
plugin valibot {
28+
provider = "@stormstack/tools-forecast-plugins-valibot"
29+
output = "valibot"
30+
compile = false
31+
}
32+
2733
enum ContactReason {
2834
Business
2935
Question

libs/core/typescript/shared/utilities/src/common/deep-merge.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ export const mergeObject = (
7676
return destination;
7777
};
7878

79-
export const deepMerge: any = (target: any, source: any, options: any = {}) => {
79+
export const deepMerge = (target: any, source: any, options: any = {}) => {
80+
if (!target || !source) {
81+
return target ? target : source;
82+
}
83+
8084
options = options || {};
8185
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
8286
options.isMergeableObject = options.isMergeableObject || isMergeableObject;

pnpm-lock.yaml

Lines changed: 123 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/forecast/codegen/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"@vscode/vsce": "^2.20.1",
1515
"chalk": "4.1.0",
1616
"cosmiconfig": "^8.3.6",
17+
"fs-extra": "^11.1.1",
1718
"glob": "^10.3.3",
1819
"handlebars": "^4.7.8",
1920
"handlebars-utils": "^1.0.6",

tools/forecast/codegen/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"minify": false,
2121
"skipTypeCheck": true,
2222
"format": ["esm", "cjs"],
23-
"external": [".prisma/client/index"],
23+
"external": [".prisma/client/index", "espree"],
2424
"assets": [
2525
{
2626
"input": "tools/forecast/codegen",

0 commit comments

Comments
 (0)