Skip to content

Commit

Permalink
Fix website demo (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiuch committed Nov 13, 2023
1 parent 90db9bd commit da2b475
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"dist": "yarn link-entries dist",
"build:clear": "ts-node --esm ./scripts/clearBuild.ts",
"build": "ts-node --esm ./scripts/build.ts",
"demo:build": "ts-node --esm ./scripts/buildDemo.ts",
"website:build": "ts-node --esm ./scripts/buildWebsite.ts",
"website:serve": "http-server -p 5001 ./website/dist",
"release:check": "yarn build:clear && yarn build && yarn src && yarn lint && yarn dist && yarn test:unit",
Expand Down
9 changes: 9 additions & 0 deletions scripts/buildDemo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { execSync } from 'child_process';
import fs from 'fs/promises';

(async function () {
execSync('yarn workspace example-todo export');
await fs.cp('./examples/todo/cosmos-export', './docs/out/demo', {
recursive: true,
});
})();

0 comments on commit da2b475

Please sign in to comment.