@git.zone/cli 7.0.0 → 7.1.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/assets/templates/ci_default/.gitea/workflows/default_nottags.yaml +15 -50
- package/assets/templates/ci_default/.gitea/workflows/default_tags.yaml +17 -86
- package/assets/templates/ci_docker/.gitea/workflows/docker_nottags.yaml +18 -56
- package/assets/templates/ci_docker/.gitea/workflows/docker_tags.yaml +17 -89
- package/assets/templates/dockerfile_service/Dockerfile +18 -37
- package/assets/templates/dockerfile_service/dockerignore +10 -0
- package/assets/templates/service/npmextra.json +0 -9
- package/assets/templates/smartconfig/_smartconfig.json +0 -3
- package/assets/templates/vscode/.vscode/settings.json +0 -4
- package/assets/templates/website/.smartscaf.yml +1 -0
- package/assets/templates/website/npmextra.json +0 -9
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.gitzoneconfig.d.ts +0 -3
- package/dist_ts/classes.gitzoneconfig.js +1 -10
- package/dist_ts/helpers.smartconfigmigrations.d.ts +1 -0
- package/dist_ts/helpers.smartconfigmigrations.js +83 -4
- package/dist_ts/mod_config/index.js +55 -2
- package/dist_ts/mod_format/formatters/smartconfig.formatter.js +1 -4
- package/dist_ts/mod_format/formatters/templates.formatter.js +4 -10
- package/dist_ts/mod_format/formatters/tsconfig.formatter.js +11 -2
- package/dist_ts/plugins.d.ts +3 -3
- package/dist_ts/plugins.js +1 -1
- package/package.json +4 -4
- package/readme.md +6 -2
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.gitzoneconfig.ts +0 -16
- package/ts/helpers.smartconfigmigrations.ts +98 -3
- package/ts/mod_config/index.ts +60 -0
- package/ts/mod_format/formatters/smartconfig.formatter.ts +0 -3
- package/ts/mod_format/formatters/templates.formatter.ts +3 -10
- package/ts/mod_format/formatters/tsconfig.formatter.ts +10 -1
- package/ts/plugins.ts +3 -3
- package/assets/templates/ci_default_private/.gitea/workflows/default_nottags.yaml +0 -66
- package/assets/templates/ci_default_private/.gitea/workflows/default_tags.yaml +0 -103
- package/assets/templates/website/Dockerfile +0 -3
|
@@ -5,62 +5,27 @@ on:
|
|
|
5
5
|
tags-ignore:
|
|
6
6
|
- '**'
|
|
7
7
|
|
|
8
|
-
env:
|
|
9
|
-
IMAGE: code.foss.global/host.today/ht-docker-node:npmci
|
|
10
|
-
NPMCI_COMPUTED_REPOURL: https://${-{gitea.repository_owner}-}:${-{secrets.GITEA_TOKEN}-}@{{module.githost}}/${-{gitea.repository}-}.git
|
|
11
|
-
NPMCI_TOKEN_NPM: ${-{secrets.NPMCI_TOKEN_NPM}-}
|
|
12
|
-
NPMCI_TOKEN_NPM2: ${-{secrets.NPMCI_TOKEN_NPM2}-}
|
|
13
|
-
NPMCI_GIT_GITHUBTOKEN: ${-{secrets.NPMCI_GIT_GITHUBTOKEN}-}
|
|
14
|
-
NPMCI_URL_CLOUDLY: ${-{secrets.NPMCI_URL_CLOUDLY}-}
|
|
15
|
-
|
|
16
8
|
jobs:
|
|
17
|
-
|
|
9
|
+
test:
|
|
18
10
|
runs-on: ubuntu-latest
|
|
19
|
-
continue-on-error: true
|
|
20
11
|
container:
|
|
21
|
-
image:
|
|
12
|
+
image: code.foss.global/host.today/ht-docker-node:latest
|
|
22
13
|
|
|
23
14
|
steps:
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
pnpm install -g pnpm
|
|
29
|
-
pnpm install -g @ship.zone/npmci
|
|
30
|
-
|
|
31
|
-
- name: Run npm prepare
|
|
32
|
-
run: npmci npm prepare
|
|
33
|
-
|
|
34
|
-
- name: Audit production dependencies
|
|
35
|
-
run: |
|
|
36
|
-
npmci command npm config set registry https://registry.npmjs.org
|
|
37
|
-
npmci command pnpm audit --audit-level=high --prod
|
|
38
|
-
continue-on-error: true
|
|
15
|
+
- name: Checkout
|
|
16
|
+
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
17
|
+
with:
|
|
18
|
+
persist-credentials: false
|
|
39
19
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
npmci command pnpm audit --audit-level=high --dev
|
|
44
|
-
continue-on-error: true
|
|
20
|
+
# The image's pnpm switches to the version package.json pins.
|
|
21
|
+
- name: Show the pnpm version
|
|
22
|
+
run: pnpm --version
|
|
45
23
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
needs: security
|
|
49
|
-
runs-on: ubuntu-latest
|
|
50
|
-
container:
|
|
51
|
-
image: ${-{ env.IMAGE }-}
|
|
52
|
-
|
|
53
|
-
steps:
|
|
54
|
-
- uses: actions/checkout@v3
|
|
24
|
+
- name: Install frozen dependencies
|
|
25
|
+
run: pnpm install --frozen-lockfile
|
|
55
26
|
|
|
56
|
-
- name:
|
|
57
|
-
run:
|
|
58
|
-
npmci node install stable
|
|
59
|
-
npmci npm install
|
|
60
|
-
npmci npm test
|
|
27
|
+
- name: Build
|
|
28
|
+
run: pnpm build
|
|
61
29
|
|
|
62
|
-
- name: Test
|
|
63
|
-
run:
|
|
64
|
-
npmci node install stable
|
|
65
|
-
npmci npm install
|
|
66
|
-
npmci npm build
|
|
30
|
+
- name: Test
|
|
31
|
+
run: pnpm test
|
|
@@ -1,103 +1,34 @@
|
|
|
1
1
|
name: Default (tags)
|
|
2
2
|
|
|
3
|
+
# gitzone release publishes this repository. A tag only verifies the tagged
|
|
4
|
+
# commit; this workflow never publishes.
|
|
5
|
+
|
|
3
6
|
on:
|
|
4
7
|
push:
|
|
5
8
|
tags:
|
|
6
9
|
- '*'
|
|
7
10
|
|
|
8
|
-
env:
|
|
9
|
-
IMAGE: code.foss.global/host.today/ht-docker-node:npmci
|
|
10
|
-
NPMCI_COMPUTED_REPOURL: https://${-{gitea.repository_owner}-}:${-{secrets.GITEA_TOKEN}-}@{{module.githost}}/${-{gitea.repository}-}.git
|
|
11
|
-
NPMCI_TOKEN_NPM: ${-{secrets.NPMCI_TOKEN_NPM}-}
|
|
12
|
-
NPMCI_TOKEN_NPM2: ${-{secrets.NPMCI_TOKEN_NPM2}-}
|
|
13
|
-
NPMCI_GIT_GITHUBTOKEN: ${-{secrets.NPMCI_GIT_GITHUBTOKEN}-}
|
|
14
|
-
NPMCI_URL_CLOUDLY: ${-{secrets.NPMCI_URL_CLOUDLY}-}
|
|
15
|
-
|
|
16
11
|
jobs:
|
|
17
|
-
security:
|
|
18
|
-
runs-on: ubuntu-latest
|
|
19
|
-
continue-on-error: true
|
|
20
|
-
container:
|
|
21
|
-
image: ${-{ env.IMAGE }-}
|
|
22
|
-
|
|
23
|
-
steps:
|
|
24
|
-
- uses: actions/checkout@v3
|
|
25
|
-
|
|
26
|
-
- name: Prepare
|
|
27
|
-
run: |
|
|
28
|
-
pnpm install -g pnpm
|
|
29
|
-
pnpm install -g @ship.zone/npmci
|
|
30
|
-
npmci npm prepare
|
|
31
|
-
|
|
32
|
-
- name: Audit production dependencies
|
|
33
|
-
run: |
|
|
34
|
-
npmci command npm config set registry https://registry.npmjs.org
|
|
35
|
-
npmci command pnpm audit --audit-level=high --prod
|
|
36
|
-
continue-on-error: true
|
|
37
|
-
|
|
38
|
-
- name: Audit development dependencies
|
|
39
|
-
run: |
|
|
40
|
-
npmci command npm config set registry https://registry.npmjs.org
|
|
41
|
-
npmci command pnpm audit --audit-level=high --dev
|
|
42
|
-
continue-on-error: true
|
|
43
|
-
|
|
44
12
|
test:
|
|
45
|
-
if: ${-{ always() }-}
|
|
46
|
-
needs: security
|
|
47
|
-
runs-on: ubuntu-latest
|
|
48
|
-
container:
|
|
49
|
-
image: ${-{ env.IMAGE }-}
|
|
50
|
-
|
|
51
|
-
steps:
|
|
52
|
-
- uses: actions/checkout@v3
|
|
53
|
-
|
|
54
|
-
- name: Prepare
|
|
55
|
-
run: |
|
|
56
|
-
pnpm install -g pnpm
|
|
57
|
-
pnpm install -g @ship.zone/npmci
|
|
58
|
-
npmci npm prepare
|
|
59
|
-
|
|
60
|
-
- name: Test stable
|
|
61
|
-
run: |
|
|
62
|
-
npmci node install stable
|
|
63
|
-
npmci npm install
|
|
64
|
-
npmci npm test
|
|
65
|
-
|
|
66
|
-
- name: Test build
|
|
67
|
-
run: |
|
|
68
|
-
npmci node install stable
|
|
69
|
-
npmci npm install
|
|
70
|
-
npmci npm build
|
|
71
|
-
|
|
72
|
-
metadata:
|
|
73
|
-
needs: test
|
|
74
|
-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
75
13
|
runs-on: ubuntu-latest
|
|
76
14
|
container:
|
|
77
|
-
image:
|
|
78
|
-
continue-on-error: true
|
|
15
|
+
image: code.foss.global/host.today/ht-docker-node:latest
|
|
79
16
|
|
|
80
17
|
steps:
|
|
81
|
-
-
|
|
18
|
+
- name: Checkout
|
|
19
|
+
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
20
|
+
with:
|
|
21
|
+
persist-credentials: false
|
|
82
22
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
pnpm install -g @ship.zone/npmci
|
|
87
|
-
npmci npm prepare
|
|
23
|
+
# The image's pnpm switches to the version package.json pins.
|
|
24
|
+
- name: Show the pnpm version
|
|
25
|
+
run: pnpm --version
|
|
88
26
|
|
|
89
|
-
- name:
|
|
90
|
-
run:
|
|
91
|
-
npmci command npm install -g typescript
|
|
92
|
-
npmci npm install
|
|
27
|
+
- name: Install frozen dependencies
|
|
28
|
+
run: pnpm install --frozen-lockfile
|
|
93
29
|
|
|
94
|
-
- name:
|
|
95
|
-
run:
|
|
30
|
+
- name: Build
|
|
31
|
+
run: pnpm build
|
|
96
32
|
|
|
97
|
-
- name:
|
|
98
|
-
run:
|
|
99
|
-
npmci node install stable
|
|
100
|
-
npmci npm install
|
|
101
|
-
pnpm install -g @git.zone/tsdoc
|
|
102
|
-
npmci command tsdoc
|
|
103
|
-
continue-on-error: true
|
|
33
|
+
- name: Test
|
|
34
|
+
run: pnpm test
|
|
@@ -1,71 +1,33 @@
|
|
|
1
|
-
name: Docker (tags)
|
|
1
|
+
name: Docker (not tags)
|
|
2
|
+
|
|
3
|
+
# Verifies the source. gitzone release builds, tests and publishes the images.
|
|
2
4
|
|
|
3
5
|
on:
|
|
4
6
|
push:
|
|
5
7
|
tags-ignore:
|
|
6
8
|
- '**'
|
|
7
9
|
|
|
8
|
-
env:
|
|
9
|
-
IMAGE: code.foss.global/hosttoday/ht-docker-node:npmci
|
|
10
|
-
NPMCI_COMPUTED_REPOURL: https://${-{gitea.repository_owner}-}:${-{secrets.GITEA_TOKEN}-}@{{module.githost}}/${-{gitea.repository}-}.git
|
|
11
|
-
NPMCI_TOKEN_NPM: ${-{secrets.NPMCI_TOKEN_NPM}-}
|
|
12
|
-
NPMCI_TOKEN_NPM2: ${-{secrets.NPMCI_TOKEN_NPM2}-}
|
|
13
|
-
NPMCI_GIT_GITHUBTOKEN: ${-{secrets.NPMCI_GIT_GITHUBTOKEN}-}
|
|
14
|
-
NPMCI_LOGIN_DOCKER_GITEA: ${-{ github.server_url }-}|${-{ gitea.repository_owner }-}|${-{ secrets.GITEA_TOKEN }-}
|
|
15
|
-
NPMCI_LOGIN_DOCKER_DOCKERREGISTRY: ${-{ secrets.NPMCI_LOGIN_DOCKER_DOCKERREGISTRY }-}
|
|
16
|
-
|
|
17
10
|
jobs:
|
|
18
|
-
security:
|
|
19
|
-
runs-on: ubuntu-latest
|
|
20
|
-
container:
|
|
21
|
-
image: ${-{ env.IMAGE }-}
|
|
22
|
-
continue-on-error: true
|
|
23
|
-
|
|
24
|
-
steps:
|
|
25
|
-
- uses: actions/checkout@v3
|
|
26
|
-
|
|
27
|
-
- name: Install pnpm and npmci
|
|
28
|
-
run: |
|
|
29
|
-
pnpm install -g pnpm
|
|
30
|
-
pnpm install -g @ship.zone/npmci
|
|
31
|
-
npmci npm prepare
|
|
32
|
-
|
|
33
|
-
- name: Audit production dependencies
|
|
34
|
-
run: |
|
|
35
|
-
npmci command npm config set registry https://registry.npmjs.org
|
|
36
|
-
npmci command pnpm audit --audit-level=high --prod
|
|
37
|
-
continue-on-error: true
|
|
38
|
-
|
|
39
|
-
- name: Audit development dependencies
|
|
40
|
-
run: |
|
|
41
|
-
npmci command npm config set registry https://registry.npmjs.org
|
|
42
|
-
npmci command pnpm audit --audit-level=high --dev
|
|
43
|
-
continue-on-error: true
|
|
44
|
-
|
|
45
11
|
test:
|
|
46
|
-
needs: security
|
|
47
12
|
runs-on: ubuntu-latest
|
|
48
13
|
container:
|
|
49
|
-
image:
|
|
14
|
+
image: code.foss.global/host.today/ht-docker-node:latest
|
|
50
15
|
|
|
51
16
|
steps:
|
|
52
|
-
-
|
|
17
|
+
- name: Checkout
|
|
18
|
+
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
19
|
+
with:
|
|
20
|
+
persist-credentials: false
|
|
21
|
+
|
|
22
|
+
# The image's pnpm switches to the version package.json pins.
|
|
23
|
+
- name: Show the pnpm version
|
|
24
|
+
run: pnpm --version
|
|
53
25
|
|
|
54
|
-
- name:
|
|
55
|
-
run:
|
|
56
|
-
pnpm install -g pnpm
|
|
57
|
-
pnpm install -g @ship.zone/npmci
|
|
58
|
-
npmci npm prepare
|
|
26
|
+
- name: Install frozen dependencies
|
|
27
|
+
run: pnpm install --frozen-lockfile
|
|
59
28
|
|
|
60
|
-
- name:
|
|
61
|
-
run:
|
|
62
|
-
npmci node install stable
|
|
63
|
-
npmci npm install
|
|
64
|
-
npmci npm test
|
|
29
|
+
- name: Build
|
|
30
|
+
run: pnpm build
|
|
65
31
|
|
|
66
|
-
- name: Test
|
|
67
|
-
run:
|
|
68
|
-
npmci npm prepare
|
|
69
|
-
npmci node install stable
|
|
70
|
-
npmci npm install
|
|
71
|
-
npmci command npm run build
|
|
32
|
+
- name: Test
|
|
33
|
+
run: pnpm test
|
|
@@ -1,106 +1,34 @@
|
|
|
1
1
|
name: Docker (tags)
|
|
2
2
|
|
|
3
|
+
# gitzone release builds, tests and publishes the images. A tag only verifies
|
|
4
|
+
# the tagged commit; this workflow never builds or pushes an image.
|
|
5
|
+
|
|
3
6
|
on:
|
|
4
7
|
push:
|
|
5
8
|
tags:
|
|
6
9
|
- '*'
|
|
7
10
|
|
|
8
|
-
env:
|
|
9
|
-
IMAGE: code.foss.global/hosttoday/ht-docker-node:npmci
|
|
10
|
-
NPMCI_COMPUTED_REPOURL: https://${-{gitea.repository_owner}-}:${-{secrets.GITEA_TOKEN}-}@{{module.githost}}/${-{gitea.repository}-}.git
|
|
11
|
-
NPMCI_TOKEN_NPM: ${-{secrets.NPMCI_TOKEN_NPM}-}
|
|
12
|
-
NPMCI_TOKEN_NPM2: ${-{secrets.NPMCI_TOKEN_NPM2}-}
|
|
13
|
-
NPMCI_GIT_GITHUBTOKEN: ${-{secrets.NPMCI_GIT_GITHUBTOKEN}-}
|
|
14
|
-
NPMCI_LOGIN_DOCKER_GITEA: ${-{ github.server_url }-}|${-{ gitea.repository_owner }-}|${-{ secrets.GITEA_TOKEN }-}
|
|
15
|
-
NPMCI_LOGIN_DOCKER_DOCKERREGISTRY: ${-{ secrets.NPMCI_LOGIN_DOCKER_DOCKERREGISTRY }-}
|
|
16
|
-
|
|
17
11
|
jobs:
|
|
18
|
-
security:
|
|
19
|
-
runs-on: ubuntu-latest
|
|
20
|
-
container:
|
|
21
|
-
image: ${-{ env.IMAGE }-}
|
|
22
|
-
continue-on-error: true
|
|
23
|
-
|
|
24
|
-
steps:
|
|
25
|
-
- uses: actions/checkout@v3
|
|
26
|
-
|
|
27
|
-
- name: Prepare
|
|
28
|
-
run: |
|
|
29
|
-
pnpm install -g pnpm
|
|
30
|
-
pnpm install -g @ship.zone/npmci
|
|
31
|
-
npmci npm prepare
|
|
32
|
-
|
|
33
|
-
- name: Audit production dependencies
|
|
34
|
-
run: |
|
|
35
|
-
npmci command npm config set registry https://registry.npmjs.org
|
|
36
|
-
npmci command pnpm audit --audit-level=high --prod
|
|
37
|
-
continue-on-error: true
|
|
38
|
-
|
|
39
|
-
- name: Audit development dependencies
|
|
40
|
-
run: |
|
|
41
|
-
npmci command npm config set registry https://registry.npmjs.org
|
|
42
|
-
npmci command pnpm audit --audit-level=high --dev
|
|
43
|
-
continue-on-error: true
|
|
44
|
-
|
|
45
12
|
test:
|
|
46
|
-
needs: security
|
|
47
|
-
runs-on: ubuntu-latest
|
|
48
|
-
container:
|
|
49
|
-
image: ${-{ env.IMAGE }-}
|
|
50
|
-
|
|
51
|
-
steps:
|
|
52
|
-
- uses: actions/checkout@v3
|
|
53
|
-
|
|
54
|
-
- name: Prepare
|
|
55
|
-
run: |
|
|
56
|
-
pnpm install -g pnpm
|
|
57
|
-
pnpm install -g @ship.zone/npmci
|
|
58
|
-
npmci npm prepare
|
|
59
|
-
|
|
60
|
-
- name: Test stable
|
|
61
|
-
run: |
|
|
62
|
-
npmci node install stable
|
|
63
|
-
npmci npm install
|
|
64
|
-
npmci npm test
|
|
65
|
-
|
|
66
|
-
- name: Test build
|
|
67
|
-
run: |
|
|
68
|
-
npmci node install stable
|
|
69
|
-
npmci npm install
|
|
70
|
-
npmci command npm run build
|
|
71
|
-
|
|
72
|
-
release:
|
|
73
|
-
needs: test
|
|
74
|
-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
75
13
|
runs-on: ubuntu-latest
|
|
76
14
|
container:
|
|
77
|
-
image: code.foss.global/
|
|
15
|
+
image: code.foss.global/host.today/ht-docker-node:latest
|
|
78
16
|
|
|
79
17
|
steps:
|
|
80
|
-
-
|
|
18
|
+
- name: Checkout
|
|
19
|
+
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
20
|
+
with:
|
|
21
|
+
persist-credentials: false
|
|
81
22
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
pnpm install -g @ship.zone/npmci
|
|
23
|
+
# The image's pnpm switches to the version package.json pins.
|
|
24
|
+
- name: Show the pnpm version
|
|
25
|
+
run: pnpm --version
|
|
86
26
|
|
|
87
|
-
- name:
|
|
88
|
-
run:
|
|
89
|
-
npmci docker login
|
|
90
|
-
npmci docker build
|
|
91
|
-
npmci docker test
|
|
92
|
-
# npmci docker push {{module.githost}}
|
|
93
|
-
npmci docker push {{module.githost}}
|
|
27
|
+
- name: Install frozen dependencies
|
|
28
|
+
run: pnpm install --frozen-lockfile
|
|
94
29
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
98
|
-
runs-on: ubuntu-latest
|
|
99
|
-
container:
|
|
100
|
-
image: ${-{ env.IMAGE }-}
|
|
101
|
-
|
|
102
|
-
steps:
|
|
103
|
-
- uses: actions/checkout@v3
|
|
30
|
+
- name: Build
|
|
31
|
+
run: pnpm build
|
|
104
32
|
|
|
105
|
-
- name:
|
|
106
|
-
run:
|
|
33
|
+
- name: Test
|
|
34
|
+
run: pnpm test
|
|
@@ -1,46 +1,27 @@
|
|
|
1
1
|
# gitzone dockerfile_service
|
|
2
|
+
# The starting point of this project's image. gitzone format never changes
|
|
3
|
+
# it: adapt what the production stage copies and runs to the project.
|
|
4
|
+
|
|
2
5
|
## STAGE 1 // BUILD
|
|
3
|
-
FROM code.foss.global/host.today/ht-docker-node:
|
|
4
|
-
COPY ./ /app
|
|
5
|
-
WORKDIR /app
|
|
6
|
-
ARG NPMCI_TOKEN_NPM2
|
|
7
|
-
ENV NPMCI_TOKEN_NPM2 $NPMCI_TOKEN_NPM2
|
|
8
|
-
RUN npmci npm prepare
|
|
9
|
-
RUN pnpm config set store-dir .pnpm-store
|
|
10
|
-
RUN rm -rf node_modules && pnpm install
|
|
11
|
-
RUN pnpm run build
|
|
6
|
+
FROM code.foss.global/host.today/ht-docker-node:alpine-node AS build
|
|
12
7
|
|
|
13
|
-
# gitzone dockerfile_service
|
|
14
|
-
## STAGE 2 // install production
|
|
15
|
-
FROM code.foss.global/host.today/ht-docker-node:npmci as node2
|
|
16
8
|
WORKDIR /app
|
|
17
|
-
COPY --from=node1 /app /app
|
|
18
|
-
RUN rm -rf .pnpm-store
|
|
19
|
-
ARG NPMCI_TOKEN_NPM2
|
|
20
|
-
ENV NPMCI_TOKEN_NPM2 $NPMCI_TOKEN_NPM2
|
|
21
|
-
RUN npmci npm prepare
|
|
22
|
-
RUN pnpm config set store-dir .pnpm-store
|
|
23
|
-
RUN rm -rf node_modules/ && pnpm install --prod
|
|
24
9
|
|
|
10
|
+
# The whole context, so the install sees every pnpm setting the project keeps
|
|
11
|
+
# beside package.json, such as pnpm-workspace.yaml.
|
|
12
|
+
COPY . ./
|
|
13
|
+
RUN pnpm install --frozen-lockfile
|
|
14
|
+
RUN pnpm run build
|
|
15
|
+
RUN pnpm prune --prod
|
|
16
|
+
|
|
17
|
+
## STAGE 2 // PRODUCTION
|
|
18
|
+
FROM code.foss.global/host.today/ht-docker-node:alpine AS production
|
|
25
19
|
|
|
26
|
-
## STAGE 3 // rebuild dependencies for alpine
|
|
27
|
-
FROM code.foss.global/host.today/ht-docker-node:alpine_npmci as node3
|
|
28
|
-
WORKDIR /app
|
|
29
|
-
COPY --from=node2 /app /app
|
|
30
|
-
ARG NPMCI_TOKEN_NPM2
|
|
31
|
-
ENV NPMCI_TOKEN_NPM2 $NPMCI_TOKEN_NPM2
|
|
32
|
-
RUN npmci npm prepare
|
|
33
|
-
RUN pnpm config set store-dir .pnpm-store
|
|
34
|
-
RUN pnpm rebuild -r
|
|
35
|
-
|
|
36
|
-
## STAGE 4 // the final production image with all dependencies in place
|
|
37
|
-
FROM code.foss.global/host.today/ht-docker-node:alpine as node4
|
|
38
20
|
WORKDIR /app
|
|
39
|
-
COPY --from=node3 /app /app
|
|
40
21
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
22
|
+
ENV NODE_ENV=production
|
|
23
|
+
|
|
24
|
+
COPY --from=build /app ./
|
|
44
25
|
|
|
45
|
-
EXPOSE
|
|
46
|
-
CMD ["
|
|
26
|
+
EXPOSE 3000
|
|
27
|
+
CMD ["node", "cli.js"]
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@git.zone/cli',
|
|
6
|
-
version: '7.
|
|
6
|
+
version: '7.1.0',
|
|
7
7
|
description: 'A comprehensive CLI tool for enhancing and managing local development workflows with gitzone utilities, focusing on project setup, version control, code formatting, and template management.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxlQUFlO0lBQ3JCLE9BQU8sRUFBRSxPQUFPO0lBQ2hCLFdBQVcsRUFBRSwrTEFBK0w7Q0FDN00sQ0FBQSJ9
|
|
@@ -13,16 +13,7 @@ export class GitzoneConfig {
|
|
|
13
13
|
async readConfigFromCwd() {
|
|
14
14
|
const smartconfigInstance = new plugins.smartconfig.Smartconfig(paths.cwd);
|
|
15
15
|
this.data = smartconfigInstance.dataFor('@git.zone/cli', {});
|
|
16
|
-
// Read szci config for backward compatibility
|
|
17
|
-
const szciConfig = smartconfigInstance.dataFor('@ship.zone/szci', {});
|
|
18
|
-
// Prefer accessLevel from @git.zone/cli.release, fallback to @ship.zone/szci.npmAccessLevel
|
|
19
|
-
const accessLevel = this.data?.release?.accessLevel ||
|
|
20
|
-
szciConfig?.npmAccessLevel ||
|
|
21
|
-
'public';
|
|
22
|
-
this.data.npmciOptions = {
|
|
23
|
-
npmAccessLevel: accessLevel,
|
|
24
|
-
};
|
|
25
16
|
}
|
|
26
17
|
constructor() { }
|
|
27
18
|
}
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xhc3Nlcy5naXR6b25lY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvY2xhc3Nlcy5naXR6b25lY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sY0FBYyxDQUFDO0FBQ3hDLE9BQU8sS0FBSyxLQUFLLE1BQU0sWUFBWSxDQUFDO0FBdUJwQzs7R0FFRztBQUNILE1BQU0sT0FBTyxhQUFhO0lBQ2pCLE1BQU0sQ0FBQyxLQUFLLENBQUMsT0FBTztRQUN6QixNQUFNLGFBQWEsR0FBRyxJQUFJLGFBQWEsRUFBRSxDQUFDO1FBQzFDLE1BQU0sYUFBYSxDQUFDLGlCQUFpQixFQUFFLENBQUM7UUFDeEMsT0FBTyxhQUFhLENBQUM7SUFDdkIsQ0FBQztJQUVNLElBQUksQ0FBc0I7SUFFMUIsS0FBSyxDQUFDLGlCQUFpQjtRQUM1QixNQUFNLG1CQUFtQixHQUFHLElBQUksT0FBTyxDQUFDLFdBQVcsQ0FBQyxXQUFXLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDO1FBQzNFLElBQUksQ0FBQyxJQUFJLEdBQUcsbUJBQW1CLENBQUMsT0FBTyxDQUFxQixlQUFlLEVBQUUsRUFBRSxDQUFDLENBQUM7SUFDbkYsQ0FBQztJQUVELGdCQUFlLENBQUM7Q0FDakIifQ==
|
|
@@ -4,4 +4,5 @@ export interface ISmartconfigMigrationResult {
|
|
|
4
4
|
fromVersion: number;
|
|
5
5
|
toVersion: number;
|
|
6
6
|
}
|
|
7
|
+
export declare const SHIPZONE_NAMESPACE = "@ship.zone/szci";
|
|
7
8
|
export declare const migrateSmartconfigData: (smartconfigJson: Record<string, any>, targetVersion?: number) => ISmartconfigMigrationResult;
|