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

Add meteor admin sdk #5

Merged
merged 258 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
258 commits
Select commit Hold shift + click to select a range
b79e24c
Fix JSON parsing of unsupported postMessages and fix targetOrigin
jleifeld Oct 12, 2021
da522b1
Add reload action
jleifeld Oct 12, 2021
072eebe
Add fallback data when no data is defined
jleifeld Oct 12, 2021
159deaf
Add additional checks
jleifeld Oct 12, 2021
644609f
Rename repository to admin-extension-sdk
jleifeld Nov 22, 2021
b4473e5
Combine two Github jobs in one workflow
jleifeld Nov 22, 2021
220e2ba
Add basic tests for send and receive data
jleifeld Nov 22, 2021
e4daa79
Add origins to postMessage api
jleifeld Nov 22, 2021
32c4394
NEXT-18158 - make postmessage properties private
jleifeld Nov 22, 2021
09e9d27
Update badges
jleifeld Nov 22, 2021
ed0dcb6
Refactor library, add new export structure and integrate factories fo…
jleifeld Nov 22, 2021
2c78d3b
Update docs for supporting all exports
jleifeld Nov 23, 2021
80653b1
Add API for dispatching notifications
jleifeld Nov 23, 2021
6c0af82
Bump up version to 0.0.6
jleifeld Nov 23, 2021
63454b7
Move type definitions for messages to their domain
jleifeld Nov 23, 2021
13eeb09
Convert build process from rollup to tsc
jleifeld Nov 23, 2021
d57a061
Fix wrong module definition
jleifeld Nov 23, 2021
c6b213b
Bump up version
jleifeld Nov 23, 2021
227f57c
Update target to ES2015
jleifeld Nov 23, 2021
1bd90a0
Change folder structure
jleifeld Nov 24, 2021
63a91c6
optimize folder structure
jleifeld Nov 24, 2021
0b33fc0
Update docs paths
jleifeld Nov 24, 2021
e0d5a73
Add ESLint
jleifeld Nov 24, 2021
9265c63
Add functionality to add methods to the options in messages
jleifeld Nov 24, 2021
73816df
Bump up version to 0.0.11
jleifeld Nov 24, 2021
84007fc
Make uniqueID more unique
jleifeld Nov 24, 2021
8816b6a
Add comma-dangle rule and add context to API
jleifeld Nov 25, 2021
4d476f9
Release version 0.0.12
jleifeld Nov 25, 2021
b97d91a
Refactor message types names to match their scope
jleifeld Nov 25, 2021
a071431
Update context
jleifeld Nov 25, 2021
1071d4a
Add reload to window API
jleifeld Nov 25, 2021
ab99e16
Add functionality for subscriptions
jleifeld Nov 25, 2021
994dd62
Write test for pub/sub in cypress
jleifeld Nov 25, 2021
94dfb3e
Add subscriber for context
jleifeld Nov 25, 2021
2ef72d6
Change cypress browser to chrome headless for tests
jleifeld Nov 25, 2021
e93129f
Change cypress browser in pipeline to chrome
jleifeld Nov 25, 2021
83afc6a
Release version 0.0.16
jleifeld Nov 26, 2021
9015448
Update README with new content
jleifeld Nov 26, 2021
d8ca6d7
Add CDN option
jleifeld Nov 26, 2021
8633b35
Bump up version
jleifeld Nov 26, 2021
a5c907c
Convert documentation from App Actions to Extension SDK
jleifeld Nov 29, 2021
7344a30
Add emojis to feature list
jleifeld Nov 29, 2021
32fee06
Add quick start guide
jleifeld Nov 29, 2021
3f5af83
Add dummy search
jleifeld Nov 29, 2021
2a37cf7
Add reference documentation
jleifeld Nov 30, 2021
3531d2b
Bump up version
jleifeld Nov 30, 2021
1d8ef6b
Fix markdown link
jleifeld Nov 30, 2021
df3e97e
Add documentation for Window API
jleifeld Dec 1, 2021
7563c78
Update search configuration
jleifeld Dec 1, 2021
faa64fc
Add usage to documentation
jleifeld Dec 2, 2021
b089b71
Add documentation about the internal logic
jleifeld Dec 2, 2021
440b2d1
Add API for card extensions
jleifeld Dec 6, 2021
c6795c0
Change proprety nesting in ui component renderer
jleifeld Dec 7, 2021
ab6e9bd
Fix component property
jleifeld Dec 7, 2021
07d8c73
Optimize documentation grammar and introduce componentSections
jleifeld Dec 8, 2021
fd783de
Bump up version
jleifeld Dec 8, 2021
70bbe9b
Add location utility
jleifeld Dec 20, 2021
d43d2b8
Add optional src to component section
jleifeld Dec 21, 2021
8c50eb7
Add location height utility
jleifeld Dec 21, 2021
2afab4a
Add locationId property to locationUpdateHeight event
jleifeld Dec 21, 2021
d492c51
Add autoResizing for locations
jleifeld Dec 21, 2021
675a1ec
Add automatic src to uiComponentSectionRenderer
jleifeld Dec 21, 2021
e17e35e
Add automatic src to uiComponentSections
jleifeld Dec 21, 2021
b5827dc
Add check for iFrame
jleifeld Dec 22, 2021
907a20b
Add documentation for the vue devtools
jleifeld Dec 28, 2021
071eace
Fix broken doc link
jleifeld Dec 28, 2021
b58df6f
Add documentation for the concepts
jleifeld Dec 28, 2021
bab5032
Add api reference documentation for the locations
jleifeld Dec 28, 2021
b0b1548
Add api reference documentation for compoent sections
jleifeld Dec 28, 2021
12503d6
Fix cors communication
seggewiss Dec 29, 2021
2f7aefb
Merge pull request #1 from shopware/fix-cors-communication
jleifeld Dec 29, 2021
e78cf95
Add eslint rules
seggewiss Dec 29, 2021
6142444
Merge pull request #2 from shopware/add-eslint-rules
jleifeld Dec 29, 2021
862e961
NEXT-18129 - add tab functioniality
jleifeld Jan 3, 2022
131660a
Merge pull request #3 from shopware/next-18129/add-tab-functionality
seggewiss Jan 3, 2022
421afbf
Implement privileges
seggewiss Jan 4, 2022
572b54c
Merge pull request #4 from shopware/implement-privileges
jleifeld Jan 4, 2022
cdb6f70
Export extension type
seggewiss Jan 4, 2022
3520fbb
Merge pull request #5 from shopware/export-extension-type
jleifeld Jan 4, 2022
90518a9
Increase send timeout
seggewiss Jan 5, 2022
25bdea3
Merge pull request #6 from shopware/increase-send-timeout
jleifeld Jan 5, 2022
5b578b1
Implement menu item capability
seggewiss Jan 12, 2022
1d59573
Merge pull request #7 from shopware/implement-menu-item-capability
jleifeld Jan 12, 2022
d002ba9
Implement settings item
seggewiss Jan 14, 2022
faeba32
Merge pull request #8 from shopware/implement-settings-item
jleifeld Jan 17, 2022
8b8f6ef
Implement main modules
seggewiss Jan 18, 2022
ae74a3d
Merge pull request #9 from shopware/implement-main-module
jleifeld Jan 18, 2022
b21b783
Bump node version to lts gallium
seggewiss Jan 19, 2022
338b2cb
Merge pull request #10 from shopware/bump-node-version-to-lts-gallium
jleifeld Jan 19, 2022
11c64a1
NEXT-18128 - implement modal capability
jleifeld Jan 19, 2022
768eaaf
Merge pull request #11 from shopware/next-18128/implement-modal-capab…
seggewiss Jan 19, 2022
510b2a9
Fix function handling cross domain
seggewiss Jan 20, 2022
8687331
Merge pull request #12 from shopware/fix-function-handling-cross-domain
jleifeld Jan 20, 2022
87a50a1
Add information to modal docs
jleifeld Jan 20, 2022
0ca308f
Merge pull request #13 from shopware/next-18128/add-information-to-mo…
seggewiss Jan 20, 2022
9329976
Implement action buttons
seggewiss Jan 24, 2022
a3bb1db
Merge pull request #15 from shopware/implement-action-buttons
jleifeld Jan 24, 2022
1398687
add license to package.json
shyim Jan 24, 2022
73431d2
Merge pull request #16 from shopware/shyim-patch-1
jleifeld Jan 24, 2022
37944b6
NEXT-19682 - move E2E tests from cypress to playwright
jleifeld Jan 21, 2022
e794766
Merge pull request #14 from shopware/next-19682/implement-better-e2e-…
seggewiss Jan 24, 2022
e694a89
NEXT-19617 - add context information about app and sw version
jleifeld Jan 25, 2022
35db061
Merge pull request #17 from shopware/next-19617/add-extension-api-con…
jleifeld Jan 25, 2022
b4f54af
Add feature flag to docs
seggewiss Jan 26, 2022
8386dc2
Merge pull request #18 from shopware/add-feature-flag-to-docs
jleifeld Jan 26, 2022
47e4d19
NEXT-20452 - add base classes for data handling
jleifeld Mar 8, 2022
cef8e26
Merge pull request #19 from shopware/next-20452/add-abstract-entity-c…
seggewiss Mar 9, 2022
2bd6b77
Add entity class
seggewiss Mar 9, 2022
6969a68
Merge pull request #20 from shopware/add-entity-class
jleifeld Mar 9, 2022
2b2f988
Add entity collection
seggewiss Mar 9, 2022
7408941
Merge pull request #21 from shopware/add-entity-collection
jleifeld Mar 9, 2022
6c1fd82
Prepare entity and collection for admin usage
seggewiss Mar 10, 2022
16c2fa1
Merge pull request #24 from shopware/prepare-entity-and-collection-fo…
jleifeld Mar 10, 2022
d457cff
Add serializer for Criteria
jleifeld Mar 9, 2022
3e2708d
Merge pull request #23 from shopware/next-20473/add-criteria-serializer
seggewiss Mar 10, 2022
18574b0
Add entity and collection serializer
seggewiss Mar 14, 2022
8717e3c
Merge pull request #25 from shopware/add-entity-and-collection-serial…
jleifeld Mar 15, 2022
b32486e
Implement repository to SDK
jleifeld Mar 9, 2022
80e1268
Merge pull request #22 from shopware/next-20386/implement-repository-…
seggewiss Mar 16, 2022
7a3746d
NEXT-20603 - make serializer non mutable
jleifeld Mar 16, 2022
eadcf37
Merge pull request #26 from shopware/next-20603/make-serializer-not-m…
seggewiss Mar 17, 2022
13047e8
refactor serializer
jleifeld Mar 17, 2022
9c5d05a
Merge pull request #27 from shopware/next-20603/refactor-serializer
seggewiss Mar 17, 2022
0357bbf
Implement error handling
seggewiss Mar 18, 2022
0766405
Merge pull request #29 from shopware/implement-error-handling
jleifeld Mar 18, 2022
4ea2f1f
NEXT-20552 - add validator for channel
jleifeld Mar 18, 2022
d5666d1
Merge pull request #28 from shopware/next-20552/add-validator-for-cha…
seggewiss Mar 21, 2022
185d001
Fix wrong example in documentation
jleifeld Mar 23, 2022
7d8c951
Merge pull request #30 from shopware/fix-currency-documentation-mistake
jleifeld Mar 23, 2022
8236340
Add import type eslint rule
seggewiss Mar 23, 2022
9e87079
Merge pull request #31 from shopware/add-import-type-eslint-rule
jleifeld Mar 23, 2022
f36746b
Implement data handling
seggewiss Mar 24, 2022
b7707df
Merge pull request #32 from shopware/implement-data-handling
jleifeld Mar 25, 2022
e532ef2
NEXT-20800 - fix validation in send method
jleifeld Mar 25, 2022
a3be1a7
Merge pull request #34 from shopware/next-20800/fix-validation-in-gen…
jleifeld Mar 25, 2022
5040765
Add export to extensions type
jleifeld Mar 25, 2022
3d62743
Update README.md
seggewiss Apr 6, 2022
7c4778e
Merge pull request #35 from shopware/remove-readme-warning
jleifeld Apr 6, 2022
3a50faf
added countSorting for criteria
dneustadt Apr 22, 2022
804832e
Add small code example how to add base-app-url
tobiasberge May 4, 2022
3de11b4
Improve Tabs UI example, fix syntax error
tobiasberge May 4, 2022
75df645
Merge pull request #39 from shopware/tabs-ui-docs
seggewiss May 4, 2022
5f4e665
Merge pull request #38 from shopware/base-app-url-example
seggewiss May 4, 2022
2ae435f
Apply documentation feedback
seggewiss May 4, 2022
50ab17b
Merge pull request #40 from shopware/apply-documentation-feedback
seggewiss May 5, 2022
2f1caba
Apply feedback
seggewiss May 6, 2022
5de36ae
Merge pull request #41 from shopware/apply-feedback
htkassner May 6, 2022
0ba18a2
Change criteria defaults
seggewiss May 11, 2022
fc2656e
Merge pull request #42 from shopware/change-criteria-defaults
jleifeld May 12, 2022
c4d816f
Move changelog
seggewiss May 12, 2022
6ff3d97
Merge pull request #43 from shopware/move-changelog
jleifeld May 12, 2022
99d7fed
Change data handling to subscribing and get
seggewiss May 16, 2022
94366b9
Merge pull request #44 from shopware/change-data-handling-to-subscrib…
jleifeld May 16, 2022
edec40f
NEXT-21599 - add module information and router push possibility
jleifeld May 19, 2022
264e2f3
Merge pull request #45 from shopware/next-21599/provide-ids-for-menu-…
seggewiss May 20, 2022
5f8f6bc
Remove feature flag notice
seggewiss May 24, 2022
d161701
Merge pull request #46 from shopware/remove-feature-flag-notice
jleifeld May 24, 2022
8fae8ab
NEXT-16552 - Add CMS element support
marcelbrode May 24, 2022
5d701ec
Merge pull request #37 from shopware/next-16552/cms-elements
jleifeld May 24, 2022
2149436
Add additional privileges
seggewiss Jun 7, 2022
fd5fca0
Merge pull request #48 from shopware/add-additional-privileges
jleifeld Jun 7, 2022
6118cb3
Update documentation about cms feature
jleifeld Jun 15, 2022
aa3a4f3
Update docs
jleifeld Jun 15, 2022
9fc5a28
Merge pull request #36 from shopware/next-21006/add-criteria-sort-typ…
jleifeld Jun 28, 2022
b3a185c
NEXT-20936 - Add ui.paymentOverviewCard
May 31, 2022
7ef3501
Merge pull request #47 from shopware/next-20936/ui-payment-overview-card
jleifeld Jun 29, 2022
a61901e
Fix typo
jkrzefski Jun 29, 2022
fd29f22
NEXT-22675 - add documentation about normal component rendering for l…
jleifeld Aug 12, 2022
69365a5
Merge pull request #51 from jkrzefski/patch-1
jleifeld Aug 15, 2022
3960351
Merge pull request #53 from shopware/next-22675/add-normal-component-…
seggewiss Aug 19, 2022
8e572a9
Add feature disclaimer
seggewiss Aug 31, 2022
3066dd0
Merge pull request #54 from shopware/add-feature-disclaimer
seggewiss Aug 31, 2022
94cc891
NEXT-16552 - Mentioned version number of CMS elements via AdminExtens…
marcelbrode Oct 19, 2022
90190cc
Merge pull request #55 from shopware/next-16552/feature/cms-meets-app
jleifeld Oct 19, 2022
6a73b19
NEXT-23118 - Update data docs
seggewiss Nov 28, 2022
b82cd23
Merge pull request #57 from shopware/next-23118/update-data-docs
jleifeld Nov 28, 2022
b8b6a07
NEXT-23096 - add types to entities
jleifeld Dec 21, 2022
a766d9a
Merge pull request #58 from shopware/next-23096/add-types-to-entities
seggewiss Dec 23, 2022
59e1601
NEXT-24739 - improve channel performance
jleifeld Dec 29, 2022
eaa232d
Merge pull request #61 from shopware/next-24739/improve-channel-perfo…
seggewiss Dec 29, 2022
f304d36
NEXT-23096 - fix ts declarations
jleifeld Jan 5, 2023
3eaed4f
Merge pull request #62 from shopware/next-23096/fix-ts-declarations
seggewiss Jan 5, 2023
639ce40
Add location get method
jleifeld Jan 25, 2023
57d23ef
Merge pull request #64 from shopware/add-location-get
jleifeld Jan 25, 2023
e500a10
Introduce devenv
seggewiss Feb 13, 2023
6944898
Merge pull request #66 from shopware/introduce-devenv
jleifeld Feb 13, 2023
8e0a20d
Update index.md
wannevancamp Mar 12, 2023
012c54f
Implement language switch, smart bar buttons for main module and add …
crisalder2806 Feb 2, 2023
1f45783
Merge pull request #65 from crisalder2806/implement-smart-bar-buttons…
jleifeld Mar 24, 2023
2ca9975
Update component-section.md
PheysX Apr 24, 2023
71fae3d
Enable provenance
shyim May 14, 2023
fc25acb
ci: update actions
shyim May 14, 2023
8407c2a
Merge pull request #72 from shopware/enable-provenance
jleifeld May 15, 2023
bf32324
chore: increase version
shyim May 15, 2023
24d0271
NEXT-25822 - improve documenation about data get
jleifeld May 15, 2023
1872484
Merge pull request #73 from shopware/next-25822/improve-documentation…
seggewiss May 15, 2023
fdafbc5
fix: update node version to 18
shyim May 15, 2023
2dee947
Merge pull request #74 from shopware/node18
jleifeld May 17, 2023
e347c9a
NEXT-25821 - add documenation about using the same domain
jleifeld May 22, 2023
696b3d3
Merge pull request #75 from shopware/next-25821/add-documentation-abo…
seggewiss May 23, 2023
1c54928
Merge pull request #71 from PheysX/patch-1
jleifeld May 24, 2023
9a0efaa
Merge pull request #68 from wannevancamp/patch-1
jleifeld May 24, 2023
1f7ecdc
NEXT-25476 - fix repository data handling with associations
jleifeld May 24, 2023
03207ff
Merge pull request #76 from shopware/next-25476/fix-repository-data-h…
seggewiss May 25, 2023
93cefca
NEXT-25020 - add user context information
jleifeld May 24, 2023
6d0f92a
Merge pull request #77 from shopware/next-25020/add-user-context-info…
jleifeld May 25, 2023
20ede42
Apply scd feedback
seggewiss May 25, 2023
40078bd
Merge pull request #78 from shopware/apply-scd-feedback
seggewiss May 25, 2023
f1a7625
Make tabs non required
jleifeld May 31, 2023
7a82810
Merge pull request #79 from shopware/make-tabs-optional
seggewiss May 31, 2023
5b711bb
NEXT-24205 - add shared persistent store
jleifeld May 31, 2023
de34cac
NEXT-24207 - add routing for iframes
jleifeld Jun 2, 2023
f666ba6
Add warning for unreleased features
jleifeld Jun 7, 2023
ebbe8ab
Add tags to publish action
jleifeld Jun 13, 2023
82c6747
NEXT-28243 - improve dataset handling with selector
jleifeld Jun 13, 2023
fe671d5
NEXT-28243 - fix permissions on same origin
jleifeld Jun 21, 2023
d3e0a67
Fix Invalid URL type error
jleifeld Jun 21, 2023
27370e3
NEXT-28963 - Fix data handling types
NiklasLimberg Jul 6, 2023
91027af
Fix repository permissions
seggewiss Oct 9, 2023
45c431e
ci: update publish workflow
shyim Oct 9, 2023
3b87fe2
ci: fix permission
shyim Oct 9, 2023
43da118
Improve installation guide
seggewiss Oct 25, 2023
71c17bc
Fix typo on quotes
JoshuaBehrens Oct 23, 2023
20fc89f
Change code example to have two distinct variable names
JoshuaBehrens Oct 23, 2023
03998bf
Fix package exports
seggewiss Oct 9, 2023
23b08db
NEXT-26696 - Rename SDK
seggewiss Jan 15, 2024
305d95c
NEXT-26696 - Fix github actions
seggewiss Jan 15, 2024
452425c
NEXT-26696 - Fix docs
seggewiss Jan 16, 2024
136849c
NEXT-32832 - Allow toggling the modal footer
sydinh Jan 19, 2024
8522b01
NEXT-32745 - fix-circular-loop-in-serializer
Feb 5, 2024
68f535e
NEXT-32745 - Fix circular permissions
seggewiss Feb 5, 2024
16230a9
NEXT-32745 - Fix circular references
seggewiss Feb 6, 2024
68fdbfb
NEXT-33446 - move project into monorepo structure
Haberkamp Feb 8, 2024
4811caa
Merge remote-tracking branch 'admin-sdk/trunk'
Haberkamp Feb 8, 2024
4b3eec3
NEXT-33446 - rename lint command to lint:all in admin-sdk
Haberkamp Feb 8, 2024
4ef77d5
NEXT-33446 - remove linting job from old admin-sdk pipeline
Haberkamp Feb 8, 2024
470fef6
NEXT-33446 - rename test scripts so they work with turbo
Haberkamp Feb 8, 2024
9c71515
NEXT-33446 - remove old and unused test workflow in admin-sdk
Haberkamp Feb 8, 2024
6dd4e91
NEXT-33446 - update pnpm-lock.yaml file to include admin-sdk dependen…
Haberkamp Feb 8, 2024
37d1976
NEXT-33446 - move job to check for circular dependencies to root
Haberkamp Feb 8, 2024
cef1897
NEXT-33446 - move e2e job from admin sdk to root of repository
Haberkamp Feb 8, 2024
5e11ec8
NEXT-33446 - update checkout action to v4 in circular dependencies job
Haberkamp Feb 8, 2024
a3b2477
NEXT-33446 - remove old workflow to publish admin sdk
Haberkamp Feb 8, 2024
5ba46c5
NEXT-33446 - move workflow to deploy admin sdk docs to root
Haberkamp Feb 8, 2024
2467e38
NEXT-33446 - stop using turbo for e2e tesing in CI pipeline
Haberkamp Feb 8, 2024
02ccf67
NEXT-33446 - add --prefer-offline and --frozen-lockfile flags for ins…
Haberkamp Feb 8, 2024
098562e
NEXT-33446 - skip checking the types in the node_modules folder
Haberkamp Feb 8, 2024
d424dde
NEXT-33446 - fix uploading playwright reports
Haberkamp Feb 8, 2024
fcfbae3
NEXT-33446 - only run playwright tests after other tests have passed
Haberkamp Feb 8, 2024
1e30537
NEXT-33446 - build admin sdk docs in CI pipeline
Haberkamp Feb 12, 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
34 changes: 34 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,37 @@ jobs:
branch: gh-pages
folder: redirect
clean: true

