0.1.44 • Published 2 years ago
@atomist/skill-entry-point v0.1.44
Installation
npm install @atomist/skill-entry-point
start(handler)
Start a CloudRun skill handler function
Examples:
const api = require("@atomist/skill-entry-point")
api.start(async payload => {
payload.logger.info(`skill id: ${payload.skill.id}`)
return {status: {code: 0, reason: "hey"}}
});
Params:
- Function handler async callback which will receive the skill payload
Return:
- Object js Object should have a
status
key to report back on the skill processing.
prStr(obj)
create an application/edn
string.
Examples:
var obj = {"a/b": BigInt("123456")}
prStr(obj)
Params:
- Object obj the js Object to serialize to
application/edn
.
Return:
- String
application/edn
string with BigInts serialized with tags
readString(s)
read a js Object from an application/edn
string.
Examples:
var s = prStr({"a/b": BigInt("123456")})
var obj = readString(s)
Params:
- String s the
application/edn
string.
Return:
- Object js Object
Building
- working dir must be clean
- the HEAD commit must not have a tag
- the last reachable tag from the HEAD commit must be a valid semver
- that semver should be the current latest release
Create a new release using the command below.
bb release
0.1.44
2 years ago
0.1.41
2 years ago
0.1.40
2 years ago
0.1.39
2 years ago
0.1.38
2 years ago
0.1.35
2 years ago
0.1.34
2 years ago
0.1.33
2 years ago
0.1.32
2 years ago
0.1.31
2 years ago
0.1.30
2 years ago
0.1.29
2 years ago
0.1.28
2 years ago
0.1.27
2 years ago
0.1.26
2 years ago
0.1.25
2 years ago
0.1.24
2 years ago
0.1.23
2 years ago
0.1.22
2 years ago
0.1.21
2 years ago
0.1.20
2 years ago
0.1.19
2 years ago
0.1.18
2 years ago
0.1.17
2 years ago
0.1.16
2 years ago
0.1.15
2 years ago
0.1.14
2 years ago
0.1.13
2 years ago
0.1.12
2 years ago
0.1.11
2 years ago
0.1.10
2 years ago
0.1.9
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago