@shopfront/bridge 1.20.3 → 2.0.0
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/.github/workflows/npm-publish.yml +29 -0
- package/eslint.config.js +16 -0
- package/jest.config.js +8 -0
- package/package.json +13 -12
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Pack and Distribute
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types: [created]
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- uses: actions/checkout@v4
|
|
10
|
+
- uses: actions/setup-node@v3
|
|
11
|
+
with:
|
|
12
|
+
node-version: '20.x'
|
|
13
|
+
- run: npm ci
|
|
14
|
+
- run: npm run-script build
|
|
15
|
+
publish-npm:
|
|
16
|
+
needs: build
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
permissions:
|
|
19
|
+
id-token: write
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
- uses: actions/setup-node@v3
|
|
23
|
+
with:
|
|
24
|
+
node-version: '20.x'
|
|
25
|
+
registry-url: 'https://registry.npmjs.org/'
|
|
26
|
+
- run: npm ci
|
|
27
|
+
- run: npm publish --provenance --access public
|
|
28
|
+
env:
|
|
29
|
+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { coreLintingRules } from "@onshopfront/core/linting";
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
...coreLintingRules({}),
|
|
5
|
+
{
|
|
6
|
+
ignores: [
|
|
7
|
+
"lib/**",
|
|
8
|
+
"tests/**",
|
|
9
|
+
"**/*.js",
|
|
10
|
+
],
|
|
11
|
+
}, {
|
|
12
|
+
rules: {
|
|
13
|
+
"@typescript-eslint/no-useless-constructor": 0
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
]
|
package/jest.config.js
ADDED
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopfront/bridge",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"description": "The bridge used to embed your application within Shopfront",
|
|
7
7
|
"homepage": "https://developer.onshopfront.com/documentation/Embedded/Introduction",
|
|
8
|
-
"bugs": "https://
|
|
8
|
+
"bugs": "https://github.com/onshopfront/shopfront-embedded-bridge/issues",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://
|
|
11
|
+
"url": "https://github.com/onshopfront/shopfront-embedded-bridge.git"
|
|
12
12
|
},
|
|
13
13
|
"author": "Shopfront <api@shopfront.com.au> (https://shopfront.com.au)",
|
|
14
14
|
"contributors": [
|
|
@@ -16,19 +16,20 @@
|
|
|
16
16
|
"Adam Simpkins",
|
|
17
17
|
"Zachary Stanford"
|
|
18
18
|
],
|
|
19
|
+
"type": "module",
|
|
19
20
|
"private": false,
|
|
20
21
|
"devDependencies": {
|
|
21
|
-
"@
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"typescript": "^
|
|
22
|
+
"@onshopfront/core": "^0.1.89",
|
|
23
|
+
"ts-jest-resolver": "^2.0.1",
|
|
24
|
+
"typescript": "^5.5.4",
|
|
25
|
+
"typescript-eslint": "^8.34.0"
|
|
25
26
|
},
|
|
26
27
|
"scripts": {
|
|
27
28
|
"type-check": "tsc --noEmit",
|
|
28
|
-
"type-check:watch": "
|
|
29
|
-
"build": "
|
|
29
|
+
"type-check:watch": "npm run-script type-check --watch",
|
|
30
|
+
"build": "tsc",
|
|
30
31
|
"watch": "tsc -w",
|
|
31
|
-
"lint": "
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
"lint": "eslint . --fix",
|
|
33
|
+
"test": "npx @onshopfront/core test"
|
|
34
|
+
}
|
|
34
35
|
}
|