@shopware-ag/storefront-types 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/package.json +1 -1
- package/.github/workflows/release.yml +0 -32
- package/bun.lockb +0 -0
package/README.md
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
# Types for Shopware Storefront
|
|
2
2
|
|
|
3
|
-
This package provides types for window
|
|
3
|
+
This package provides types for window-bound classes in Shopware 6 Storefront:
|
|
4
4
|
|
|
5
5
|
- `window.PluginManager`
|
|
6
6
|
- `window.PluginBaseClass`
|
|
7
7
|
- `window.router`
|
|
8
8
|
|
|
9
|
+
and all regular imports of the Storefront.
|
|
10
|
+
|
|
9
11
|
Install this package with NPM:
|
|
10
12
|
|
|
11
13
|
```bash
|
|
12
14
|
npm install @shopware-ag/storefront-types --save-dev
|
|
13
15
|
```
|
|
14
16
|
|
|
15
|
-
To
|
|
17
|
+
To have the types active, you need to create a `tsconfig.json` (`src/Resources/app/storefront/tsconfig.json`) with the following content:
|
|
16
18
|
|
|
17
19
|
```json
|
|
18
20
|
{
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
name: Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [created]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
publish-npm:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
permissions:
|
|
11
|
-
contents: read
|
|
12
|
-
id-token: write
|
|
13
|
-
steps:
|
|
14
|
-
- name: Checkout
|
|
15
|
-
uses: actions/checkout@v4
|
|
16
|
-
|
|
17
|
-
- name: Install Node 20.x
|
|
18
|
-
uses: actions/setup-node@v3
|
|
19
|
-
with:
|
|
20
|
-
node-version: '20.x'
|
|
21
|
-
registry-url: 'https://registry.npmjs.org'
|
|
22
|
-
|
|
23
|
-
- name: Change version
|
|
24
|
-
run: |
|
|
25
|
-
jq '.version = "${{ github.ref_name }}"' package.json > package.new.json
|
|
26
|
-
cp package.new.json package.json
|
|
27
|
-
rm package.new.json
|
|
28
|
-
|
|
29
|
-
- name: Release package
|
|
30
|
-
run: npm publish --provenance --access public
|
|
31
|
-
env:
|
|
32
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
package/bun.lockb
DELETED
|
Binary file
|