Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1780 commits
Select commit Hold shift + click to select a range
c246221
Merge pull request #219 from valbuild/changeset-release/main
freekh Apr 26, 2024
ec58166
Introducing the val.modules file...
freekh May 7, 2024
cea9fb9
Fix type-check (only) on broken ValServer.test
freekh May 8, 2024
11b2ecf
Lint
freekh May 8, 2024
8a99ea6
Changeset
freekh May 8, 2024
c8dc159
Fix broken type-check. This test needs to be updated
freekh May 8, 2024
4bc6deb
Merge pull request #220 from valbuild/exp/val-modules-file
freekh May 8, 2024
7eb8f51
Version Packages
github-actions[bot] May 8, 2024
9eb756d
Merge pull request #221 from valbuild/changeset-release/main
freekh May 8, 2024
4e7f6c2
ValOps test
freekh May 12, 2024
7b63b35
Add ValOps class and test
freekh May 13, 2024
3c6d0db
Change ModuleId => ModuleFilePath
freekh May 15, 2024
9ffdbe7
Add ValOpsFS
freekh May 16, 2024
37b57a6
Remove ValPatches (at least from view)...
freekh May 19, 2024
6bc1bff
Refactoring from Proxy- and LocalValServer to ValOps, ValServer2
freekh May 20, 2024
f84e6b1
Major refactor: completes transition to ValOps. Still a lot to do...
freekh May 24, 2024
f0a35f0
Lint + format
freekh May 24, 2024
0a71282
Changeset
freekh May 26, 2024
9a04828
Only accept images for image field
freekh May 26, 2024
28b6ca2
Add last patch_id to fix file refs updated by patch
freekh May 26, 2024
91b5856
Better error handling for files
freekh May 26, 2024
5e7e69c
Always pick mime type image/jpeg
freekh May 26, 2024
c85895a
Version Packages
github-actions[bot] May 26, 2024
654fdd6
Merge pull request #222 from valbuild/changeset-release/main
freekh May 26, 2024
0da4798
Fix enabled in proxy mode
freekh May 26, 2024
d2d72d5
Version Packages
github-actions[bot] May 26, 2024
9f15731
Merge pull request #223 from valbuild/changeset-release/main
freekh May 26, 2024
c893519
Fix missing authorId in proxy mode
freekh May 26, 2024
455917b
Changeset
freekh May 26, 2024
c1a0100
Version Packages
github-actions[bot] May 26, 2024
8bc6550
Merge pull request #224 from valbuild/changeset-release/main
freekh May 26, 2024
b43ae22
Improve auto tagging...
freekh Apr 27, 2024
6eee615
Changeset
freekh May 29, 2024
3e08013
Fix example val file
freekh May 29, 2024
f45e232
Fix escpaed utf8 chars
freekh May 29, 2024
7a224ea
Init new sortable list based on dnd
freekh Apr 28, 2024
9879850
WIP: init sortable list
freekh Apr 28, 2024
dc8ce28
Add image, ... to Preview, move overflow logic to SortableItem
freekh Apr 28, 2024
0ea6c89
On sortable list: add preview record, improve tests, add overflow, ...
freekh Apr 28, 2024
9425f57
Replace earlier basic list with sortable list
freekh Apr 29, 2024
e4e30f1
Fix broken valbuild dependencies
freekh May 30, 2024
ad507a0
Changeset
freekh May 30, 2024
0ba649a
Remove old list implementation
freekh May 30, 2024
efdeb26
Merge pull request #226 from valbuild/ui/list-1
freekh May 30, 2024
fd64a74
Experimenting with no save buttons
freekh May 7, 2024
24198ed
WIP: updating image fields, ... changing workstations
freekh May 31, 2024
6b2deac
No submit button on image and file fields
freekh Jun 3, 2024
d9c1005
Fixes many of the fields
freekh Jun 3, 2024
7300e18
Merge pull request #228 from valbuild/exp/no-save-buttons
freekh Jun 3, 2024
c6ba1e6
Version Packages
github-actions[bot] Jun 3, 2024
335e201
Merge pull request #227 from valbuild/changeset-release/main
freekh Jun 3, 2024
fd99d4b
Add add op, fixes multiple related issues: sources not reloading (hop…
freekh Jun 4, 2024
066a657
Update init script with val modules
freekh Jun 4, 2024
dabaf94
Changeset
freekh Jun 4, 2024
a95c325
Lint and record
freekh Jun 4, 2024
a28d841
Version Packages
github-actions[bot] Jun 4, 2024
217d991
Merge pull request #229 from valbuild/changeset-release/main
freekh Jun 4, 2024
263336b
Show errors before commit
freekh Jun 4, 2024
4c05b50
Rm console.log
freekh Jun 4, 2024
8de2713
Simpler authors
freekh Jun 4, 2024
36dd683
Fix param name
freekh Jun 4, 2024
fed9d7d
Add, remove on record...
freekh Jun 4, 2024
536e94f
Change adding records from adding directly to only require the key na…
freekh Jun 4, 2024
445efaa
Do not allow empty keys
freekh Jun 4, 2024
bd1407d
Do not set loading unless moduleId is set
freekh Jun 5, 2024
6f6e4dd
Rename moduleId => moduleFilePath
freekh Jun 5, 2024
a35b6b8
Add preview button
freekh Jun 5, 2024
1333fda
Propagate errors on commit
freekh Jun 5, 2024
d7693c6
Enable on login
freekh Jun 5, 2024
844ad1f
Remove unused (wrong logout)
freekh Jun 5, 2024
4d85f71
Changeset
freekh Jun 5, 2024
faeb33c
Merge pull request #225 from valbuild/improve-auto-tag-1
freekh Jun 5, 2024
5ed98ed
Add val links
freekh Jun 5, 2024
ff7c86a
Version Packages
github-actions[bot] Jun 5, 2024
3ec26ba
Merge pull request #230 from valbuild/changeset-release/main
freekh Jun 5, 2024
3f2fa6d
Fix broken richtext extensions...
freekh Jun 8, 2024
aa2041b
Update object schema with reserved keys
freekh Jun 14, 2024
454847d
Update test with module file paths, e.g. /test1.val.ts (instead of mo…
freekh Jun 14, 2024
4650691
Add reserved names to source object
freekh Jun 14, 2024
1475b09
KeyOf should not be val encoded
freekh Jun 14, 2024
51dece5
Changeset
freekh Jun 14, 2024
ea4534d
Version Packages
github-actions[bot] Jun 14, 2024
9fa45db
Merge pull request #232 from valbuild/changeset-release/main
freekh Jun 14, 2024
fdd6ec4
Fix broken id: now path
freekh May 29, 2024
a97306c
Module id is now module file path
freekh May 29, 2024
9693e50
WIP: replace markdown with object for simpler richtext
freekh May 30, 2024
7435620
WIP: richtext object instead of markdown
freekh Jun 7, 2024
c56f4eb
Fix broken rebase
freekh Jun 10, 2024
dece3ed
Various RichText updates related to changing how richtext source is e…
freekh Jun 11, 2024
1b67628
Remove empty line in globals.css file
freekh Jun 12, 2024
c35c347
Clean up RichText conversion from markdown-ish to objects
freekh Jun 12, 2024
70d2ce4
Fix richtext preview
freekh Jun 12, 2024
995be65
Change img tag children to src in order to be more html tag-ish
freekh Jun 12, 2024
182b395
Refactoring from c.richtext / markdown-ish to objects
freekh Jun 14, 2024
1292960
Format + lint
freekh Jun 14, 2024
139aecb
Fix remirror test after converting children to src on img tag
freekh Jun 14, 2024
8b508e6
Fix remirror conversion tests
freekh Jun 14, 2024
1996114
Remove c.richtext since they are no longer needed as richtext is just…
freekh Jun 14, 2024
ad08de5
Fix tests & update RichTextSource to be more strict and compliant (no…
freekh Jun 14, 2024
de1b7fc
Browerlist
freekh Jun 18, 2024
caa7c8c
Update parse richtext (old format) with new, stricter rules (br must …
freekh Jun 18, 2024
90b0b52
Fix broken nested file path (after changing children to src in richte…
freekh Jun 18, 2024
139162d
Update README.md
freekh Jun 19, 2024
7291809
Update README.md
freekh Jun 19, 2024
aacc180
Comment out delete patches on file error
freekh Jun 25, 2024
1956709
Merge branch 'main' of github.com:valbuild/val into simple-richtext-obj
freekh Jul 2, 2024
e2b493c
Lint
freekh Jul 2, 2024
d5433bc
Changeset
freekh Jul 2, 2024
3c8822f
Merge pull request #231 from valbuild/simple-richtext-obj
freekh Jul 2, 2024
82ff89b
Version Packages
github-actions[bot] Jul 2, 2024
77571e2
Merge pull request #233 from valbuild/changeset-release/main
freekh Jul 2, 2024
463cf10
On every re-render we reload all paths used in a module...
freekh Aug 7, 2024
493f5db
Reload paths if enabled changed...
freekh Aug 7, 2024
1921841
Fix broken stegaEncode of richtext objects that are null
freekh Aug 10, 2024
c9e9543
Version Packages
github-actions[bot] Aug 10, 2024
ab4e535
Merge pull request #234 from valbuild/changeset-release/main
freekh Aug 10, 2024
11874fc
Expose formatter (for prettier)
freekh Aug 11, 2024
6534ee4
Changeset
freekh Aug 11, 2024
e782069
Version Packages
github-actions[bot] Aug 11, 2024
55b25d5
Merge pull request #235 from valbuild/changeset-release/main
freekh Aug 11, 2024
886e187
Changeset
freekh Aug 11, 2024
c3d9772
Version Packages
github-actions[bot] Aug 11, 2024
ebf4762
Merge pull request #236 from valbuild/changeset-release/main
freekh Aug 11, 2024
d545f15
Upgrade rollup...
freekh Aug 12, 2024
0945272
Content view does not need to know if Val is enabled: it is only ther…
freekh Aug 13, 2024
67e089b
Add a ~ to path of fullscreen mode...
freekh Aug 13, 2024
d48a982
Fix example in JSDoc
freekh Aug 13, 2024
6148c13
Fix uninitilialized errors[path] if patch not found
freekh Aug 13, 2024
6475504
Update formatter signature to allow async formatting...
freekh Aug 13, 2024
eea03d7
Add formatter to example
freekh Aug 13, 2024
ff19abe
Avoid broken images when creating a new item
freekh Aug 14, 2024
ab899f1
Fix breadcrumbs rendring
freekh Aug 14, 2024
4d6215d
Update getPatches Server API to latest version...
freekh Aug 14, 2024
cb195fc
Add .nvmrc to directories where npm run dev is executed (so node vers…
freekh Aug 15, 2024
1061032
Fix broken omitPatch
freekh Aug 15, 2024
59fa56f
Specifically return new patch id on apply patch to avoid having to sc…
freekh Aug 15, 2024
9559ad9
Main content UX fixes: center and change max-w
freekh Aug 16, 2024
3821ce8
Fix broken react version (18.20.0)...
freekh Aug 19, 2024
56da54a
Format
freekh Aug 19, 2024
0cc28d6
Remove unused patchResetId...
freekh Aug 19, 2024
615a28f
Remove unused
freekh Aug 19, 2024
49a93fb
Fix init prompts that were missing a default anwer (if user uses --yes)
freekh Aug 19, 2024
bb238a2
Update richtext in init example to latest API version...
freekh Aug 19, 2024
7ddf5d3
Changeset
freekh Aug 19, 2024
df7974b
Version Packages
github-actions[bot] Aug 19, 2024
3a263b9
Merge pull request #237 from valbuild/changeset-release/main
freekh Aug 19, 2024
b6500b9
Changeset
freekh Aug 19, 2024
58a8bc0
Version Packages
github-actions[bot] Aug 19, 2024
700da53
Merge pull request #238 from valbuild/changeset-release/main
freekh Aug 19, 2024
03e89ad
Initial support for date schema
freekh Aug 20, 2024
608cbfc
Changeset
freekh Aug 20, 2024
e66ff5c
Merge pull request #239 from valbuild/date-schema-support
freekh Aug 20, 2024
4f4d94e
Version Packages
github-actions[bot] Aug 20, 2024
6fa7ff1
Merge pull request #240 from valbuild/changeset-release/main
freekh Aug 20, 2024
a0d97e2
Refactor fields out of ValCompositeFields and ValFormFields...
freekh Aug 21, 2024
d379bdd
Refactor ui components into folders and rename contentview => studio
freekh Aug 21, 2024
2decf16
Fix esbuild install error
kmidtlid Aug 21, 2024
9a78c85
Bump Next to 14.0.4
kmidtlid Aug 21, 2024
0026e80
Merge pull request #241 from valbuild/refactor-field-components
freekh Aug 21, 2024
216f4f0
Add Error response instead of silently failing when patches cannot be…
isakgb Aug 21, 2024
9b1887e
Make Date raw by default
kmidtlid Aug 21, 2024
0391918
Don't apply stega for dates
kmidtlid Aug 21, 2024
4b8300b
Add test script to eslint-plugin
freekh Aug 21, 2024
86935e0
Add no define with variable...
freekh Aug 21, 2024
76fe20e
Changeseet
freekh Aug 21, 2024
7553f2b
Add test for skipping stega on dates
kmidtlid Aug 21, 2024
75c63fb
Add changeset
kmidtlid Aug 21, 2024
dbf89be
Remove type parameter on date function...
freekh Aug 21, 2024
eab7c98
Remove isRaw parameter on DateSchema...
freekh Aug 21, 2024
416dd78
Calender style
Aug 21, 2024
e5e2f7f
Merge pull request #243 from valbuild/remove-stega-on-dates
kmidtlid Aug 22, 2024
1b6e4f9
Fix background of day picker
kmidtlid Aug 22, 2024
1712fa2
Start to create own dropdown in daypicker
kmidtlid Aug 22, 2024
ef30940
Init ApiRoutes...
freekh Aug 22, 2024
00c1d99
Calender style changed with dropdown option
Aug 22, 2024
0f525b9
Removed unused part of code
Aug 22, 2024
d227ceb
Lint fixed
Aug 22, 2024
360b783
Merge pull request #245 from valbuild/date-picker-styling
tartaruz Aug 22, 2024
0919f55
WIP: Work on typed server
isakgb Aug 22, 2024
2520d50
Update ApiRoutes
freekh Aug 22, 2024
2299f97
Add unauthorizedResponse to putFiles type
isakgb Aug 23, 2024
d827d32
Add several missing routes to ApiRoutes
isakgb Aug 23, 2024
6ded24d
Update ValRoutes with endspoints up to logout
freekh Aug 23, 2024
98ba6f4
Rewrite ValServer as ServerOf<Api>...
freekh Aug 23, 2024
c2f7e53
Format ValServer after rewrite to ServerOf<Api>
freekh Aug 23, 2024
eec9389
Use new ValServer in ValApiRouter
freekh Aug 23, 2024
96275ab
Remove test url from Api
freekh Aug 23, 2024
9338e87
Align /tree endpoint types in ValServer
freekh Aug 23, 2024
cd212fd
Change name from createValRouter to ValRouter
freekh Aug 24, 2024
cf1085c
Fix weird typos from prev commit
freekh Aug 24, 2024
92a8343
Fix endpoints definitions
freekh Aug 24, 2024
cfaf6a5
Use ApiRoutes in ValRouter
freekh Aug 24, 2024
ecd7862
Transform non-array query params back to underlying type
freekh Aug 24, 2024
cb0cdf0
Fix errors on missing methods, optional query params, missing headers
freekh Aug 24, 2024
30256f5
Make all val_session optional (for dev / local / fs mode)
freekh Aug 24, 2024
d614d51
Fix ValRouter types and validations
freekh Aug 26, 2024
6f75d71
Replace ValApi with typesafe ValClient...
freekh Aug 26, 2024
ce4d1e9
Make brand visible for shared (all external packages)...
freekh Aug 27, 2024
fc6f04b
Fix import
freekh Aug 27, 2024
88030ec
Remove unused imports
freekh Aug 27, 2024
2e46e76
Remove console.log
freekh Aug 27, 2024
cde5dc8
Make omit_patch optional
freekh Aug 27, 2024
d4cea4c
Fix broken paths and json type
freekh Aug 27, 2024
c089a3d
Fix broken tree when patches only occurs on one module
freekh Aug 27, 2024
6d73d2b
Fix broken log messages
freekh Aug 27, 2024
135218b
Fix broken log messages
freekh Aug 27, 2024
4aebab2
Optional cookies for redirects
freekh Aug 27, 2024
9df87f1
Validate request and response body in client
freekh Aug 27, 2024
bc23996
Add network_error to val client
freekh Aug 27, 2024
dc6a6f0
Add zod-validation-error to shared
freekh Aug 27, 2024
2d42850
Merge pull request #242 from valbuild/feat/add-eslint-no-define-with-…
freekh Aug 27, 2024
f116c37
Merge pull request #246 from valbuild/replace-val-api-with-val-client
freekh Aug 27, 2024
d9eb9c5
Changeset
isakgb Aug 27, 2024
e788924
Merge pull request #249 from valbuild/refactor/add-type-validation-to…
isakgb Aug 27, 2024
0728c55
Add support for accepted file mime types with validation errors
kmidtlid Aug 26, 2024
0030c20
Add support for accepted image mime types with validation errors
kmidtlid Aug 26, 2024
c72ea76
Make sure file mime type is defined
kmidtlid Aug 26, 2024
5222acd
Add accept types to input fields
kmidtlid Aug 27, 2024
5af7956
Move mime types to core
kmidtlid Aug 27, 2024
8e68258
Update mime type references
kmidtlid Aug 27, 2024
ace6dac
Add changeset
kmidtlid Aug 27, 2024
b31ce89
Add eslint rule to help devs remember to default export c.define in v…
freekh Aug 27, 2024
05bf9dc
Changeset
freekh Aug 27, 2024
5913dca
Merge pull request #247 from valbuild/mime-type-checking
kmidtlid Aug 27, 2024
b7fdc36
Rename ValStore => ValCache and remove unused useExternalSyncStore fu…
freekh Aug 28, 2024
0893544
Merge pull request #251 from valbuild/rename-val-store
freekh Aug 28, 2024
8e4aec6
Merge pull request #250 from valbuild/feat/add-eslint-default-export-…
freekh Aug 28, 2024
bc364fc
Add more graceful handling of failing patches in Studio
isakgb Aug 29, 2024
07ca462
Fix import error and only show delete broken patches button if there …
isakgb Aug 30, 2024
bf3ff3b
Changeset
isakgb Aug 30, 2024
eb9e409
Bump prettier version in root to latest
isakgb Sep 2, 2024
b37f579
Fix ValOps tests so they work with async prettier
isakgb Sep 2, 2024
c53b243
Use synchronizedPrettier to keep prettier syncronous in ValOps tests.
isakgb Sep 2, 2024
5ff49b9
Merge pull request #253 from valbuild/fix/prettier
freekh Sep 2, 2024
68136e9
Merge pull request #252 from valbuild/feat/add-error-handling-to-fail…
isakgb Sep 2, 2024
a8db105
Format
freekh Sep 4, 2024
b516e15
Convert richtext example to richtext object (what we will use going f…
freekh Sep 4, 2024
82d5cf8
WIP: change assert method to return a valid source (with types) and a…
freekh Aug 30, 2024
133427a
First iteration of assert with some tests
freekh Sep 1, 2024
4268b9d
Change Schema type params and assert function to have the correct typ…
freekh Sep 1, 2024
3d592ae
Finalize the assert method for schema...
freekh Sep 4, 2024
7dad624
Format
freekh Sep 4, 2024
cb91d7c
Fix typecheck errors related to new schema assert / schema signature …
freekh Sep 4, 2024
8d25468
Merge pull request #254 from valbuild/update-schema-assert
freekh Sep 9, 2024
dfdadbd
Init tooling package: intended for use in VS Code, CLI...
freekh Sep 9, 2024
23fa837
Add (old) module path map from vs code extension
freekh Sep 9, 2024
83b4564
Add typescript and core dependencies
freekh Sep 9, 2024
609f0b9
Fix validation error message for file / image metadata
freekh Sep 10, 2024
b1d23b4
Add missing jest config
freekh Sep 10, 2024
7fa9bbe
Update package lock with tooling package
freekh Sep 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": false,
"commit": false,
"fixed": [],
"linked": [["@valbuild/*"]],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["example-*"]
}
6 changes: 6 additions & 0 deletions .changeset/mighty-eels-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@valbuild/shared": patch
"@valbuild/ui": patch
---

Add error handling to failing patches in studio
8 changes: 8 additions & 0 deletions .changeset/real-rocks-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@valbuild/server": patch
"@valbuild/shared": patch
"@valbuild/core": patch
"@valbuild/ui": patch
---

Add mimetype validation
5 changes: 5 additions & 0 deletions .changeset/stale-keys-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@valbuild/eslint-plugin": patch
---

Add no c.define with variable eslint rule
9 changes: 9 additions & 0 deletions .changeset/stupid-rivers-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@valbuild/server": patch
"@valbuild/shared": patch
"@valbuild/core": patch
"@valbuild/next": patch
"@valbuild/ui": patch
---

Add type validation to API
7 changes: 7 additions & 0 deletions .changeset/tall-olives-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@valbuild/react": patch
"@valbuild/core": patch
"@valbuild/ui": patch
---

Remove steganography on dates
5 changes: 5 additions & 0 deletions .changeset/tricky-wasps-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@valbuild/eslint-plugin": patch
---

Add eslint rule to help devs remember to default export c.define in val modules
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
examples/next*
trials

dist
out
tsconfig.tsbuildinfo
27 changes: 27 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* @type {import("eslint").Linter.Config}
*/
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended",
"prettier",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react", "@typescript-eslint"],
settings: {
react: {
version: "detect",
},
},
};
83 changes: 83 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Check
on: push
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: npm
- run: npm ci
- run: npm run lint
format:
name: Check format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: npm
- run: npm ci
- run: npm run format
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: npm
- run: npm ci
- run: npm run build
- run: npx jest packages/server/src/readValFile.test.ts
build-next:
name: Build Next.js example
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: npm
- run: npm ci
- run: npm run build
working-directory: examples/next
typecheck:
name: Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: npm
- run: npm ci
- run: npm run -ws typecheck
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: npm
- run: npm ci
- run: npm test
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: npm
- run: npm ci
- uses: changesets/action@v1
with:
publish: npm run release
version: npm run version-packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules/
.next
dist
tsconfig.tsbuildinfo
.envrc
.tmp
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tsconfig.tsbuildinfo
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.17.0
17 changes: 17 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# next.js
examples/next*/.next/
examples/next*/out/

# production
examples/next*/build

trials

dist
tsconfig.tsbuildinfo

packages/ui/server/.tmp
out

.tmp
examples/next*/.val/*
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/node_modules": true
}
}
},
"cSpell.words": ["stega"]
}
108 changes: 108 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# Functional Source License, Version 1.0, Apache 2.0 Change License

## Abbreviation

FSL-1.0-Apache-2.0

## Notice

Copyright 2023 Fredrik Ekholdt and Blank AS.

## Terms and Conditions

### Licensor ("We")

The party offering the Software under these Terms and Conditions.

### The Software

The "Software" is each version of the software that we make available under
these Terms and Conditions, as indicated by our inclusion of these Terms and
Conditions with the Software.

### License Grant

Subject to your compliance with this License Grant and the Patents,
Redistribution and Trademark clauses below, we hereby grant you the right to
use, copy, modify, create derivative works, publicly perform, publicly display
and redistribute the Software for any Permitted Purpose identified below.

### Permitted Purpose

A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
means use of the Software in or for a commercial product or service that
competes with the Software or any other product or service we offer using the
Software as of the date we make the Software available.

Competing Uses specifically include using the Software:

1. as a substitute for any of our products or services;

2. in a way that exposes the APIs of the Software; and

3. in a product or service that offers the same or substantially similar
functionality to the Software.

Permitted Purposes specifically include using the Software:

1. for your internal use and access;

2. for non-commercial education;

3. for non-commercial research; and

4. in connection with software development services or managed services that
you provide to a licensee using the Software in accordance with these Terms
and Conditions.

### Patents

To the extent your use for a Permitted Purpose would necessarily infringe our
patents, the license grant above includes a license under our patents. If you
make a claim against any party that the Software infringes or contributes to
the infringement of any patent, then your patent license to the Software ends
immediately.

### Redistribution

The Terms and Conditions apply to all copies, modifications and derivatives of
the Software.

If you redistribute any copies, modifications or derivatives of the Software,
you must include a copy of or a link to these Terms and Conditions and not
remove any copyright notices provided in or with the Software.

### Disclaimer

THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.

IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.

### Trademarks

Except for displaying the License Details and identifying us as the origin of
the Software, you have no right under these Terms and Conditions to use our
trademarks, trade names, service marks or product names.

## Change License

On the second anniversary of the date we make the Software available, the
Software will become available under the Apache 2.0 license. On that date, the
Terms and Conditions above automatically terminate and the following terms
become effective:

Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License.

You may obtain a copy of the License at

<http://www.apache.org/licenses/LICENSE-2.0>

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
# Val
<p align="center">
<h1 align="center">Val</h1>
<p align="center">
✨ <a href="https://val.build">https://val.build</a> ✨
<br/>
content - super-charged - hard-coded
</p>
</p>

# 🐉 HERE BE DRAGONS 🐉

Val is PRE-ALPHA - MOST features are broken and in state of flux.

This is released only for **INTERNAL** **TESTING** PURPOSES.

# Information

Currently only the next integration is supported.

Head over to the [README](./packages/next/README.md) to learn how to try out Val in your NextJS project.
2 changes: 2 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/** @type {import("@babel/core").TransformOptions} */
module.exports = {
presets: ["@babel/preset-env", "@babel/preset-typescript"],
babelrcRoots: [".", "./packages/*"],
};
2 changes: 1 addition & 1 deletion examples/next/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "next/core-web-vitals"
"extends": ["next/core-web-vitals", "plugin:@valbuild/recommended"]
}
Loading