Skip to content

Commit

Permalink
fix(demo): fix demo build
Browse files Browse the repository at this point in the history
Also fixes the version of codemirror-json-schema in formule to a previou one as the latest versions
where generating a bunch of unnecessary static files on build
  • Loading branch information
miguelgrc committed Aug 13, 2024
1 parent 6326c95 commit 4028800
Show file tree
Hide file tree
Showing 8 changed files with 997 additions and 961 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Override react-formule with latest npm release
run: yarn add react-formule
- name: Install
run: yarn
- name: Build
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
2 changes: 1 addition & 1 deletion formule-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-formule": "latest"
"react-formule": "file:.."
},
"devDependencies": {
"@types/react": "^18.2.15",
Expand Down
2 changes: 1 addition & 1 deletion formule-demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function App() {
padding: "0px 25px",
}}
>
<FormPreview liveValidate={true} />
<FormPreview liveValidate={true} hideAnchors={false} />
</Col>
</Row>
</FormuleContext>
Expand Down
1 change: 1 addition & 0 deletions formule-demo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"useDefineForClassFields": true,
"lib": ["ES2023", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
Expand Down
842 changes: 430 additions & 412 deletions formule-demo/yarn.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@
"@codemirror/lint": "^6.5.0",
"@codemirror/merge": "^6.1.1",
"@reduxjs/toolkit": "^1.9.5",
"@rjsf/antd": "^5.19.0",
"@rjsf/core": "^5.19.0",
"@rjsf/utils": "^5.19.0",
"@rjsf/validator-ajv8": "^5.19.0",
"@rjsf/antd": "5.19.4",
"@rjsf/core": "5.19.4",
"@rjsf/utils": "5.19.4",
"@rjsf/validator-ajv8": "5.19.4",
"antd": "^5.7.3",
"axios": "^1.4.0",
"codemirror": "^6.0.1",
"codemirror-json-schema": "^0.7.1",
"codemirror-json-schema": "0.7.1",
"immutability-helper": "^3.1.1",
"katex": "^0.16.8",
"markdown-it": "^13.0.1",
Expand Down
1,096 changes: 557 additions & 539 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 4028800

Please sign in to comment.