skuba 4.3.0-beta.0 → 4.3.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/lib/api/git/pull.d.ts +3 -3
- package/lib/api/git/pull.js +1 -1
- package/lib/api/github/index.d.ts +1 -1
- package/lib/api/github/index.js +4 -4
- package/lib/api/github/index.js.map +1 -1
- package/lib/api/github/push.d.ts +25 -14
- package/lib/api/github/push.js +41 -26
- package/lib/api/github/push.js.map +1 -1
- package/lib/api/jest/index.d.ts +1 -1
- package/lib/cli/configure/analyseDependencies.js +1 -2
- package/lib/cli/configure/analyseDependencies.js.map +1 -1
- package/lib/cli/configure/processing/package.d.ts +1 -1
- package/lib/cli/lint/autofix.js +3 -2
- package/lib/cli/lint/autofix.js.map +1 -1
- package/lib/utils/version.d.ts +1 -0
- package/lib/utils/version.js +11 -3
- package/lib/utils/version.js.map +1 -1
- package/package.json +9 -10
- package/template/express-rest-api/Dockerfile +1 -1
- package/template/express-rest-api/Dockerfile.dev-deps +1 -1
- package/template/express-rest-api/README.md +11 -10
- package/template/express-rest-api/gantry.apply.yml +2 -0
- package/template/express-rest-api/gantry.build.yml +2 -0
- package/template/greeter/Dockerfile +1 -1
- package/template/greeter/README.md +11 -10
- package/template/koa-rest-api/Dockerfile +1 -1
- package/template/koa-rest-api/Dockerfile.dev-deps +1 -1
- package/template/koa-rest-api/README.md +11 -10
- package/template/koa-rest-api/gantry.apply.yml +2 -0
- package/template/koa-rest-api/gantry.build.yml +2 -0
- package/template/koa-rest-api/package.json +3 -3
- package/template/lambda-sqs-worker/Dockerfile +1 -1
- package/template/lambda-sqs-worker/README.md +11 -10
- package/template/lambda-sqs-worker-cdk/Dockerfile +1 -1
- package/template/lambda-sqs-worker-cdk/infra/__snapshots__/appStack.test.ts.snap +6 -0
- package/template/lambda-sqs-worker-cdk/infra/appStack.ts +1 -0
- package/template/oss-npm-package/README.md +4 -7
- package/template/private-npm-package/README.md +4 -7
- package/template/express-rest-api/.me +0 -22
- package/template/greeter/.me +0 -20
- package/template/koa-rest-api/.me +0 -22
- package/template/lambda-sqs-worker/.me +0 -22
- package/template/lambda-sqs-worker-cdk/.me +0 -22
- package/template/oss-npm-package/.me +0 -21
- package/template/private-npm-package/.me +0 -21
package/lib/api/git/pull.d.ts
CHANGED
|
@@ -17,19 +17,19 @@ interface PullParameters {
|
|
|
17
17
|
auth: GitHubAppAuth;
|
|
18
18
|
dir: string;
|
|
19
19
|
/**
|
|
20
|
-
* The branch to
|
|
20
|
+
* The local branch to fast forward.
|
|
21
21
|
*/
|
|
22
22
|
ref: string;
|
|
23
23
|
remote?: string;
|
|
24
24
|
/**
|
|
25
|
-
* The
|
|
25
|
+
* The branch or tag on the remote to reference.
|
|
26
26
|
*
|
|
27
27
|
* This defaults to `ref`.
|
|
28
28
|
*/
|
|
29
29
|
remoteRef?: string;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
* Fast forwards the local
|
|
32
|
+
* Fast forwards the specified `ref` on the local Git repository to match the remote branch.
|
|
33
33
|
*/
|
|
34
34
|
export declare const fastForwardBranch: ({ auth, dir, ref, remote, remoteRef, }: PullParameters) => Promise<void>;
|
|
35
35
|
export {};
|
package/lib/api/git/pull.js
CHANGED
|
@@ -10,7 +10,7 @@ const node_1 = __importDefault(require("isomorphic-git/http/node"));
|
|
|
10
10
|
const environment_1 = require("../github/environment");
|
|
11
11
|
const remote_1 = require("./remote");
|
|
12
12
|
/**
|
|
13
|
-
* Fast forwards the local
|
|
13
|
+
* Fast forwards the specified `ref` on the local Git repository to match the remote branch.
|
|
14
14
|
*/
|
|
15
15
|
const fastForwardBranch = async ({ auth, dir, ref, remote, remoteRef, }) => {
|
|
16
16
|
const { owner, repo } = await (0, remote_1.getOwnerAndRepo)({ dir });
|
|
@@ -4,4 +4,4 @@ export { createCheckRun } from './checkRun';
|
|
|
4
4
|
export { enabledFromEnvironment } from './environment';
|
|
5
5
|
export { getPullRequestNumber } from './pullRequest';
|
|
6
6
|
export { putIssueComment } from './issueComment';
|
|
7
|
-
export {
|
|
7
|
+
export { readFileChanges, uploadAllFileChanges, uploadFileChanges, } from './push';
|
package/lib/api/github/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.uploadFileChanges = exports.uploadAllFileChanges = exports.readFileChanges = exports.putIssueComment = exports.getPullRequestNumber = exports.enabledFromEnvironment = exports.createCheckRun = exports.buildNameFromEnvironment = void 0;
|
|
4
4
|
var environment_1 = require("./environment");
|
|
5
5
|
Object.defineProperty(exports, "buildNameFromEnvironment", { enumerable: true, get: function () { return environment_1.buildNameFromEnvironment; } });
|
|
6
6
|
var checkRun_1 = require("./checkRun");
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "getPullRequestNumber", { enumerable: true, get:
|
|
|
12
12
|
var issueComment_1 = require("./issueComment");
|
|
13
13
|
Object.defineProperty(exports, "putIssueComment", { enumerable: true, get: function () { return issueComment_1.putIssueComment; } });
|
|
14
14
|
var push_1 = require("./push");
|
|
15
|
-
Object.defineProperty(exports, "
|
|
16
|
-
Object.defineProperty(exports, "
|
|
17
|
-
Object.defineProperty(exports, "
|
|
15
|
+
Object.defineProperty(exports, "readFileChanges", { enumerable: true, get: function () { return push_1.readFileChanges; } });
|
|
16
|
+
Object.defineProperty(exports, "uploadAllFileChanges", { enumerable: true, get: function () { return push_1.uploadAllFileChanges; } });
|
|
17
|
+
Object.defineProperty(exports, "uploadFileChanges", { enumerable: true, get: function () { return push_1.uploadFileChanges; } });
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/github/index.ts"],"names":[],"mappings":";;;AACA,6CAAyD;AAAhD,uHAAA,wBAAwB,OAAA;AACjC,uCAA4C;AAAnC,0GAAA,cAAc,OAAA;AACvB,6CAAuD;AAA9C,qHAAA,sBAAsB,OAAA;AAC/B,6CAAqD;AAA5C,mHAAA,oBAAoB,OAAA;AAC7B,+CAAiD;AAAxC,+GAAA,eAAe,OAAA;AACxB,+BAIgB;AAHd,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/github/index.ts"],"names":[],"mappings":";;;AACA,6CAAyD;AAAhD,uHAAA,wBAAwB,OAAA;AACjC,uCAA4C;AAAnC,0GAAA,cAAc,OAAA;AACvB,6CAAuD;AAA9C,qHAAA,sBAAsB,OAAA;AAC/B,6CAAqD;AAA5C,mHAAA,oBAAoB,OAAA;AAC7B,+CAAiD;AAAxC,+GAAA,eAAe,OAAA;AACxB,+BAIgB;AAHd,uGAAA,eAAe,OAAA;AACf,4GAAA,oBAAoB,OAAA;AACpB,yGAAA,iBAAiB,OAAA"}
|
package/lib/api/github/push.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FileAddition, FileDeletion } from '@octokit/graphql-schema';
|
|
2
2
|
import type { ChangedFile } from '../git/getChangedFiles';
|
|
3
|
-
interface
|
|
3
|
+
interface UploadAllFileChangesParams {
|
|
4
4
|
dir: string;
|
|
5
5
|
/**
|
|
6
6
|
* The branch name
|
|
@@ -15,24 +15,35 @@ interface CommitAndPushAllChangesParams {
|
|
|
15
15
|
*/
|
|
16
16
|
messageBody?: string;
|
|
17
17
|
/**
|
|
18
|
-
* Updates the local
|
|
18
|
+
* Updates the local Git repository to match the new remote branch state
|
|
19
19
|
*/
|
|
20
20
|
updateLocal?: boolean;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* Retrieves all file changes from the local Git repository using
|
|
24
|
+
* `getChangedFiles`, then uploads the changes to a specified GitHub branch
|
|
25
|
+
* using `uploadFileChanges`.
|
|
26
|
+
*
|
|
27
|
+
* Returns the commit ID, or `undefined` if there are no changes to commit.
|
|
28
|
+
*
|
|
29
|
+
* The file changes will appear as verified commits on GitHub.
|
|
30
|
+
*
|
|
31
|
+
* This will not update the local Git repository unless `updateLocal` is
|
|
32
|
+
* specified.
|
|
25
33
|
*/
|
|
26
|
-
export declare const
|
|
34
|
+
export declare const uploadAllFileChanges: ({ dir, branch, messageHeadline, messageBody, updateLocal, }: UploadAllFileChangesParams) => Promise<string | undefined>;
|
|
27
35
|
export interface FileChanges {
|
|
28
36
|
additions: FileAddition[];
|
|
29
37
|
deletions: FileDeletion[];
|
|
30
38
|
}
|
|
31
39
|
/**
|
|
32
|
-
*
|
|
40
|
+
* Takes a list of `ChangedFiles`, reads them from the file system, and maps
|
|
41
|
+
* them to GitHub GraphQL `FileChanges`.
|
|
42
|
+
*
|
|
43
|
+
* https://docs.github.com/en/graphql/reference/input-objects#filechanges
|
|
33
44
|
*/
|
|
34
|
-
export declare const
|
|
35
|
-
interface
|
|
45
|
+
export declare const readFileChanges: (changedFiles: ChangedFile[]) => Promise<FileChanges>;
|
|
46
|
+
interface UploadFileChangesParams {
|
|
36
47
|
dir: string;
|
|
37
48
|
/**
|
|
38
49
|
* The branch name
|
|
@@ -50,13 +61,13 @@ interface CommitAndPushParams {
|
|
|
50
61
|
* File additions and deletions
|
|
51
62
|
*/
|
|
52
63
|
fileChanges: FileChanges;
|
|
53
|
-
/**
|
|
54
|
-
* Updates the local git working directory to reflect the new remote state
|
|
55
|
-
*/
|
|
56
|
-
updateLocal?: boolean;
|
|
57
64
|
}
|
|
58
65
|
/**
|
|
59
|
-
*
|
|
66
|
+
* Uploads file changes from the local workspace to a specified GitHub branch.
|
|
67
|
+
*
|
|
68
|
+
* The file changes will appear as verified commits on GitHub.
|
|
69
|
+
*
|
|
70
|
+
* This will not update the local Git repository.
|
|
60
71
|
*/
|
|
61
|
-
export declare const
|
|
72
|
+
export declare const uploadFileChanges: ({ dir, branch, messageHeadline, messageBody, fileChanges, }: UploadFileChangesParams) => Promise<string>;
|
|
62
73
|
export {};
|
package/lib/api/github/push.js
CHANGED
|
@@ -26,35 +26,54 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.uploadFileChanges = exports.readFileChanges = exports.uploadAllFileChanges = void 0;
|
|
30
30
|
const graphql_1 = require("@octokit/graphql");
|
|
31
31
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
32
32
|
const Git = __importStar(require("../git"));
|
|
33
33
|
const environment_1 = require("./environment");
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
35
|
+
* Retrieves all file changes from the local Git repository using
|
|
36
|
+
* `getChangedFiles`, then uploads the changes to a specified GitHub branch
|
|
37
|
+
* using `uploadFileChanges`.
|
|
38
|
+
*
|
|
39
|
+
* Returns the commit ID, or `undefined` if there are no changes to commit.
|
|
40
|
+
*
|
|
41
|
+
* The file changes will appear as verified commits on GitHub.
|
|
42
|
+
*
|
|
43
|
+
* This will not update the local Git repository unless `updateLocal` is
|
|
44
|
+
* specified.
|
|
37
45
|
*/
|
|
38
|
-
const
|
|
46
|
+
const uploadAllFileChanges = async ({ dir, branch, messageHeadline, messageBody, updateLocal = false, }) => {
|
|
39
47
|
const changedFiles = await Git.getChangedFiles({ dir });
|
|
40
48
|
if (!changedFiles.length) {
|
|
41
49
|
return undefined;
|
|
42
50
|
}
|
|
43
|
-
const fileChanges = await (0, exports.
|
|
44
|
-
|
|
51
|
+
const fileChanges = await (0, exports.readFileChanges)(changedFiles);
|
|
52
|
+
const commitId = await (0, exports.uploadFileChanges)({
|
|
45
53
|
dir,
|
|
46
54
|
branch,
|
|
47
55
|
messageHeadline,
|
|
48
56
|
messageBody,
|
|
49
57
|
fileChanges,
|
|
50
|
-
updateLocal,
|
|
51
58
|
});
|
|
59
|
+
if (updateLocal) {
|
|
60
|
+
await Promise.all([...fileChanges.additions, ...fileChanges.deletions].map((file) => fs_extra_1.default.rm(file.path)));
|
|
61
|
+
await Git.fastForwardBranch({
|
|
62
|
+
ref: branch,
|
|
63
|
+
auth: { type: 'gitHubApp' },
|
|
64
|
+
dir,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
return commitId;
|
|
52
68
|
};
|
|
53
|
-
exports.
|
|
69
|
+
exports.uploadAllFileChanges = uploadAllFileChanges;
|
|
54
70
|
/**
|
|
55
|
-
*
|
|
71
|
+
* Takes a list of `ChangedFiles`, reads them from the file system, and maps
|
|
72
|
+
* them to GitHub GraphQL `FileChanges`.
|
|
73
|
+
*
|
|
74
|
+
* https://docs.github.com/en/graphql/reference/input-objects#filechanges
|
|
56
75
|
*/
|
|
57
|
-
const
|
|
76
|
+
const readFileChanges = async (changedFiles) => {
|
|
58
77
|
const { added, deleted } = changedFiles.reduce((files, changedFile) => {
|
|
59
78
|
const filePath = changedFile.path;
|
|
60
79
|
if (changedFile.state === 'deleted') {
|
|
@@ -79,14 +98,18 @@ const mapChangedFilesToFileChanges = async (changedFiles) => {
|
|
|
79
98
|
deletions,
|
|
80
99
|
};
|
|
81
100
|
};
|
|
82
|
-
exports.
|
|
101
|
+
exports.readFileChanges = readFileChanges;
|
|
83
102
|
/**
|
|
84
|
-
*
|
|
103
|
+
* Uploads file changes from the local workspace to a specified GitHub branch.
|
|
104
|
+
*
|
|
105
|
+
* The file changes will appear as verified commits on GitHub.
|
|
106
|
+
*
|
|
107
|
+
* This will not update the local Git repository.
|
|
85
108
|
*/
|
|
86
|
-
const
|
|
109
|
+
const uploadFileChanges = async ({ dir, branch, messageHeadline, messageBody, fileChanges, }) => {
|
|
87
110
|
const authToken = (0, environment_1.apiTokenFromEnvironment)();
|
|
88
111
|
if (!authToken) {
|
|
89
|
-
throw new Error('Could not
|
|
112
|
+
throw new Error('Could not read a GitHub API token from the environment. Please set GITHUB_API_TOKEN or GITHUB_TOKEN.');
|
|
90
113
|
}
|
|
91
114
|
const [{ owner, repo }, headCommitId] = await Promise.all([
|
|
92
115
|
Git.getOwnerAndRepo({ dir }),
|
|
@@ -109,25 +132,17 @@ const commitAndPush = async ({ dir, branch, messageHeadline, messageBody, fileCh
|
|
|
109
132
|
mutation Mutation($input: CreateCommitOnBranchInput!) {
|
|
110
133
|
createCommitOnBranch(input: $input) {
|
|
111
134
|
commit {
|
|
112
|
-
|
|
135
|
+
oid
|
|
113
136
|
}
|
|
114
137
|
}
|
|
115
138
|
}
|
|
116
139
|
`, {
|
|
117
140
|
input,
|
|
118
141
|
headers: {
|
|
119
|
-
authorization: `
|
|
142
|
+
authorization: `Bearer ${authToken}`,
|
|
120
143
|
},
|
|
121
144
|
});
|
|
122
|
-
|
|
123
|
-
await Promise.all([...fileChanges.additions, ...fileChanges.deletions].map((file) => fs_extra_1.default.rm(file.path)));
|
|
124
|
-
await Git.fastForwardBranch({
|
|
125
|
-
ref: branch,
|
|
126
|
-
auth: { type: 'gitHubApp' },
|
|
127
|
-
dir,
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
return result.createCommitOnBranch.commit.id;
|
|
145
|
+
return result.createCommitOnBranch.commit.oid;
|
|
131
146
|
};
|
|
132
|
-
exports.
|
|
147
|
+
exports.uploadFileChanges = uploadFileChanges;
|
|
133
148
|
//# sourceMappingURL=push.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.js","sourceRoot":"","sources":["../../../src/api/github/push.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAA2C;AAM3C,wDAA0B;AAE1B,4CAA8B;AAG9B,+CAAwD;AA8BxD
|
|
1
|
+
{"version":3,"file":"push.js","sourceRoot":"","sources":["../../../src/api/github/push.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAA2C;AAM3C,wDAA0B;AAE1B,4CAA8B;AAG9B,+CAAwD;AA8BxD;;;;;;;;;;;GAWG;AACI,MAAM,oBAAoB,GAA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AAK,GAA8B;QACvC,MAAM,EAAE;YACN,uBAAuB,EAAE,GAAG,KAAK,IAAI,IAAI,EAAE;YAC3C,UAAU,EAAE,MAAM;SACnB;QACD,OAAO,EAAE;YACP,QAAQ,EAAE,eAAe;YACzB,IAAI,EAAE,WAAW;SAClB;QACD,eAAe,EAAE,YAAY;QAC7B,gBAAgB,EAAE,OAAO;QACzB,WAAW;KACZ,CAAC;IAEF,MAAM,MAAM,GAAG,MAAM,IAAA,iBAAO,EAC1B;;;;;;;;KAQC,EACD;QACE,KAAK;QACL,OAAO,EAAE;YACP,aAAa,EAAE,UAAU,SAAS,EAAE;SACrC;KACF,CACF,CAAC;IAEF,OAAO,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,GAAG,CAAC;AAChD,CAAC,CAAC;AApDW,QAAA,iBAAiB,qBAoD5B"}
|
package/lib/api/jest/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare type DefaultOptions = 'collectCoverage' | 'collectCoverageFrom' | 'colle
|
|
|
11
11
|
*
|
|
12
12
|
* This concatenates array options like `testPathIgnorePatterns`.
|
|
13
13
|
*/
|
|
14
|
-
export declare const mergePreset: <AdditionalOptions extends "filter" | "json" | "silent" | "cache" | "runner" | "projects" | "id" | "automock" | "cacheDirectory" | "clearMocks" | "coveragePathIgnorePatterns" | "dependencyExtractor" | "detectLeaks" | "detectOpenHandles" | "displayName" | "errorOnDeprecated" | "extensionsToTreatAsEsm" | "fakeTimers" | "forceCoverageMatch" | "globalSetup" | "globalTeardown" | "globals" | "haste" | "injectGlobals" | "moduleDirectories" | "moduleFileExtensions" | "moduleNameMapper" | "modulePathIgnorePatterns" | "modulePaths" | "prettierPath" | "resetMocks" | "resetModules" | "resolver" | "restoreMocks" | "rootDir" | "roots" | "
|
|
14
|
+
export declare const mergePreset: <AdditionalOptions extends "filter" | "json" | "silent" | "cache" | "runtime" | "runner" | "projects" | "id" | "automock" | "cacheDirectory" | "clearMocks" | "coveragePathIgnorePatterns" | "dependencyExtractor" | "detectLeaks" | "detectOpenHandles" | "displayName" | "errorOnDeprecated" | "extensionsToTreatAsEsm" | "fakeTimers" | "forceCoverageMatch" | "globalSetup" | "globalTeardown" | "globals" | "haste" | "injectGlobals" | "moduleDirectories" | "moduleFileExtensions" | "moduleNameMapper" | "modulePathIgnorePatterns" | "modulePaths" | "prettierPath" | "resetMocks" | "resetModules" | "resolver" | "restoreMocks" | "rootDir" | "roots" | "sandboxInjectedGlobals" | "setupFiles" | "setupFilesAfterEnv" | "skipFilter" | "skipNodeResolution" | "slowTestThreshold" | "snapshotResolver" | "snapshotSerializers" | "snapshotFormat" | "testEnvironment" | "testEnvironmentOptions" | "testMatch" | "testLocationInResults" | "testPathIgnorePatterns" | "testRegex" | "testRunner" | "transform" | "transformIgnorePatterns" | "watchPathIgnorePatterns" | "unmockedModulePathPatterns" | "bail" | "ci" | "changedFilesWithAncestor" | "changedSince" | "collectCoverage" | "collectCoverageFrom" | "collectCoverageOnlyFrom" | "coverageDirectory" | "coverageProvider" | "coverageReporters" | "coverageThreshold" | "expand" | "findRelatedTests" | "forceExit" | "reporters" | "logHeapUsage" | "lastCommit" | "listTests" | "maxConcurrency" | "maxWorkers" | "noStackTrace" | "notify" | "notifyMode" | "onlyChanged" | "onlyFailures" | "outputFile" | "passWithNoTests" | "preset" | "replname" | "runTestsByPath" | "testFailureExitCode" | "testNamePattern" | "testResultsProcessor" | "testSequencer" | "testTimeout" | "updateSnapshot" | "useStderr" | "verbose" | "watch" | "watchAll" | "watchman" | "watchPlugins">(options: Pick<Partial<{
|
|
15
15
|
automock: boolean;
|
|
16
16
|
bail: number | boolean;
|
|
17
17
|
cache: boolean;
|
|
@@ -29,7 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.analyseDependencies = void 0;
|
|
30
30
|
const path_1 = __importDefault(require("path"));
|
|
31
31
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
32
|
-
const latest_version_1 = __importDefault(require("latest-version"));
|
|
33
32
|
const copy_1 = require("../../utils/copy");
|
|
34
33
|
const logging_1 = require("../../utils/logging");
|
|
35
34
|
const version_1 = require("../../utils/version");
|
|
@@ -53,7 +52,7 @@ const pinUnspecifiedVersions = async (dependencies) => {
|
|
|
53
52
|
.map(async ([name]) => {
|
|
54
53
|
const version = await (name === 'skuba'
|
|
55
54
|
? (0, version_1.getSkubaVersion)()
|
|
56
|
-
: (0,
|
|
55
|
+
: (0, version_1.latestNpmVersion)(name));
|
|
57
56
|
return [name, version];
|
|
58
57
|
}));
|
|
59
58
|
updates.forEach(([name, version]) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyseDependencies.js","sourceRoot":"","sources":["../../../src/cli/configure/analyseDependencies.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AAExB,wDAA0B;
|
|
1
|
+
{"version":3,"file":"analyseDependencies.js","sourceRoot":"","sources":["../../../src/cli/configure/analyseDependencies.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AAExB,wDAA0B;AAI1B,2CAA6C;AAC7C,iDAA0C;AAE1C,iDAAwE;AAExE,gDAAuE;AACvE,mEAAqD;AACrD,kDAAqD;AAGrD,MAAM,OAAO,GAAG,CAAC,IAAoB,EAAW,EAAE;IAChD,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;QACxB,aAAG,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC;QAEvB,OAAO,KAAK,CAAC;KACd;IAED,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;SACjB,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;SACtD,OAAO,CAAC,CAAC,CAAC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,MAAM,oBAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAExD,YAAY,EAAE,CAAC;IAEf,MAAM,mBAAmB,GAAG,cAAI,CAAC,IAAI,CAAC,eAAe,EAAE,cAAc,CAAC,CAAC;IAEvE,IAAI,CAAC,iBAAiB,IAAI,CAAC,oBAAoB,EAAE;QAC/C,OAAO;KACR;IAED,OAAO,KAAK,IAAI,EAAE;QAChB,MAAM,kBAAkB,GAAG,IAAA,uBAAa,EAAC;YACvC,GAAG,WAAW;YACd,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,eAAe,EAAE,MAAM,CAAC,eAAe;SACxC,CAAC,CAAC;QAEH,MAAM,kBAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAAC;QAErE,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;YAC3B,OAAO;SACR;QAED,MAAM,IAAA,gBAAS,EAAC;YACd,UAAU,EAAE,eAAe;YAC3B,eAAe;YACf,OAAO;YACP,UAAU;SACX,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC,CAAC;AApFW,QAAA,mBAAmB,uBAoF9B"}
|
|
@@ -46,7 +46,7 @@ export declare const createDependencyFilter: (names: readonly string[], type: 'd
|
|
|
46
46
|
} | undefined;
|
|
47
47
|
engineStrict?: boolean | undefined;
|
|
48
48
|
os?: import("type-fest").LiteralUnion<"aix" | "darwin" | "freebsd" | "linux" | "openbsd" | "sunos" | "win32" | "!aix" | "!darwin" | "!freebsd" | "!linux" | "!openbsd" | "!sunos" | "!win32", string>[] | undefined;
|
|
49
|
-
cpu?: import("type-fest").LiteralUnion<"arm" | "arm64" | "ia32" | "mips" | "mipsel" | "ppc" | "ppc64" | "s390" | "s390x" | "
|
|
49
|
+
cpu?: import("type-fest").LiteralUnion<"arm" | "arm64" | "ia32" | "mips" | "mipsel" | "ppc" | "ppc64" | "s390" | "s390x" | "x64" | "x32" | "!arm" | "!arm64" | "!ia32" | "!mips" | "!mipsel" | "!ppc" | "!ppc64" | "!s390" | "!s390x" | "!x32" | "!x64", string>[] | undefined;
|
|
50
50
|
preferGlobal?: boolean | undefined;
|
|
51
51
|
private?: boolean | undefined;
|
|
52
52
|
publishConfig?: import("type-fest").PackageJson.PublishConfig | undefined;
|
package/lib/cli/lint/autofix.js
CHANGED
|
@@ -103,10 +103,11 @@ const autofix = async (params) => {
|
|
|
103
103
|
}
|
|
104
104
|
// Other CI Environments, use GitHub API
|
|
105
105
|
if (!currentBranch) {
|
|
106
|
-
logging_1.log.warn('Could not determine the current branch');
|
|
106
|
+
logging_1.log.warn('Could not determine the current branch.');
|
|
107
|
+
logging_1.log.warn('Please propagate BUILDKITE_BRANCH, GITHUB_HEAD_REF, GITHUB_REF_NAME, or the .git directory to your container.');
|
|
107
108
|
return;
|
|
108
109
|
}
|
|
109
|
-
const ref = await (0, wait_1.throwOnTimeout)(GitHub.
|
|
110
|
+
const ref = await (0, wait_1.throwOnTimeout)(GitHub.uploadAllFileChanges({
|
|
110
111
|
dir,
|
|
111
112
|
branch: currentBranch,
|
|
112
113
|
messageHeadline: AUTOFIX_COMMIT_MESSAGE,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autofix.js","sourceRoot":"","sources":["../../../src/cli/lint/autofix.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA+B;AAE/B,4DAAmC;AAEnC,mDAAqC;AACrC,yDAA2C;AAC3C,qDAAqD;AACrD,yDAAyD;AACzD,yCAA0C;AAC1C,iDAAwD;AACxD,2CAAkD;AAIlD,MAAM,sBAAsB,GAAG,oBAAoB,CAAC;AAEpD,MAAM,UAAU,GAAG,KAAK,EAAE,EACxB,aAAa,EACb,GAAG,GAIJ,EAAE,EAAE;IACH,IAAI,CAAC,IAAA,aAAO,GAAE,EAAE;QACd,4EAA4E;QAC5E,2EAA2E;QAC3E,2DAA2D;QAC3D,OAAO,KAAK,CAAC;K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AAC,wBAAwB,CAAC,CAAC;SAC3C;QAED,aAAG,CAAC,IAAI,CAAC,qBAAqB,GAAG,GAAG,CAAC,CAAC;KACvC;IAAC,OAAO,GAAG,EAAE;QACZ,aAAG,CAAC,IAAI,CAAC,aAAG,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,CAAC;QACjD,aAAG,CAAC,IAAI,CACN,aAAG,CAAC,IAAI,CACN,oEAAoE,CACrE,CACF,CAAC;QACF,aAAG,CAAC,MAAM,CAAC,IAAA,cAAO,EAAC,GAAG,CAAC,CAAC,CAAC;KAC1B;AACH,CAAC,CAAC;AA/EW,QAAA,OAAO,WA+ElB"}
|
package/lib/utils/version.d.ts
CHANGED
package/lib/utils/version.js
CHANGED
|
@@ -3,13 +3,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getSkubaVersionInfo = exports.getSkubaVersion = void 0;
|
|
7
|
-
const
|
|
6
|
+
exports.getSkubaVersionInfo = exports.getSkubaVersion = exports.latestNpmVersion = void 0;
|
|
7
|
+
const package_json_1 = __importDefault(require("package-json"));
|
|
8
8
|
const manifest_1 = require("./manifest");
|
|
9
9
|
const wait_1 = require("./wait");
|
|
10
|
+
const latestNpmVersion = async (packageName) => {
|
|
11
|
+
const { version } = await (0, package_json_1.default)(packageName);
|
|
12
|
+
if (typeof version !== 'string') {
|
|
13
|
+
throw new Error(`No version found for package "${packageName}"`);
|
|
14
|
+
}
|
|
15
|
+
return version;
|
|
16
|
+
};
|
|
17
|
+
exports.latestNpmVersion = latestNpmVersion;
|
|
10
18
|
const latestSkubaVersion = async () => {
|
|
11
19
|
try {
|
|
12
|
-
const result = await (0, wait_1.withTimeout)((0,
|
|
20
|
+
const result = await (0, wait_1.withTimeout)((0, exports.latestNpmVersion)('skuba'), { s: 2 });
|
|
13
21
|
return result.ok ? result.value : null;
|
|
14
22
|
}
|
|
15
23
|
catch {
|
package/lib/utils/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/utils/version.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/utils/version.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAuC;AAEvC,yCAA8C;AAC9C,iCAAqC;AAE9B,MAAM,gBAAgB,GAAG,KAAK,EACnC,WAAmB,EACF,EAAE;IACnB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAA,sBAAW,EAAC,WAAW,CAAC,CAAC;IAEnD,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,MAAM,IAAI,KAAK,CAAC,iCAAiC,WAAW,GAAG,CAAC,CAAC;KAClE;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAVW,QAAA,gBAAgB,oBAU3B;AAEF,MAAM,kBAAkB,GAAG,KAAK,IAA4B,EAAE;IAC5D,IAAI;QACF,MAAM,MAAM,GAAG,MAAM,IAAA,kBAAW,EAAC,IAAA,wBAAgB,EAAC,OAAO,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAEtE,OAAO,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;KACxC;IAAC,MAAM;QACN,OAAO,IAAI,CAAC;KACb;AACH,CAAC,CAAC;AAEK,MAAM,eAAe,GAAG,KAAK,IAAqB,EAAE;IACzD,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAA,2BAAgB,GAAE,CAAC;IAE7C,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAJW,QAAA,eAAe,mBAI1B;AAgBK,MAAM,mBAAmB,GAAG,KAAK,IAA+B,EAAE;IACvE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACxC,IAAA,uBAAe,GAAE;QACjB,kBAAkB,EAAE;KACrB,CAAC,CAAC;IAEH,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,6DAA6D;QAC7D,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK;YACL,MAAM;SACP,CAAC;KACH;IAED,OAAO;QACL,OAAO,EAAE,MAAM,KAAK,KAAK;QACzB,KAAK;QACL,MAAM;KACP,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,mBAAmB,uBAoB9B"}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"ejs": "^3.1.6",
|
|
19
19
|
"enquirer": "^2.3.6",
|
|
20
20
|
"eslint": "^8.11.0",
|
|
21
|
-
"eslint-config-skuba": "1.1.
|
|
21
|
+
"eslint-config-skuba": "1.1.1",
|
|
22
22
|
"execa": "^5.0.0",
|
|
23
23
|
"fdir": "^5.0.0",
|
|
24
24
|
"fs-extra": "^10.0.0",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"isomorphic-git": "^1.11.1",
|
|
30
30
|
"jest": "^28.1.0",
|
|
31
31
|
"jest-watch-typeahead": "^1.1.0",
|
|
32
|
-
"latest-version": "^5.1.0",
|
|
33
32
|
"lodash.mergewith": "^4.6.2",
|
|
34
33
|
"normalize-package-data": "^4.0.0",
|
|
35
34
|
"npm-run-path": "^4.0.1",
|
|
36
35
|
"npm-which": "^3.0.1",
|
|
36
|
+
"package-json": "^7.0.0",
|
|
37
37
|
"picomatch": "^2.2.2",
|
|
38
|
-
"prettier": "~2.
|
|
38
|
+
"prettier": "~2.7.0",
|
|
39
39
|
"read-pkg-up": "^7.0.1",
|
|
40
40
|
"runtypes": "^6.0.0",
|
|
41
41
|
"semantic-release": "^19.0.0",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
},
|
|
52
52
|
"description": "SEEK development toolkit for backend applications and packages",
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@changesets/cli": "2.
|
|
55
|
-
"@changesets/get-github-info": "0.5.
|
|
56
|
-
"@jest/reporters": "28.1.
|
|
54
|
+
"@changesets/cli": "2.23.0",
|
|
55
|
+
"@changesets/get-github-info": "0.5.1",
|
|
56
|
+
"@jest/reporters": "28.1.1",
|
|
57
57
|
"@types/ejs": "3.1.1",
|
|
58
58
|
"@types/express": "4.17.13",
|
|
59
59
|
"@types/fs-extra": "9.0.13",
|
|
@@ -65,13 +65,12 @@
|
|
|
65
65
|
"@types/supertest": "2.0.12",
|
|
66
66
|
"enhanced-resolve": "5.9.3",
|
|
67
67
|
"express": "4.18.1",
|
|
68
|
-
"graphql-tag": "2.12.6",
|
|
69
68
|
"jsonfile": "6.1.0",
|
|
70
69
|
"koa": "2.13.4",
|
|
71
|
-
"memfs": "3.4.
|
|
70
|
+
"memfs": "3.4.6",
|
|
72
71
|
"semver": "7.3.7",
|
|
73
72
|
"supertest": "6.2.3",
|
|
74
|
-
"type-fest": "2.13.
|
|
73
|
+
"type-fest": "2.13.1"
|
|
75
74
|
},
|
|
76
75
|
"engines": {
|
|
77
76
|
"node": ">=14.18"
|
|
@@ -127,5 +126,5 @@
|
|
|
127
126
|
"version": "4.0.0"
|
|
128
127
|
},
|
|
129
128
|
"types": "./lib/index.d.ts",
|
|
130
|
-
"version": "4.3.0
|
|
129
|
+
"version": "4.3.0"
|
|
131
130
|
}
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
Next steps:
|
|
6
6
|
|
|
7
|
-
1. [ ]
|
|
7
|
+
1. [ ] Check if your team has a Graviton-based Buildkite cluster;
|
|
8
|
+
see the [ARM64 guide] for more information.
|
|
9
|
+
2. [ ] Finish templating if this was skipped earlier:
|
|
8
10
|
|
|
9
11
|
```shell
|
|
10
12
|
yarn skuba configure
|
|
11
13
|
```
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
3. [ ] Create a new repository in the appropriate GitHub organisation.
|
|
16
|
+
4. [ ] Add the repository to BuildAgency;
|
|
15
17
|
see [Builds at SEEK] for more information.
|
|
16
|
-
4. [ ] Fill out [.me](.me) to power SEEK's system catalogue;
|
|
17
|
-
see the [Codex] documentation for more information.
|
|
18
18
|
5. [ ] Add Datadog configuration and data classification tags to [.gantry/common.yml](.gantry/common.yml);
|
|
19
19
|
see the [Gantry] documentation for more information.
|
|
20
20
|
6. [ ] Push local commits to the upstream GitHub branch.
|
|
@@ -23,6 +23,12 @@ Next steps:
|
|
|
23
23
|
request installation in [SEEK-Jobs/renovate].
|
|
24
24
|
9. [ ] Delete this checklist 😌.
|
|
25
25
|
|
|
26
|
+
[arm64]: https://seek-oss.github.io/skuba/docs/deep-dives/arm64.html
|
|
27
|
+
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
28
|
+
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
29
|
+
[renovate]: https://github.com/apps/renovate
|
|
30
|
+
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
31
|
+
|
|
26
32
|
## Design
|
|
27
33
|
|
|
28
34
|
<%-repoName %> is a Node.js HTTP server built in line with our [technology strategy].
|
|
@@ -101,12 +107,7 @@ TODO: add support links for the prod environment.
|
|
|
101
107
|
- Splunk logs
|
|
102
108
|
-->
|
|
103
109
|
|
|
104
|
-
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
105
110
|
[codedeploy]: https://docs.aws.amazon.com/codedeploy
|
|
106
|
-
[codex]: https://codex.ssod.skinfra.xyz/docs
|
|
107
111
|
[express]: https://expressjs.com
|
|
108
112
|
[gantry]: https://gantry.ssod.skinfra.xyz
|
|
109
|
-
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
110
|
-
[renovate]: https://github.com/apps/renovate
|
|
111
|
-
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
112
113
|
[technology strategy]: https://tech-strategy.ssod.skinfra.xyz
|
|
@@ -4,23 +4,29 @@
|
|
|
4
4
|
|
|
5
5
|
Next steps:
|
|
6
6
|
|
|
7
|
-
1. [ ]
|
|
7
|
+
1. [ ] Check if your team has a Graviton-based Buildkite cluster;
|
|
8
|
+
see the [ARM64 guide] for more information.
|
|
9
|
+
2. [ ] Finish templating if this was skipped earlier:
|
|
8
10
|
|
|
9
11
|
```shell
|
|
10
12
|
yarn skuba configure
|
|
11
13
|
```
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
3. [ ] Create a new repository in the appropriate GitHub organisation.
|
|
16
|
+
4. [ ] Add the repository to BuildAgency;
|
|
15
17
|
see [Builds at SEEK] for more information.
|
|
16
|
-
4. [ ] Fill out [.me](.me) to power SEEK's system catalogue;
|
|
17
|
-
see the [Codex] documentation for more information.
|
|
18
18
|
5. [ ] Push local commits to the upstream GitHub branch.
|
|
19
19
|
6. [ ] Configure [GitHub repository settings].
|
|
20
20
|
7. [ ] Keep dependencies up to date with [Renovate];
|
|
21
21
|
request installation in [SEEK-Jobs/renovate].
|
|
22
22
|
8. [ ] Delete this checklist 😌.
|
|
23
23
|
|
|
24
|
+
[arm64]: https://seek-oss.github.io/skuba/docs/deep-dives/arm64.html
|
|
25
|
+
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
26
|
+
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
27
|
+
[renovate]: https://github.com/apps/renovate
|
|
28
|
+
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
29
|
+
|
|
24
30
|
## Design
|
|
25
31
|
|
|
26
32
|
The `greeter` template is the prototypical _hello world_ project.
|
|
@@ -94,9 +100,4 @@ TODO: add support links for the prod environment.
|
|
|
94
100
|
- Splunk logs
|
|
95
101
|
-->
|
|
96
102
|
|
|
97
|
-
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
98
|
-
[codex]: https://codex.ssod.skinfra.xyz/docs
|
|
99
|
-
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
100
|
-
[renovate]: https://github.com/apps/renovate
|
|
101
|
-
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
102
103
|
[technology strategy]: https://tech-strategy.ssod.skinfra.xyz
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
Next steps:
|
|
6
6
|
|
|
7
|
-
1. [ ]
|
|
7
|
+
1. [ ] Check if your team has a Graviton-based Buildkite cluster;
|
|
8
|
+
see the [ARM64 guide] for more information.
|
|
9
|
+
2. [ ] Finish templating if this was skipped earlier:
|
|
8
10
|
|
|
9
11
|
```shell
|
|
10
12
|
yarn skuba configure
|
|
11
13
|
```
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
3. [ ] Create a new repository in the appropriate GitHub organisation.
|
|
16
|
+
4. [ ] Add the repository to BuildAgency;
|
|
15
17
|
see [Builds at SEEK] for more information.
|
|
16
|
-
4. [ ] Fill out [.me](.me) to power SEEK's system catalogue;
|
|
17
|
-
see the [Codex] documentation for more information.
|
|
18
18
|
5. [ ] Add Datadog configuration and data classification tags to [.gantry/common.yml](.gantry/common.yml);
|
|
19
19
|
see the [Gantry] documentation for more information.
|
|
20
20
|
6. [ ] Push local commits to the upstream GitHub branch.
|
|
@@ -23,6 +23,12 @@ Next steps:
|
|
|
23
23
|
request installation in [SEEK-Jobs/renovate].
|
|
24
24
|
9. [ ] Delete this checklist 😌.
|
|
25
25
|
|
|
26
|
+
[arm64]: https://seek-oss.github.io/skuba/docs/deep-dives/arm64.html
|
|
27
|
+
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
28
|
+
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
29
|
+
[renovate]: https://github.com/apps/renovate
|
|
30
|
+
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
31
|
+
|
|
26
32
|
## Design
|
|
27
33
|
|
|
28
34
|
<%-repoName %> is a Node.js HTTP server built in line with our [technology strategy].
|
|
@@ -106,12 +112,7 @@ TODO: add support links for the prod environment.
|
|
|
106
112
|
- Splunk logs
|
|
107
113
|
-->
|
|
108
114
|
|
|
109
|
-
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
110
115
|
[codedeploy]: https://docs.aws.amazon.com/codedeploy
|
|
111
|
-
[codex]: https://codex.ssod.skinfra.xyz/docs
|
|
112
116
|
[gantry]: https://gantry.ssod.skinfra.xyz
|
|
113
|
-
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
114
117
|
[koa]: https://koajs.com
|
|
115
|
-
[renovate]: https://github.com/apps/renovate
|
|
116
|
-
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
117
118
|
[technology strategy]: https://tech-strategy.ssod.skinfra.xyz
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"@koa/router": "^10.1.1",
|
|
4
4
|
"@opentelemetry/api": "^1.1.0",
|
|
5
5
|
"@opentelemetry/exporter-collector-grpc": "^0.25.0",
|
|
6
|
-
"@opentelemetry/instrumentation-aws-sdk": "^0.
|
|
7
|
-
"@opentelemetry/instrumentation-http": "^0.
|
|
8
|
-
"@opentelemetry/sdk-node": "^0.
|
|
6
|
+
"@opentelemetry/instrumentation-aws-sdk": "^0.8.0",
|
|
7
|
+
"@opentelemetry/instrumentation-http": "^0.29.2",
|
|
8
|
+
"@opentelemetry/sdk-node": "^0.29.2",
|
|
9
9
|
"@seek/logger": "^5.0.1",
|
|
10
10
|
"aws-sdk": "^2.1039.0",
|
|
11
11
|
"hot-shots": "^9.0.0",
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
Next steps:
|
|
6
6
|
|
|
7
|
-
1. [ ]
|
|
7
|
+
1. [ ] Check if your team has a Graviton-based Buildkite cluster;
|
|
8
|
+
see the [ARM64 guide] for more information.
|
|
9
|
+
2. [ ] Finish templating if this was skipped earlier:
|
|
8
10
|
|
|
9
11
|
```shell
|
|
10
12
|
yarn skuba configure
|
|
11
13
|
```
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
3. [ ] Create a new repository in the appropriate GitHub organisation.
|
|
16
|
+
4. [ ] Add the repository to BuildAgency;
|
|
15
17
|
see [Builds at SEEK] for more information.
|
|
16
|
-
4. [ ] Fill out [.me](.me) to power SEEK's system catalogue;
|
|
17
|
-
see the [Codex] documentation for more information.
|
|
18
18
|
5. [ ] Add deployment bucket configuration and data classification tags to [serverless.yml](serverless.yml).
|
|
19
19
|
6. [ ] Push local commits to the upstream GitHub branch.
|
|
20
20
|
7. [ ] Configure [GitHub repository settings].
|
|
@@ -22,6 +22,12 @@ Next steps:
|
|
|
22
22
|
request installation in [SEEK-Jobs/renovate].
|
|
23
23
|
9. [ ] Delete this checklist 😌.
|
|
24
24
|
|
|
25
|
+
[arm64]: https://seek-oss.github.io/skuba/docs/deep-dives/arm64.html
|
|
26
|
+
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
27
|
+
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
28
|
+
[renovate]: https://github.com/apps/renovate
|
|
29
|
+
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
30
|
+
|
|
25
31
|
## Design
|
|
26
32
|
|
|
27
33
|
<%-repoName %> is a Node.js [Lambda] application built in line with our [technology strategy].
|
|
@@ -127,12 +133,7 @@ TODO: add support links for the prod environment.
|
|
|
127
133
|
- Splunk logs
|
|
128
134
|
-->
|
|
129
135
|
|
|
130
|
-
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
131
136
|
[codedeploy]: https://docs.aws.amazon.com/codedeploy
|
|
132
|
-
[codex]: https://codex.ssod.skinfra.xyz/docs
|
|
133
|
-
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
134
137
|
[lambda]: https://docs.aws.amazon.com/lambda
|
|
135
|
-
[renovate]: https://github.com/apps/renovate
|
|
136
|
-
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
137
138
|
[serverless]: https://www.serverless.com/
|
|
138
139
|
[technology strategy]: https://tech-strategy.ssod.skinfra.xyz
|
|
@@ -146,6 +146,9 @@ Object {
|
|
|
146
146
|
"workerServiceRole2130CC7F",
|
|
147
147
|
],
|
|
148
148
|
"Properties": Object {
|
|
149
|
+
"Architectures": Array [
|
|
150
|
+
"arm64",
|
|
151
|
+
],
|
|
149
152
|
"Code": Object {
|
|
150
153
|
"S3Bucket": Object {
|
|
151
154
|
"Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}",
|
|
@@ -502,6 +505,9 @@ Object {
|
|
|
502
505
|
"workerServiceRole2130CC7F",
|
|
503
506
|
],
|
|
504
507
|
"Properties": Object {
|
|
508
|
+
"Architectures": Array [
|
|
509
|
+
"arm64",
|
|
510
|
+
],
|
|
505
511
|
"Code": Object {
|
|
506
512
|
"S3Bucket": Object {
|
|
507
513
|
"Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}",
|
|
@@ -51,6 +51,7 @@ export class AppStack extends Stack {
|
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
const worker = new aws_lambda.Function(this, 'worker', {
|
|
54
|
+
architecture: aws_lambda.Architecture.ARM_64,
|
|
54
55
|
code: new aws_lambda.AssetCode('./lib'),
|
|
55
56
|
runtime: aws_lambda.Runtime.NODEJS_16_X,
|
|
56
57
|
handler: 'app.handler',
|
|
@@ -10,13 +10,11 @@ Next steps:
|
|
|
10
10
|
|
|
11
11
|
1. [ ] Read [SEEK's Open Source RFC].
|
|
12
12
|
2. [ ] Create a new repository in the [seek-oss] GitHub organisation.
|
|
13
|
-
3. [ ]
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
5. [ ] Configure [GitHub repository settings].
|
|
17
|
-
6. [ ] Keep dependencies up to date with [Renovate];
|
|
13
|
+
3. [ ] Push local commits to the upstream GitHub branch.
|
|
14
|
+
4. [ ] Configure [GitHub repository settings].
|
|
15
|
+
5. [ ] Keep dependencies up to date with [Renovate];
|
|
18
16
|
request installation in [#open-source].
|
|
19
|
-
|
|
17
|
+
6. [ ] Delete this checklist 😌.
|
|
20
18
|
|
|
21
19
|
## API
|
|
22
20
|
|
|
@@ -118,7 +116,6 @@ Here are some branches that **semantic-release** supports by default:
|
|
|
118
116
|
For more information, see the **semantic-release** docs on [triggering a release].
|
|
119
117
|
|
|
120
118
|
[#open-source]: https://slack.com/app_redirect?channel=C39P1H2SU
|
|
121
|
-
[codex]: https://codex.ssod.skinfra.xyz/docs
|
|
122
119
|
[distribution tags]: https://docs.npmjs.com/adding-dist-tags-to-packages
|
|
123
120
|
[oss npm package guidance]: https://github.com/SEEK-Jobs/seek-oss-ci/blob/master/NPM_PACKAGES.md#access-to-publish-to-npm
|
|
124
121
|
[release workflow]: .github/workflows/release.yml
|
|
@@ -10,13 +10,11 @@ Next steps:
|
|
|
10
10
|
|
|
11
11
|
1. [ ] Create a new repository in the [SEEK-Jobs] GitHub organisation.
|
|
12
12
|
2. [ ] Follow [Gutenberg] instructions for [installing on your repository].
|
|
13
|
-
3. [ ]
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
5. [ ] Configure [GitHub repository settings].
|
|
17
|
-
6. [ ] Keep dependencies up to date with [Renovate];
|
|
13
|
+
3. [ ] Push local commits to the upstream GitHub branch.
|
|
14
|
+
4. [ ] Configure [GitHub repository settings].
|
|
15
|
+
5. [ ] Keep dependencies up to date with [Renovate];
|
|
18
16
|
request installation in [SEEK-Jobs/renovate].
|
|
19
|
-
|
|
17
|
+
6. [ ] Delete this checklist 😌.
|
|
20
18
|
|
|
21
19
|
## API
|
|
22
20
|
|
|
@@ -103,7 +101,6 @@ Here are some branches that **semantic-release** supports by default:
|
|
|
103
101
|
|
|
104
102
|
For more information, see the **semantic-release** docs on [triggering a release].
|
|
105
103
|
|
|
106
|
-
[codex]: https://codex.ssod.skinfra.xyz/docs
|
|
107
104
|
[distribution tags]: https://docs.npmjs.com/adding-dist-tags-to-packages
|
|
108
105
|
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
109
106
|
[gutenberg]: https://github.com/SEEK-Jobs/gutenberg
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
# https://codex.ssod.skinfra.xyz/docs
|
|
3
|
-
|
|
4
|
-
components:
|
|
5
|
-
'<%- repoName %>':
|
|
6
|
-
# TODO: supply system catalog information
|
|
7
|
-
# dependencies:
|
|
8
|
-
# - type: api
|
|
9
|
-
# key: SEEK-Jobs/???
|
|
10
|
-
# - type: datastore
|
|
11
|
-
# arn: arn:aws:dynamodb:us-east-1:123456789012:table/???
|
|
12
|
-
# - type: datastore
|
|
13
|
-
# key: infrastructure/???
|
|
14
|
-
deploy_target: API
|
|
15
|
-
# is_production_system: true
|
|
16
|
-
primary_technologies:
|
|
17
|
-
- Buildkite
|
|
18
|
-
- Express
|
|
19
|
-
- Gantry
|
|
20
|
-
- skuba
|
|
21
|
-
- TypeScript
|
|
22
|
-
# scope: APAC
|
package/template/greeter/.me
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
# https://codex.ssod.skinfra.xyz/docs
|
|
3
|
-
|
|
4
|
-
components:
|
|
5
|
-
'<%- repoName %>':
|
|
6
|
-
# TODO: supply system catalog information
|
|
7
|
-
# dependencies:
|
|
8
|
-
# - type: api
|
|
9
|
-
# key: SEEK-Jobs/???
|
|
10
|
-
# - type: datastore
|
|
11
|
-
# arn: arn:aws:dynamodb:us-east-1:123456789012:table/???
|
|
12
|
-
# - type: datastore
|
|
13
|
-
# key: infrastructure/???
|
|
14
|
-
# deploy_target: Documentation
|
|
15
|
-
# is_production_system: false
|
|
16
|
-
primary_technologies:
|
|
17
|
-
- Buildkite
|
|
18
|
-
- skuba
|
|
19
|
-
- TypeScript
|
|
20
|
-
# scope: APAC
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
# https://codex.ssod.skinfra.xyz/docs
|
|
3
|
-
|
|
4
|
-
components:
|
|
5
|
-
'<%- repoName %>':
|
|
6
|
-
# TODO: supply system catalog information
|
|
7
|
-
# dependencies:
|
|
8
|
-
# - type: api
|
|
9
|
-
# key: SEEK-Jobs/???
|
|
10
|
-
# - type: datastore
|
|
11
|
-
# arn: arn:aws:dynamodb:us-east-1:123456789012:table/???
|
|
12
|
-
# - type: datastore
|
|
13
|
-
# key: infrastructure/???
|
|
14
|
-
deploy_target: API
|
|
15
|
-
# is_production_system: true
|
|
16
|
-
primary_technologies:
|
|
17
|
-
- Buildkite
|
|
18
|
-
- Gantry
|
|
19
|
-
- Koa
|
|
20
|
-
- skuba
|
|
21
|
-
- TypeScript
|
|
22
|
-
# scope: APAC
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
# https://codex.ssod.skinfra.xyz/docs
|
|
3
|
-
|
|
4
|
-
components:
|
|
5
|
-
'<%- repoName %>':
|
|
6
|
-
# TODO: supply system catalog information
|
|
7
|
-
# dependencies:
|
|
8
|
-
# - type: api
|
|
9
|
-
# key: SEEK-Jobs/???
|
|
10
|
-
# - type: datastore
|
|
11
|
-
# arn: arn:aws:dynamodb:us-east-1:123456789012:table/???
|
|
12
|
-
# - type: datastore
|
|
13
|
-
# key: infrastructure/???
|
|
14
|
-
deploy_target: Worker
|
|
15
|
-
# is_production_system: true
|
|
16
|
-
primary_technologies:
|
|
17
|
-
- AWS Lambda
|
|
18
|
-
- Buildkite
|
|
19
|
-
- Serverless
|
|
20
|
-
- skuba
|
|
21
|
-
- TypeScript
|
|
22
|
-
# scope: APAC
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
# https://codex.ssod.skinfra.xyz/docs
|
|
3
|
-
|
|
4
|
-
components:
|
|
5
|
-
'<%- repoName %>':
|
|
6
|
-
# TODO: supply system catalog information
|
|
7
|
-
# dependencies:
|
|
8
|
-
# - type: api
|
|
9
|
-
# key: SEEK-Jobs/???
|
|
10
|
-
# - type: datastore
|
|
11
|
-
# arn: arn:aws:dynamodb:us-east-1:123456789012:table/???
|
|
12
|
-
# - type: datastore
|
|
13
|
-
# key: infrastructure/???
|
|
14
|
-
deploy_target: Worker
|
|
15
|
-
# is_production_system: true
|
|
16
|
-
primary_technologies:
|
|
17
|
-
- AWS CDK
|
|
18
|
-
- AWS Lambda
|
|
19
|
-
- Buildkite
|
|
20
|
-
- skuba
|
|
21
|
-
- TypeScript
|
|
22
|
-
# scope: APAC
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
# https://codex.ssod.skinfra.xyz/docs
|
|
3
|
-
|
|
4
|
-
components:
|
|
5
|
-
'<%- repoName %>':
|
|
6
|
-
# TODO: supply system catalog information
|
|
7
|
-
# dependencies:
|
|
8
|
-
# - type: api
|
|
9
|
-
# key: SEEK-Jobs/???
|
|
10
|
-
# - type: datastore
|
|
11
|
-
# arn: arn:aws:dynamodb:us-east-1:123456789012:table/???
|
|
12
|
-
# - type: datastore
|
|
13
|
-
# key: infrastructure/???
|
|
14
|
-
deploy_target: Library
|
|
15
|
-
# is_production_system: false
|
|
16
|
-
primary_technologies:
|
|
17
|
-
- GitHub Actions
|
|
18
|
-
- npm
|
|
19
|
-
- skuba
|
|
20
|
-
- TypeScript
|
|
21
|
-
# scope: APAC
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
# https://codex.ssod.skinfra.xyz/docs
|
|
3
|
-
|
|
4
|
-
components:
|
|
5
|
-
'<%- repoName %>':
|
|
6
|
-
# TODO: supply system catalog information
|
|
7
|
-
# dependencies:
|
|
8
|
-
# - type: api
|
|
9
|
-
# key: SEEK-Jobs/???
|
|
10
|
-
# - type: datastore
|
|
11
|
-
# arn: arn:aws:dynamodb:us-east-1:123456789012:table/???
|
|
12
|
-
# - type: datastore
|
|
13
|
-
# key: infrastructure/???
|
|
14
|
-
deploy_target: Library
|
|
15
|
-
# is_production_system: false
|
|
16
|
-
primary_technologies:
|
|
17
|
-
- Buildkite
|
|
18
|
-
- npm
|
|
19
|
-
- skuba
|
|
20
|
-
- TypeScript
|
|
21
|
-
# scope: APAC
|