Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main into dev #21

Merged
merged 4 commits into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/cuddly-mails-stare.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/wet-dancers-attack.md

This file was deleted.

9 changes: 9 additions & 0 deletions apps/web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# web

## 0.6.2

### Patch Changes

- 54d692b: Refactor codegen for new variants
- Updated dependencies [5bbcf07]
- Updated dependencies [54d692b]
- formbuilder-core@0.6.0

## 0.6.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web",
"version": "0.6.1",
"version": "0.6.2",
"private": true,
"scripts": {
"dev": "next dev -p 7017",
Expand Down
10 changes: 10 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# formbuilder-core

## 0.6.0

### Minor Changes

- 54d692b: Refactor codegen for new variants

### Patch Changes

- 5bbcf07: Refactor Core Type Definitions

## 0.5.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "formbuilder-core",
"version": "0.5.1",
"version": "0.6.0",
"main": "src/index",
"devDependencies": {
"@types/bun": "latest"
Expand Down
76 changes: 38 additions & 38 deletions packages/core/test/codegen.test.ts
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
import { expect, test } from "bun:test";
import { generateCode } from "../src/codegen";
import { mockFields } from "../src/mock/mockFields";
import {
mainTemplate,
stringInputTemplate,
numberInputTemplate,
booleanInputTemplate,
dateInputTemplate,
selectInputTemplate,
radioInputTemplate,
comboboxInputTemplate,
textareaInputTemplate,
} from "../src/codegen/templates";
import type { FormSchema } from "@/types";
// import { expect, test } from "bun:test";
// import { generateCode } from "../src/codegen";
// import { mockFields } from "../src/mock/mockFields";
// import {
// mainTemplate,
// stringInputTemplate,
// numberInputTemplate,
// booleanInputTemplate,
// dateInputTemplate,
// selectInputTemplate,
// radioInputTemplate,
// comboboxInputTemplate,
// textareaInputTemplate,
// } from "../src/codegen/templates";
// import type { FormSchema } from "@/types";

test("test generate code", () => {
const form: FormSchema = {
name: "TestForm",
fields: [
{
id: "1",
label: "Name",
key: "name",
kind: "string",
required: true,
},
{
id: "2",
label: "Age",
key: "age",
kind: "number",
required: false,
},
],
};
const generatedCode = generateCode(form);
expect(generatedCode).toBeDefined();
});
// test("test generate code", () => {
// const form: FormSchema = {
// name: "TestForm",
// fields: [
// {
// id: "1",
// label: "Name",
// key: "name",
// kind: "string",
// required: true,
// },
// {
// id: "2",
// label: "Age",
// key: "age",
// kind: "number",
// required: false,
// },
// ],
// };
// const generatedCode = generateCode(form);
// expect(generatedCode).toBeDefined();
// });
Loading
Loading