Skip to content

Commit

Permalink
chore(demo): use jwcjs package in workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Dec 22, 2022
1 parent b581328 commit 4f529e1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"license": "ISC",
"devDependencies": {
"vite": "^4.0.1",
"jwcjs": "*"
"jwcjs": "workspace:*"
}
}
10 changes: 7 additions & 3 deletions demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,13 @@ export class App extends JwcComponent {
count is {String(this.count)}
</button>
</div>
<p class="read-the-docs">
Click on the Vite and Jwc logos to learn more
</p>
{Array.from({ length: 2 }).map((_, i) => (
<>
<p class="read-the-docs">
Click on the Vite and Jwc logos to learn more
</p>
</>
))}
</>
);
}
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4f529e1

Please sign in to comment.