@thzero/library_client_svelte 0.14.8 → 0.15.3
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/package.json +8 -12
- package/.github/workflows/build.yaml +0 -137
- package/.github/workflows/publish.yaml +0 -85
- package/.github/workflows/test.yml +0 -55
- package/ncupd.bat +0 -2
- package/push.bat +0 -3
- package/pushnpm.bat +0 -2
- package/pushversion.bat +0 -4
- package/version.bat +0 -1
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thzero/library_client_svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.3",
|
|
4
4
|
"version_major": 0,
|
|
5
|
-
"version_minor":
|
|
6
|
-
"version_patch":
|
|
7
|
-
"version_date": "
|
|
5
|
+
"version_minor": 15,
|
|
6
|
+
"version_patch": 3,
|
|
7
|
+
"version_date": "04/25/2022",
|
|
8
8
|
"description": "An opinionated library of common functionality to bootstrap a Svelte based SPA application.",
|
|
9
9
|
"author": "thZero",
|
|
10
10
|
"license": "MIT",
|
|
@@ -17,19 +17,15 @@
|
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/thzero/library_client_svelte#readme",
|
|
19
19
|
"scripts": {
|
|
20
|
-
"cli-update": "
|
|
21
|
-
"cli-update-w": ".\\node_modules\\.bin\\library-cli --updateversion --pi",
|
|
20
|
+
"cli-update": "library-cli --updateversion --pi",
|
|
22
21
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
23
22
|
},
|
|
24
23
|
"dependencies": {
|
|
25
|
-
"@thzero/
|
|
26
|
-
"@thzero/
|
|
24
|
+
"@thzero/library_client": "^0.15",
|
|
25
|
+
"@thzero/library_common": "^0.15",
|
|
27
26
|
"async-mutex": "^0.3.2",
|
|
28
27
|
"mitt": "^3.0.0",
|
|
29
|
-
"svelte-i18n": "^3.
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@thzero/library_cli": "^0.13.20"
|
|
28
|
+
"svelte-i18n": "^3.4.0"
|
|
33
29
|
},
|
|
34
30
|
"peerDependencies": {
|
|
35
31
|
"@alienfast/i18next-loader": "^1",
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
name: Build CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
repository_dispatch:
|
|
5
|
-
# types: [ npm, version ]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
build:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
|
|
11
|
-
if: github.actor == github.event.repository.owner.login
|
|
12
|
-
|
|
13
|
-
strategy:
|
|
14
|
-
matrix:
|
|
15
|
-
#node-version: [8.x, 10.x, 12.x]
|
|
16
|
-
node-version: [13.x]
|
|
17
|
-
|
|
18
|
-
steps:
|
|
19
|
-
- name: Event Input
|
|
20
|
-
run: |
|
|
21
|
-
echo event-type: ${{ github.event.action }}
|
|
22
|
-
echo action: ${{ github.event.client_payload.action }}
|
|
23
|
-
echo label: ${{ github.event.client_payload.label }}
|
|
24
|
-
echo library: ${{ github.event.client_payload.library }}
|
|
25
|
-
- uses: actions/checkout@v2
|
|
26
|
-
with:
|
|
27
|
-
ref: dev
|
|
28
|
-
fetch-depth: 0
|
|
29
|
-
- name: Package Output
|
|
30
|
-
run: |
|
|
31
|
-
cat package.json
|
|
32
|
-
- name: Initialize Node.js ${{ matrix.node-version }}
|
|
33
|
-
uses: actions/setup-node@v2
|
|
34
|
-
with:
|
|
35
|
-
node-version: ${{ matrix.node-version }}
|
|
36
|
-
registry-url: 'https://registry.npmjs.org'
|
|
37
|
-
- name: NCU Upgrade Check
|
|
38
|
-
if: github.event.client_payload.action == 'npm'
|
|
39
|
-
id: ncu-upgrade
|
|
40
|
-
uses: thzero/ncu-upgrade@v0.23-beta
|
|
41
|
-
- name: NCU Updated Check Output
|
|
42
|
-
run: |
|
|
43
|
-
echo upgraded: ${{ steps.ncu-upgrade.outputs.upgraded }}
|
|
44
|
-
echo upgrades: ${{ steps.ncu-upgrade.outputs.upgrades }}
|
|
45
|
-
echo action: ${{ github.event.action }}
|
|
46
|
-
echo action_is_npm? ${{ (github.event.client_payload.action == 'npm') }}
|
|
47
|
-
echo upgrade? ${{ (steps.ncu-upgrade.outputs.upgraded == true) }}
|
|
48
|
-
echo npm_and_upgrade? ${{ (github.event.client_payload.action == 'npm' && steps.ncu-upgrade.outputs.upgraded == true) }}
|
|
49
|
-
echo action_is_version? ${{ (github.event.action == 'version') }}
|
|
50
|
-
echo upgrade? ${{ ((github.event.client_payload.action == 'npm' && steps.ncu-upgrade.outputs.upgraded == true) || github.event.action == 'version') }}
|
|
51
|
-
- name: Node Dependencies
|
|
52
|
-
if: ((github.event.client_payload.action == 'npm' && steps.ncu-upgrade.outputs.upgraded == true) || github.event.action == 'version')
|
|
53
|
-
run: |
|
|
54
|
-
npm install --no-package-lock
|
|
55
|
-
- name: Update Package Version
|
|
56
|
-
if: ((github.event.client_payload.action == 'npm' && steps.ncu-upgrade.outputs.upgraded == true) || github.event.action == 'version')
|
|
57
|
-
run: |
|
|
58
|
-
npm run cli-update -- --silent
|
|
59
|
-
- name: Git Check
|
|
60
|
-
id: git-changes
|
|
61
|
-
if: success()
|
|
62
|
-
uses: UnicornGlobal/has-changes-action@v1.0.11
|
|
63
|
-
- name: Git Check Output
|
|
64
|
-
run: |
|
|
65
|
-
echo changed? ${{ steps.git-changes.outputs.changed }}
|
|
66
|
-
echo npm commit? ${{ github.event.client_payload.action == 'npm' && steps.git-changes.outputs.changed == true }}
|
|
67
|
-
echo !npm commit? ${{ github.event.action != 'npm' && steps.git-changes.outputs.changed == true && github.event.client_payload.label != '' }}
|
|
68
|
-
- name: Git Diff Check
|
|
69
|
-
id: git-diff-changes
|
|
70
|
-
run: |
|
|
71
|
-
git diff origin/master origin/dev --shortstat
|
|
72
|
-
diff_check=$(git diff origin/master origin/dev --shortstat)
|
|
73
|
-
echo $diff_check
|
|
74
|
-
echo ${#diff_check}
|
|
75
|
-
diff_check_length=${#diff_check}
|
|
76
|
-
echo ::set-output name=diff_check_length::$diff_check_length
|
|
77
|
-
- name: Git Diff Check Output
|
|
78
|
-
run: |
|
|
79
|
-
echo ${{ steps.git-diff-changes.outputs.diff_check_length }}
|
|
80
|
-
- name: Git Commit
|
|
81
|
-
if: github.event.client_payload.action == 'npm' && (steps.git-changes.outputs.changed == true)
|
|
82
|
-
run: |
|
|
83
|
-
git config --global user.name '${{ github.repository_owner }}'
|
|
84
|
-
git config --global user.email '${{ github.repository_owner }}@users.noreply.github.com'
|
|
85
|
-
git add .
|
|
86
|
-
git commit -m "npm updates"
|
|
87
|
-
(git push) || true
|
|
88
|
-
- name: Git Commit NPM
|
|
89
|
-
if: github.event.client_payload.action == 'npm' && (steps.git-diff-changes.outputs.diff_check_length > 0)
|
|
90
|
-
run: |
|
|
91
|
-
git config --global user.name '${{ github.repository_owner }}'
|
|
92
|
-
git config --global user.email '${{ github.repository_owner }}@users.noreply.github.com'
|
|
93
|
-
git add .
|
|
94
|
-
git commit -m "source updates"
|
|
95
|
-
(git push) || true
|
|
96
|
-
- name: Git Commit Version
|
|
97
|
-
if: github.event.action == 'version' && steps.git-changes.outputs.changed == true && github.event.client_payload.label != ''
|
|
98
|
-
run: |
|
|
99
|
-
git config --global user.name '${{ github.repository_owner }}'
|
|
100
|
-
git config --global user.email '${{ github.repository_owner }}@users.noreply.github.com'
|
|
101
|
-
git add .
|
|
102
|
-
git commit -m "version updates"
|
|
103
|
-
(git push) || true
|
|
104
|
-
- name: Requires Pull Request?
|
|
105
|
-
run: |
|
|
106
|
-
echo changed? ${{ steps.git-changes.outputs.changed }}
|
|
107
|
-
- name: Pull Request
|
|
108
|
-
id: pull-request
|
|
109
|
-
if: steps.git-changes.outputs.changed == true && success()
|
|
110
|
-
uses: repo-sync/pull-request@v2
|
|
111
|
-
with:
|
|
112
|
-
source_branch: dev
|
|
113
|
-
destination_branch: master
|
|
114
|
-
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
115
|
-
- name: Pull Request Output
|
|
116
|
-
if: steps.git-changes.outputs.changed == true && success()
|
|
117
|
-
run: |
|
|
118
|
-
echo ${{ steps.pull-request.outputs.pr_url }}
|
|
119
|
-
echo ${{ steps.pull-request.outputs.pr_number }}
|
|
120
|
-
- name: Merge pull request
|
|
121
|
-
if: steps.git-changes.outputs.changed == true && steps.pull-request.outputs.pr_number > 0 && success()
|
|
122
|
-
uses: sudo-bot/action-pull-request-merge@v1.1.1
|
|
123
|
-
with:
|
|
124
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
125
|
-
number: ${{ steps.pull-request.outputs.pr_number }}
|
|
126
|
-
- run: npm publish --access public
|
|
127
|
-
if: steps.git-changes.outputs.changed == 1 && success()
|
|
128
|
-
env:
|
|
129
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
130
|
-
- name: Repository Dispatch - Client
|
|
131
|
-
if: github.event.action == 'build_all'
|
|
132
|
-
uses: peter-evans/repository-dispatch@v1
|
|
133
|
-
with:
|
|
134
|
-
token: ${{ secrets.ACCESS_TOKEN }}
|
|
135
|
-
repository: thzero/library_build
|
|
136
|
-
event-type: 'build_all_client'
|
|
137
|
-
client-payload: '{ "action": "${{ github.event.client_payload.action }}", "label": "${{ github.event.client_payload.label }}" }'
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
name: Publish CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
inputs:
|
|
6
|
-
label:
|
|
7
|
-
description: 'Label'
|
|
8
|
-
default: 'Npm Publish - Version Update'
|
|
9
|
-
logLevel:
|
|
10
|
-
description: 'Log level'
|
|
11
|
-
required: true
|
|
12
|
-
default: 'warning'
|
|
13
|
-
|
|
14
|
-
jobs:
|
|
15
|
-
build:
|
|
16
|
-
runs-on: ubuntu-latest
|
|
17
|
-
|
|
18
|
-
if: github.actor == github.event.repository.owner.login
|
|
19
|
-
|
|
20
|
-
strategy:
|
|
21
|
-
matrix:
|
|
22
|
-
#node-version: [8.x, 10.x, 12.x]
|
|
23
|
-
node-version: [13.x]
|
|
24
|
-
|
|
25
|
-
steps:
|
|
26
|
-
- name: Input
|
|
27
|
-
run: |
|
|
28
|
-
echo label: ${{ github.event.inputs.label }}
|
|
29
|
-
- uses: actions/checkout@v2
|
|
30
|
-
with:
|
|
31
|
-
ref: dev
|
|
32
|
-
- name: Node Dependencies
|
|
33
|
-
run: |
|
|
34
|
-
npm install --no-package-lock
|
|
35
|
-
- name: Package Info
|
|
36
|
-
run: |
|
|
37
|
-
cat package.json
|
|
38
|
-
- name: Initialize Node.js ${{ matrix.node-version }}
|
|
39
|
-
uses: actions/setup-node@v2
|
|
40
|
-
with:
|
|
41
|
-
node-version: ${{ matrix.node-version }}
|
|
42
|
-
registry-url: 'https://registry.npmjs.org'
|
|
43
|
-
- name: Update Package Version
|
|
44
|
-
run: |
|
|
45
|
-
npm run cli-update -- --silent
|
|
46
|
-
- name: Git Check
|
|
47
|
-
id: git-changes
|
|
48
|
-
if: success()
|
|
49
|
-
uses: UnicornGlobal/has-changes-action@v1.0.11
|
|
50
|
-
- name: Git Check Output
|
|
51
|
-
run: |
|
|
52
|
-
echo changed? ${{ steps.git-changes.outputs.changed }}
|
|
53
|
-
- name: Git Commit Version
|
|
54
|
-
run: |
|
|
55
|
-
git config --global user.name '${{ github.repository_owner }}'
|
|
56
|
-
git config --global user.email '${{ github.repository_owner }}@users.noreply.github.com'
|
|
57
|
-
git add .
|
|
58
|
-
git commit -m '${{ github.event.inputs.label }}'
|
|
59
|
-
git push
|
|
60
|
-
- name: Requires Pull Request?
|
|
61
|
-
run: |
|
|
62
|
-
echo changed? ${{ steps.git-changes.outputs.changed }}
|
|
63
|
-
- name: Pull Request
|
|
64
|
-
id: pull-request
|
|
65
|
-
if: steps.git-changes.outputs.changed == true && success()
|
|
66
|
-
uses: repo-sync/pull-request@v2
|
|
67
|
-
with:
|
|
68
|
-
source_branch: dev
|
|
69
|
-
destination_branch: master
|
|
70
|
-
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
71
|
-
- name: Pull Request Output
|
|
72
|
-
if: steps.git-changes.outputs.changed == true && success()
|
|
73
|
-
run: |
|
|
74
|
-
echo ${{ steps.pull-request.outputs.pr_url }}
|
|
75
|
-
echo ${{ steps.pull-request.outputs.pr_number }}
|
|
76
|
-
- name: Merge pull request
|
|
77
|
-
if: steps.git-changes.outputs.changed == true && steps.pull-request.outputs.pr_number > 0 && success()
|
|
78
|
-
uses: sudo-bot/action-pull-request-merge@v1.1.1
|
|
79
|
-
with:
|
|
80
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
81
|
-
number: ${{ steps.pull-request.outputs.pr_number }}
|
|
82
|
-
- run: npm publish --access public
|
|
83
|
-
if: steps.git-changes.outputs.changed == 1 && success()
|
|
84
|
-
env:
|
|
85
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
name: Test CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
inputs:
|
|
6
|
-
label:
|
|
7
|
-
description: 'Label'
|
|
8
|
-
default: 'Npm Publish - Version Update'
|
|
9
|
-
logLevel:
|
|
10
|
-
description: 'Log level'
|
|
11
|
-
required: true
|
|
12
|
-
default: 'warning'
|
|
13
|
-
|
|
14
|
-
jobs:
|
|
15
|
-
build:
|
|
16
|
-
runs-on: ubuntu-latest
|
|
17
|
-
|
|
18
|
-
if: github.actor == github.event.repository.owner.login
|
|
19
|
-
|
|
20
|
-
strategy:
|
|
21
|
-
matrix:
|
|
22
|
-
#node-version: [8.x, 10.x, 12.x]
|
|
23
|
-
node-version: [13.x]
|
|
24
|
-
|
|
25
|
-
steps:
|
|
26
|
-
- name: Input
|
|
27
|
-
run: |
|
|
28
|
-
echo label: ${{ github.event.inputs.label }}
|
|
29
|
-
- uses: actions/checkout@v2
|
|
30
|
-
with:
|
|
31
|
-
ref: dev
|
|
32
|
-
fetch-depth: 0
|
|
33
|
-
- name: Node Dependencies
|
|
34
|
-
run: |
|
|
35
|
-
npm install --no-package-lock
|
|
36
|
-
- name: Package
|
|
37
|
-
run: |
|
|
38
|
-
cat package.json
|
|
39
|
-
- name: Initialize Node.js ${{ matrix.node-version }}
|
|
40
|
-
uses: actions/setup-node@v2
|
|
41
|
-
with:
|
|
42
|
-
node-version: ${{ matrix.node-version }}
|
|
43
|
-
registry-url: 'https://registry.npmjs.org'
|
|
44
|
-
- name: Git Diff Check
|
|
45
|
-
id: git-diff-changes
|
|
46
|
-
run: |
|
|
47
|
-
git diff origin/master origin/dev --shortstat
|
|
48
|
-
diff_check=$(git diff origin/master origin/dev --shortstat)
|
|
49
|
-
echo $diff_check
|
|
50
|
-
echo ${#diff_check}
|
|
51
|
-
diff_check_length=${#diff_check}
|
|
52
|
-
echo ::set-output name=diff_check_length::$diff_check_length
|
|
53
|
-
- name: Git Check Output
|
|
54
|
-
run: |
|
|
55
|
-
echo ${{ steps.git-diff-changes.outputs.diff_check_length }}
|
package/ncupd.bat
DELETED
package/push.bat
DELETED
package/pushnpm.bat
DELETED
package/pushversion.bat
DELETED
package/version.bat
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@npm run cli-update
|