create-docs-admin-sdk:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline

- name: Test to see if the project compiles
run: pnpm --filter @shopware-ag/meteor-admin-sdk run lint:all

- name: Create the docs directory locally in CI
run: |
cd packages/admin-sdk
pnpm run doc:install-dependencies
pnpm run doc

- name: Deploy 🚀
if: github.ref == 'refs/heads/trunk'
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: packages/admin-sdk/docs/build
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
node-version: '20'

- name: Install main dependencies
run: pnpm install
run: pnpm install --frozen-lockfile --prefer-offline

- name: Create the static pages directory locally in CI
run: pnpm --prefix ./packages/component-library run build-storybook
Expand Down
63 changes: 62 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,68 @@ jobs:
node-version: '20'

- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile --prefer-offline

- name: unit
run: pnpm run test:unit

circular-dependencies:
name: Check for circular dependencies (Madge)
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline

- name: madge
run: pnpm --filter @shopware-ag/meteor-admin-sdk run circular-dependencies

playwright-run:
name: Playwright Integration Tests
timeout-minutes: 20
runs-on: ubuntu-latest
needs:
- circular-dependencies
- unit-tests
- static-analysis
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline

- name: Install Playwright
run: npx playwright install

- name: Run Playwright tests
run: pnpm --filter @shopware-ag/meteor-admin-sdk run test:e2e

