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

ci: test example building #122

Merged
merged 9 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ docs
coverage
test-results
.pnpm-store
.npmrc
tsconfig.tsbuildinfo
e2e/cypress/videos
e2e/cypress/screenshots
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
link-workspace-packages=deep
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need this so that pnpm -r run build can build packages first then build examples. Using "@prosemirror-adapter/lit": "workspace:*" in package.json can do this job too, but it won't allow stackblitz to open a sub directory like examples/lit and install dependencies.

3 changes: 2 additions & 1 deletion examples/lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"type": "module",
"private": true,
"scripts": {
"start": "vite"
"start": "vite",
"build": "vite build"
},
"dependencies": {
"@lit-labs/context": "^0.5.1",
Expand Down
3 changes: 2 additions & 1 deletion examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"private": true,
"license": "MIT",
"scripts": {
"start": "vite"
"start": "vite",
"build": "vite build"
},
"dependencies": {
"@prosemirror-adapter/react": "*",
Expand Down
3 changes: 2 additions & 1 deletion examples/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"license": "MIT",
"scripts": {
"start": "vite",
"dev": "vite"
"dev": "vite",
"build": "vite build"
},
"dependencies": {
"@prosemirror-adapter/solid": "*",
Expand Down
4 changes: 3 additions & 1 deletion examples/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"type": "module",
"private": true,
"scripts": {
"start": "vite"
"start": "vite",
"build": "vite build"
},
"dependencies": {
"@prosemirror-adapter/svelte": "*",
Expand All @@ -18,6 +19,7 @@
"devDependencies": {
"@sveltejs/adapter-auto": "^3.3.1",
"@sveltejs/kit": "^2.12.2",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.2",
"svelte": "^5.14.4",
Expand Down
10 changes: 5 additions & 5 deletions examples/svelte/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import adapter from '@sveltejs/adapter-auto'
import { vitePreprocess } from '@sveltejs/kit/vite'
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'

/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// Consult https://svelte.dev/docs/kit/integrations
// for more information about preprocessors
preprocess: vitePreprocess(),

kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
adapter: adapter(),
},
}
Expand Down
3 changes: 2 additions & 1 deletion examples/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"private": true,
"license": "MIT",
"scripts": {
"start": "vite"
"start": "vite",
"build": "vite build"
},
"dependencies": {
"@prosemirror-adapter/vue": "*",
Expand Down
20 changes: 8 additions & 12 deletions pnpm-lock.yaml

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

Loading