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

fix: use template in stackblitz pkr.pr.new #7

Merged
merged 4 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
feat: add default template
  • Loading branch information
saurabhdaware committed Nov 11, 2024
commit 4240b9f7ec8970f760be4ad9956fd63077f6a871
24 changes: 24 additions & 0 deletions __tests__/examples/default/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
15 changes: 15 additions & 0 deletions __tests__/examples/default/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
</head>

<body>
<bsky-widget data-handle="patak.dev"></bsky-widget>
<script type="module" src="/node_modules/bsky-widget/dist/index.js"></script>
</body>

</html>
17 changes: 17 additions & 0 deletions __tests__/examples/default/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "default",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"bsky-widget": "*"
},
"devDependencies": {
"vite": "^5.4.10"
}
}
6 changes: 6 additions & 0 deletions __tests__/examples/default/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from "vite";

// https://vite.dev/config/
export default defineConfig({
plugins: [],
});
2 changes: 1 addition & 1 deletion __tests__/examples/react/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pkg-new-template",
"name": "react-template",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down