@sap/cds-dk 7.0.0 → 7.0.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/bin/add.js +34 -38
- package/bin/build.js +4 -0
- package/bin/cds.js +13 -8
- package/bin/compile/index.js +3 -3
- package/bin/env.js +4 -1
- package/bin/help.js +2 -3
- package/lib/bind/bindingManager.js +1 -1
- package/lib/bind/bindingResolver.js +1 -1
- package/lib/bind/bindingUtil.js +1 -1
- package/lib/build/buildTaskEngine.js +1 -1
- package/lib/build/provider/buildTaskHandlerFeatureToggles.js +2 -1
- package/lib/build/provider/buildTaskHandlerInternal.js +1 -1
- package/lib/build/provider/java/index.js +2 -2
- package/lib/build/provider/mtx-sidecar/index.js +3 -4
- package/lib/build/provider/nodejs/index.js +6 -5
- package/lib/build/util.js +8 -0
- package/lib/cds.js +2 -2
- package/lib/import/asyncapi/parserContext.js +2 -2
- package/lib/index.js +6 -0
- package/lib/init/constants.js +4 -4
- package/lib/init/index.js +37 -38
- package/lib/init/template/_merging/registry-mta.js +2 -2
- package/lib/init/template/approuter/index.js +12 -8
- package/lib/init/template/auditlog/index.js +7 -7
- package/lib/init/template/cf-manifest/index.js +5 -5
- package/lib/init/template/connectivity/index.js +7 -7
- package/lib/init/template/data/index.js +1 -1
- package/lib/init/template/destination/index.js +6 -6
- package/lib/init/template/enterprise-messaging/index.js +10 -10
- package/lib/init/template/enterprise-messaging-shared/index.js +8 -8
- package/lib/init/template/extensibility/index.js +6 -6
- package/lib/init/template/file-based-messaging/index.js +4 -4
- package/lib/init/template/hana/index.js +11 -11
- package/lib/init/template/helm/index.js +5 -5
- package/lib/init/template/html5-repo/index.js +2 -2
- package/lib/init/template/java/index.js +20 -37
- package/lib/init/template/kibana/files/mta.yaml.hbs +29 -0
- package/lib/init/template/kibana/index.js +55 -0
- package/lib/init/template/multitenancy/files/package.json.hbs +0 -3
- package/lib/init/template/multitenancy/files/package.sidecar.json.hbs +1 -1
- package/lib/init/template/multitenancy/index.js +18 -12
- package/lib/init/template/nodejs/files/package.json.hbs +1 -1
- package/lib/init/template/nodejs/index.js +12 -19
- package/lib/init/template/pipeline/index.js +1 -1
- package/lib/init/template/redis-messaging/index.js +7 -7
- package/lib/init/template/sample/files/app/_i18n/i18n.properties +3 -32
- package/lib/init/template/sample/files/app/_i18n/i18n_de.properties +2 -2
- package/lib/init/template/sample/files/app/admin-books/fiori-service.cds +6 -7
- package/lib/init/template/sample/files/app/admin-books/webapp/Component.js +3 -3
- package/lib/init/template/sample/files/app/admin-books/webapp/i18n/i18n.properties +3 -11
- package/lib/init/template/sample/files/app/admin-books/webapp/manifest.json +117 -113
- package/lib/init/template/sample/files/app/appconfig/fioriSandboxConfig.json +38 -0
- package/lib/init/template/sample/files/app/browse/fiori-service.cds +56 -0
- package/lib/init/template/sample/files/app/browse/webapp/Component.js +7 -0
- package/lib/init/template/sample/files/app/browse/webapp/i18n/i18n.properties +4 -0
- package/lib/init/template/sample/files/app/browse/webapp/manifest.json +139 -0
- package/lib/init/template/sample/files/app/common.cds +78 -81
- package/lib/init/template/sample/files/app/services.cds +1 -0
- package/lib/init/template/samples/index.js +3 -3
- package/lib/init/template/sqlite/files/package.json.hbs +1 -21
- package/lib/init/template/sqlite/index.js +4 -4
- package/lib/init/template/templateBase.js +1 -1
- package/lib/init/template/{sample-tiny → tiny-sample}/files/nodejs/db/data-model.cds +1 -1
- package/lib/init/template/{sample-tiny → tiny-sample}/files/nodejs/srv/cat-service.cds.hbs +1 -1
- package/lib/init/template/{sample-tiny → tiny-sample}/index.js +2 -2
- package/lib/init/template/toggles/index.js +3 -3
- package/lib/init/template/typer/index.js +6 -5
- package/lib/init/template/xsuaa/index.js +9 -9
- package/lib/init/util/md5.js +2 -2
- package/lib/init/util/merge.js +9 -9
- package/lib/init/util/mvn.js +1 -1
- package/lib/init/util/projectReader.js +4 -4
- package/lib/util/fs.js +10 -10
- package/lib/util/term.js +2 -0
- package/npm-shrinkwrap.json +281 -334
- package/package.json +1 -1
- package/lib/init/template/kibana-logging/files/cds.package.json +0 -7
- package/lib/init/template/kibana-logging/files/mta.yaml.hbs +0 -14
- package/lib/init/template/kibana-logging/index.js +0 -45
- /package/lib/init/template/{kibana-logging → kibana}/files/package.json.hbs +0 -0
- /package/lib/init/template/{sample-tiny → tiny-sample}/files/nodejs/db/data/my.bookshop-Books.csv +0 -0
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
modules:
|
|
3
|
-
- name: {{appName}}-srv
|
|
4
|
-
type: {{language}}
|
|
5
|
-
path: {{& srvPath}}
|
|
6
|
-
requires:
|
|
7
|
-
- name: {{appName}}-cf-logging
|
|
8
|
-
|
|
9
|
-
resources:
|
|
10
|
-
- name: {{appName}}-cf-logging
|
|
11
|
-
type: org.cloudfoundry.managed-service
|
|
12
|
-
parameters:
|
|
13
|
-
service: application-logs
|
|
14
|
-
service-plan: lite
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const { join } = require('path')
|
|
2
|
-
const cds = require('../../../cds')
|
|
3
|
-
const { readProject } = require('../../util/projectReader')
|
|
4
|
-
const { mergeJSON, mergeYAML } = require('../../util/merge')
|
|
5
|
-
const { srvNode4, srvJava4, kibanaLogging } = require('../_merging/registry-mta')
|
|
6
|
-
|
|
7
|
-
module.exports = class KibanaLoggingTemplate extends require('../templateBase') {
|
|
8
|
-
|
|
9
|
-
async canRun() {
|
|
10
|
-
const { hasMta, hasHelm } = await readProject(this.options)
|
|
11
|
-
if (hasHelm && !hasMta) {
|
|
12
|
-
throw `'cds add kibana-logging' is not available for Kyma yet`
|
|
13
|
-
}
|
|
14
|
-
return true
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
async run() {
|
|
18
|
-
const projectDescriptor = await readProject(this.options)
|
|
19
|
-
const { isJava } = projectDescriptor
|
|
20
|
-
if (isJava) cds.error(`kibana-logging is not implemented for project type Java yet`)
|
|
21
|
-
await mergeJSON('package.json', join(__dirname, 'files', 'package.json.hbs'), projectDescriptor)
|
|
22
|
-
await this.runDependentMerging()
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
async runDependentMerging() {
|
|
26
|
-
const projectDescriptor = await readProject(this.options)
|
|
27
|
-
const { hasMta, isNodejs, srvPath } = projectDescriptor
|
|
28
|
-
|
|
29
|
-
if (hasMta) {
|
|
30
|
-
const srv = (isNodejs ? srvNode4 : srvJava4)(srvPath)
|
|
31
|
-
await mergeYAML(
|
|
32
|
-
'mta.yaml',
|
|
33
|
-
join(__dirname, 'files', 'mta.yaml.hbs'),
|
|
34
|
-
projectDescriptor,
|
|
35
|
-
{
|
|
36
|
-
additions: [srv, kibanaLogging],
|
|
37
|
-
relationships: [{
|
|
38
|
-
insert: [kibanaLogging, 'name'],
|
|
39
|
-
into: [srv, 'requires', 'name']
|
|
40
|
-
}],
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
File without changes
|
/package/lib/init/template/{sample-tiny → tiny-sample}/files/nodejs/db/data/my.bookshop-Books.csv
RENAMED
|
File without changes
|