- uses: actions/upload-artifact@v2
if: always()
with:
name: meteor-admin-sdk--playwright-test-results
path: packages/admin-sdk/playwright-report/
2 changes: 1 addition & 1 deletion .github/workflows/update-icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
node-version: '20'

- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile --prefer-offline

- name: Build
run: pnpm --prefix ./packages/icon-kit run build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/visual-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
node-version: '20'

- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile --prefer-offline

- name: Install Playwright
run: pnpm dlx playwright install
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"lint:eslint": "turbo run lint:eslint",
"format": "turbo run format",
"format:check": "turbo run format:check",
"test:unit": "turbo run test:unit"
"test:unit": "turbo run test:unit",
"test:e2e": "turbo run test:e2e"
},
"keywords": [],
"license": "MIT",
Expand Down
4 changes: 4 additions & 0 deletions packages/admin-sdk/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
watch_file devenv.nix
watch_file devenv.yaml
watch_file devenv.lock
eval "$(devenv print-dev-env)"
11 changes: 11 additions & 0 deletions packages/admin-sdk/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules
dist
es
umd
example-dist
docs
example
coverage
cypress
*.spec.ts
e2e
80 changes: 80 additions & 0 deletions packages/admin-sdk/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
plugins: [
'@typescript-eslint',
'import',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
rules: {
'no-prototype-builtins': 'off',
'comma-dangle': 'off',
'no-irregular-whitespace': 'error',
'no-multiple-empty-lines': ['error', { max: 1}],
'@typescript-eslint/comma-dangle': ['error', 'always-multiline'],
'@typescript-eslint/explicit-function-return-type': ['error'],
'@typescript-eslint/consistent-type-imports': ['error'],
'@typescript-eslint/member-delimiter-style': ['error', {
multiline: {
delimiter: 'comma',
requireLast: true,
},
singleline: {
delimiter: 'comma',
requireLast: false,
},
}],
'capitalized-comments': [
'error',
'always',
{
'ignorePattern': 'pragma|ignored',
'ignoreInlineComments': true,
},
],
semi: [
'error',
'always',
],
'no-console': [
'error',
{
allow: [
'warn',
'error',
],
},
],
'indent': [
'error',
2,
],
'no-debugger': 'error',
'no-unreachable': 'error',
'consistent-return': 'error',
camelcase: 'error',
curly: 'error',
eqeqeq: 'error',
'multiline-comment-style': [
'error',
'starred-block',
],
'no-iterator': 'error',
'import/no-cycle': [
2,
{
maxDepth: 1,
},
],
quotes: ['error', 'single'],
'eol-last': ['error', 'always'],
},
};
23 changes: 23 additions & 0 deletions packages/admin-sdk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
node_modules
.DS_Store
dist
dist-ssr
dist-example
*.local
.idea
coverage
docs/docs/api
es
umd
example-dist
cdn
test-results/
playwright-test-results/
playwright-report/
testpageDist
dependency-graph.png
.vscode
# Devenv
.devenv*
devenv.local.nix

13 changes: 13 additions & 0 deletions packages/admin-sdk/.madgerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"detectiveOptions": {
"ts": {
"skipTypeImports": true
}
},
"baseDir": "./src",
"fileExtensions": [
"ts",
"js"
],
"tsConfig": "tsconfig.json"
}
1 change: 1 addition & 0 deletions packages/admin-sdk/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/gallium
Loading
Loading