@diia-inhouse/scaffold 2.59.2 → 2.60.1
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/dist/_templates/init/package/01-package.json.t +10 -10
- package/dist/_templates/init/service/01-.gitlab-ci.yml.t +2 -3
- package/dist/_templates/init/service/01-buf.gen.yaml.t +10 -0
- package/dist/_templates/init/service/01-buf.yaml.t +10 -0
- package/dist/_templates/init/service/01-package.json.t +16 -17
- package/dist/_templates/init/service/02-scriptRunner.ts.t +1 -1
- package/dist/depsNames.js +1 -1
- package/dist/depsNames.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,11 +5,17 @@ to: <%= packageName %>/package.json
|
|
|
5
5
|
{
|
|
6
6
|
"name": "@diia-inhouse/<%= packageName %>",
|
|
7
7
|
"version": "1.0.0",
|
|
8
|
-
"type": "module",
|
|
9
8
|
"description": "<%= description %>",
|
|
10
9
|
"author": "diia-team",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"type": "module",
|
|
11
14
|
"main": "dist/index.js",
|
|
12
15
|
"types": "dist/index.d.ts",
|
|
16
|
+
"imports": {
|
|
17
|
+
"#*": "./dist/*"
|
|
18
|
+
},
|
|
13
19
|
"exports": {
|
|
14
20
|
".": {
|
|
15
21
|
"types": "./dist/index.d.ts",
|
|
@@ -17,9 +23,6 @@ to: <%= packageName %>/package.json
|
|
|
17
23
|
},
|
|
18
24
|
"./package.json": "./package.json"
|
|
19
25
|
},
|
|
20
|
-
"engines": {
|
|
21
|
-
"node": ">=24"
|
|
22
|
-
},
|
|
23
26
|
"scripts": {
|
|
24
27
|
"prebuild": "rimraf dist",
|
|
25
28
|
"build": "tsdown",
|
|
@@ -33,18 +36,15 @@ to: <%= packageName %>/package.json
|
|
|
33
36
|
"find-circulars": "madge --circular --extensions ts ./",
|
|
34
37
|
"lint:lockfile": "lockfile-lint --path package-lock.json --allowed-hosts registry.npmjs.org gitlab.diia.org.ua --validate-https"
|
|
35
38
|
},
|
|
36
|
-
"files": ["dist"],
|
|
37
|
-
"imports": {
|
|
38
|
-
"#*": "./dist/*"
|
|
39
|
-
},
|
|
40
|
-
"keywords": [],
|
|
41
|
-
"devDependencies": {},
|
|
42
39
|
"commitlint": {
|
|
43
40
|
"extends": "@diia-inhouse/configs/dist/commitlint"
|
|
44
41
|
},
|
|
45
42
|
"release": {
|
|
46
43
|
"extends": "@diia-inhouse/configs/dist/semantic-release/package"
|
|
47
44
|
},
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=24"
|
|
47
|
+
},
|
|
48
48
|
"madge": {
|
|
49
49
|
"tsConfig": "./tsconfig.json"
|
|
50
50
|
}
|
|
@@ -10,11 +10,10 @@ variables:
|
|
|
10
10
|
CI_PIPELINE_TYPE: nodeJS-tag
|
|
11
11
|
CI_BUFBUILD_PROTOBUF_VERSION: '2.12.0'
|
|
12
12
|
NODE_DEBIAN_BUILD_ENABLED: 'true'
|
|
13
|
+
CI_PROTO_BUF: 'true'
|
|
14
|
+
CI_PROTO_BREAKING: 'true'
|
|
13
15
|
|
|
14
16
|
include:
|
|
15
17
|
- project: diia-inhouse/ci
|
|
16
18
|
ref: main
|
|
17
19
|
file: main/node.gitlab-ci.yaml
|
|
18
|
-
- project: diia-inhouse/ci
|
|
19
|
-
ref: main
|
|
20
|
-
file: main/proto.gitlab-ci.yaml
|
|
@@ -5,43 +5,42 @@ to: <%= serviceName %>/package.json
|
|
|
5
5
|
{
|
|
6
6
|
"name": "<%= serviceName.replace(/-service$/, '') %>",
|
|
7
7
|
"version": "1.0.0",
|
|
8
|
-
"
|
|
8
|
+
"private": true,
|
|
9
9
|
"description": "<%= description %>",
|
|
10
10
|
"author": "diia-team",
|
|
11
|
+
"type": "module",
|
|
11
12
|
"main": "dist/index.js",
|
|
13
|
+
"imports": {
|
|
14
|
+
"#*": "./dist/*"
|
|
15
|
+
},
|
|
12
16
|
"scripts": {
|
|
13
17
|
"build": "rimraf dist && npm run genproto && tsc",
|
|
14
18
|
"start": "node dist/index.js",
|
|
19
|
+
"dev": "diia-dev",
|
|
15
20
|
"semantic-release": "semantic-release -e @diia-inhouse/configs/dist/semantic-release/service-stage --debug --ci",
|
|
16
21
|
"semantic-release-prod": "semantic-release -e @diia-inhouse/configs/dist/semantic-release/service-prod --debug --ci",
|
|
17
|
-
"lint": "oxlint && oxfmt --check . && buf
|
|
18
|
-
"lint-fix": "oxlint --fix && oxfmt . && buf
|
|
22
|
+
"lint": "oxlint && oxfmt --check . && diia-buf-lint",
|
|
23
|
+
"lint-fix": "oxlint --fix && oxfmt . && diia-buf-lint --fix",
|
|
19
24
|
"lint:lockfile": "lockfile-lint --path package-lock.json --allowed-hosts registry.npmjs.org gitlab.diia.org.ua --validate-https",
|
|
20
|
-
"test": "npm run genproto
|
|
25
|
+
"test": "npm run genproto && tsc --project tests/tsconfig.json --noEmit && vitest run",
|
|
21
26
|
"test:watch": "vitest watch",
|
|
22
27
|
"test:coverage": "vitest run --coverage",
|
|
23
|
-
<%if (h.isOptionSelected(selectedDependencies, 'database')) {%>
|
|
28
|
+
<%_ if (h.isOptionSelected(selectedDependencies, 'database')) { _%>
|
|
24
29
|
"migrate-test": "NODE_ENV=test npm run migrate up",
|
|
25
30
|
"migrate": "npm run indexes:sync && sh -c 'tsx --tsconfig migrations/tsconfig.json node_modules/.bin/migrate-mongo $0 $1 -f migrate-mongo-config.ts'",
|
|
26
31
|
"indexes:sync": "./node_modules/.bin/diia-db sync-indexes",
|
|
27
|
-
<%}%>
|
|
32
|
+
<%_ } _%>
|
|
28
33
|
"find-circulars": "madge --circular --extensions ts ./",
|
|
29
34
|
"scaffold": "scaffold",
|
|
30
|
-
"genproto": "
|
|
31
|
-
|
|
32
|
-
"keywords": [],
|
|
33
|
-
"engines": {
|
|
34
|
-
"node": ">=24"
|
|
35
|
-
},
|
|
36
|
-
"files": [
|
|
37
|
-
"dist"
|
|
38
|
-
],
|
|
39
|
-
"imports": {
|
|
40
|
-
"#*": "./dist/*"
|
|
35
|
+
"genproto": "buf generate",
|
|
36
|
+
"proto:breaking": "diia-buf-breaking"
|
|
41
37
|
},
|
|
42
38
|
"commitlint": {
|
|
43
39
|
"extends": "@diia-inhouse/configs/dist/commitlint"
|
|
44
40
|
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=24"
|
|
43
|
+
},
|
|
45
44
|
"madge": {
|
|
46
45
|
"tsConfig": "./tsconfig.json"
|
|
47
46
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
sh: "cd <%= serviceName %> && echo 'Installing dependencies and setting up environment, please wait...' && npm install <%= dependencies.deps %> --package-lock-only && npm install --save-dev <%= dependencies.devDeps %> --package-lock-only && rm -f package-lock.json && npm install && npm run genproto && npm run lint-fix && cp .env.example .env && cp .env.test .env.test.local && npm run build && npm test"
|
|
2
|
+
sh: "cd <%= serviceName %> && echo 'Installing dependencies and setting up environment, please wait...' && npm install <%= dependencies.deps %> --package-lock-only && npm install --save-dev <%= dependencies.devDeps %> --package-lock-only && rm -f package-lock.json && npm install && npx buf dep update && npm run genproto && npm run lint-fix && cp .env.example .env && cp .env.test .env.test.local && npm run build && npm test"
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
This file does not appear in the final package generation
|
package/dist/depsNames.js
CHANGED
|
@@ -19,7 +19,7 @@ const CommonDevDeps = [
|
|
|
19
19
|
'vitest-mock-extended',
|
|
20
20
|
];
|
|
21
21
|
const PackageDevDeps = [...CommonDevDeps, 'tsdown'];
|
|
22
|
-
const ServiceDevDeps = [...CommonDevDeps, '@bufbuild/buf', '@diia-inhouse/
|
|
22
|
+
const ServiceDevDeps = [...CommonDevDeps, '@bufbuild/buf', '@diia-inhouse/scaffold', 'tsx'];
|
|
23
23
|
exports.packageDependencies = { devDeps: PackageDevDeps };
|
|
24
24
|
exports.PackageDeps = [
|
|
25
25
|
'@diia-inhouse/crypto',
|
package/dist/depsNames.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depsNames.js","sourceRoot":"","sources":["../src/depsNames.ts"],"names":[],"mappings":";;;AAAA,MAAM,aAAa,GAAG;IAClB,uBAAuB;IACvB,0BAA0B;IAC1B,oBAAoB;IACpB,qBAAqB;IACrB,YAAY;IACZ,eAAe;IACf,OAAO;IACP,OAAO;IACP,QAAQ;IACR,iBAAiB;IACjB,QAAQ;IACR,kBAAkB;IAClB,YAAY;IACZ,QAAQ;IACR,sBAAsB;CAChB,CAAA;AAEV,MAAM,cAAc,GAAG,CAAC,GAAG,aAAa,EAAE,QAAQ,CAAU,CAAA;AAE5D,MAAM,cAAc,GAAG,CAAC,GAAG,aAAa,EAAE,eAAe,EAAE,wBAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"depsNames.js","sourceRoot":"","sources":["../src/depsNames.ts"],"names":[],"mappings":";;;AAAA,MAAM,aAAa,GAAG;IAClB,uBAAuB;IACvB,0BAA0B;IAC1B,oBAAoB;IACpB,qBAAqB;IACrB,YAAY;IACZ,eAAe;IACf,OAAO;IACP,OAAO;IACP,QAAQ;IACR,iBAAiB;IACjB,QAAQ;IACR,kBAAkB;IAClB,YAAY;IACZ,QAAQ;IACR,sBAAsB;CAChB,CAAA;AAEV,MAAM,cAAc,GAAG,CAAC,GAAG,aAAa,EAAE,QAAQ,CAAU,CAAA;AAE5D,MAAM,cAAc,GAAG,CAAC,GAAG,aAAa,EAAE,eAAe,EAAE,wBAAwB,EAAE,KAAK,CAAU,CAAA;AAEvF,QAAA,mBAAmB,GAAG,EAAE,OAAO,EAAE,cAAc,EAAE,CAAA;AAEjD,QAAA,WAAW,GAAG;IACvB,sBAAsB;IACtB,kBAAkB;IAClB,6BAA6B;IAC7B,wBAAwB;IACxB,2BAA2B;IAC3B,0BAA0B;IAC1B,4BAA4B;IAC5B,mBAAmB;IACnB,sBAAsB;IACtB,2BAA2B;IAC3B,qBAAqB;IACrB,qBAAqB;IACrB,qBAAqB;IACrB,0BAA0B;IAC1B,eAAe;CACT,CAAA;AAIG,QAAA,mBAAmB,GAAG;IAC/B,OAAO,EAAE,cAAc;IACvB,IAAI,EAAE,mBAAW;CACpB,CAAA"}
|