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

Export editor as web component #3554

Merged
merged 38 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
dba48e2
chore(web-component): Experimentations with web component export
Mar 22, 2024
617031a
Merge branch 'staging' into feat/wrap-editor-in-web-component
Mar 25, 2024
8afd10c
fix(editor-package): Prepare editor for web component export
Mar 25, 2024
843051f
wip(editor-package): Add commented out useAuth code, so I can start a…
Mar 25, 2024
c6921e8
feat(editor-package): Export web component (fixed initial state for t…
Mar 25, 2024
a11b86f
chore: Run prettier
Mar 25, 2024
bd775db
Merge branch 'staging' into feat/wrap-editor-in-web-component
Mar 25, 2024
2295e1b
fix(editor-package): Thanks to Botho, create Serlo static renderer fo…
Mar 25, 2024
7f97bdd
chore(editor-package): Failed experiment with css module
Mar 26, 2024
c006954
fix(editor-package): Import KaTeX styles through npm
Mar 26, 2024
fbe13eb
feat(editor-package): Add extra build for web component
Mar 26, 2024
076c80c
refactor(editor-package): Move web component into its own package
Mar 26, 2024
fda3892
Merge branch 'staging' into feat/wrap-editor-in-web-component
Apr 2, 2024
7d02492
chore(editor-package): Try different configs
Apr 2, 2024
ca1e276
chore(editor-package): Fix import types and get web component to build
Apr 2, 2024
eca876f
chore(editor-package): Fix lint issues with moduleResolution and ramd…
Apr 2, 2024
019b2b9
fix(editor-package): Fix lint errors in editor package
Apr 2, 2024
fae0045
chore(editor-package): Remove `lint:tsc`
Apr 2, 2024
5355d3c
chore(editor-package): Running eslint relies on editor package being …
Apr 2, 2024
ec35b9b
fix(editor-package): Add supported example to web component & remove …
Apr 3, 2024
f278978
Merge branch 'staging' into feat/wrap-editor-in-web-component
Apr 4, 2024
ea05569
fix(editor-package): Use new config object implemented by Vito
Apr 4, 2024
1268819
fix(editor-package): Eslint issue and remove old comments
Apr 4, 2024
ffe55d8
Merge branch 'staging' into feat/wrap-editor-in-web-component
Apr 5, 2024
f5c88b6
fix(editor-package): Address feedback of Shane and Botho
Apr 5, 2024
0488828
chore(editor-package): Remove old comments about shadow-dom
Apr 5, 2024
42833e3
chore(editor-package): Bump vite and vite plugins
Apr 5, 2024
cb6c566
fix(editor-package): Remove caret in versioning from dts plugin
Apr 5, 2024
5ede9fe
Merge branch 'staging' into feat/wrap-editor-in-web-component
Apr 12, 2024
01627aa
fix: Import path for math
Apr 12, 2024
e18c3f8
fix(editor-package): Implement feedback of Kai
Apr 12, 2024
8acf2c6
chore(editor-package): Cleanup unneeded styles (moved to npm)
Apr 12, 2024
4f53dbf
Merge branch 'staging' into feat/wrap-editor-in-web-component
Apr 15, 2024
b69efc9
refactor(editor-package): Replace broadcastChannel with custom event
Apr 15, 2024
1621cc4
Merge branch 'staging' into feat/wrap-editor-in-web-component
Apr 16, 2024
bc20a97
Merge branch 'staging' into feat/wrap-editor-in-web-component
Apr 18, 2024
70297eb
Merge branch 'staging' into feat/wrap-editor-in-web-component
Apr 22, 2024
ecd3e27
docs(editor-package): Add installation and usage to web component
Apr 22, 2024
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
37 changes: 37 additions & 0 deletions .github/workflows/editor-web-component.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Editor Web Component

on:
push:
branches:
- staging

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
- run: yarn
- run: yarn build:prisma

- name: Build editor web component package
run: yarn editor-web-component:build

- name: Check if current version is already published
id: check_published
run: |
CURRENT_VERSION=$(node -p "require('./packages/editor-web-component/package.json').version")
if npm view @serlo/editor-web-component@$CURRENT_VERSION > /dev/null 2>&1; then
echo "::set-output name=already_published::true"
else
echo "::set-output name=already_published::false"
fi

- name: Publish to npm
if: steps.check_published.outputs.already_published == 'false'
run: yarn editor-web-component:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading