Skip to content

Commit

Permalink
chore: set up Preact plugin for release
Browse files Browse the repository at this point in the history
  • Loading branch information
fwouts committed Dec 5, 2022
1 parent c3fb8bc commit 855790e
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/release-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- if: steps.checkIframeVersion.outputs.changed == 'true'
run: cd iframe && pnpm publish --no-git-checks --access public
- id: checkPluginPreactVersion
uses: EndBug/version-check@v2.1.1
with:
diff-search: true
file-name: ./frameworks/preact/package.json
token: ${{ secrets.GITHUB_TOKEN }}
- if: steps.checkPluginPreactVersion.outputs.changed == 'true'
run: cd frameworks/preact && pnpm publish --no-git-checks --access public
- id: checkPluginReactVersion
uses: EndBug/version-check@v2.1.1
with:
Expand Down
1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@previewjs/api": "workspace:*",
"@previewjs/core": "workspace:*",
"@previewjs/iframe": "workspace:*",
"@previewjs/plugin-preact": "workspace:*",
"@previewjs/plugin-react": "workspace:*",
"@previewjs/plugin-solid": "workspace:*",
"@previewjs/plugin-svelte": "workspace:*",
Expand Down
1 change: 1 addition & 0 deletions dev-workspace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"dependencies": {
"@previewjs/app": "workspace:*",
"@previewjs/core": "workspace:*",
"@previewjs/plugin-preact": "workspace:*",
"@previewjs/plugin-react": "workspace:*",
"@previewjs/plugin-solid": "workspace:*",
"@previewjs/plugin-svelte": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion frameworks/preact/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@previewjs/plugin-preact",
"version": "1.0.0",
"version": "0.0.0",
"license": "MIT",
"author": {
"name": "Klemen Slavič",
Expand Down
1 change: 1 addition & 0 deletions loader/src/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export async function loadModules({
const setupEnvironment: core.SetupPreviewEnvironment =
requireModule(packageName);
const frameworkPluginFactories: core.FrameworkPluginFactory[] = [
requireModule("@previewjs/plugin-preact"),
requireModule("@previewjs/plugin-react"),
requireModule("@previewjs/plugin-solid"),
requireModule("@previewjs/plugin-svelte"),
Expand Down
4 changes: 4 additions & 0 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@previewjs/core",
"@previewjs/csf3",
"@previewjs/iframe",
"@previewjs/plugin-preact",
"@previewjs/plugin-react",
"@previewjs/plugin-solid",
"@previewjs/plugin-svelte",
Expand Down
4 changes: 4 additions & 0 deletions scripts/release-apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ async function main() {
);
const { version: coreVersion } = await import("../core/package.json");
const { version: vfsVersion } = await import("../vfs/package.json");
const { version: preactPluginVersion } = await import(
"../frameworks/preact/package.json"
);
const { version: reactPluginVersion } = await import(
"../frameworks/react/package.json"
);
Expand All @@ -38,6 +41,7 @@ async function main() {
{
dependencies: {
"@previewjs/core": coreVersion,
"@previewjs/plugin-preact": preactPluginVersion,
"@previewjs/plugin-react": reactPluginVersion,
"@previewjs/plugin-solid": solidPluginVersion,
"@previewjs/plugin-svelte": sveltePluginVersion,
Expand Down
5 changes: 5 additions & 0 deletions scripts/release-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ const packages: Package[] = [
dirPath: "iframe",
tagName: "iframe",
},
{
name: "plugin-preact",
dirPath: "frameworks/preact",
tagName: "plugins/preact",
},
{
name: "plugin-react",
dirPath: "frameworks/react",
Expand Down

0 comments on commit 855790e

Please sign in to comment.