skuba 4.3.0-beta.0 → 4.4.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/README.md +1 -1
- package/jest/moduleNameMapper.test.ts +7 -8
- 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 +23 -24
- package/lib/api/jest/index.js.map +1 -1
- package/lib/cli/configure/analyseDependencies.js +1 -2
- package/lib/cli/configure/analyseDependencies.js.map +1 -1
- package/lib/cli/configure/ensureTemplateCompletion.js +2 -2
- package/lib/cli/configure/ensureTemplateCompletion.js.map +1 -1
- package/lib/cli/configure/modules/tsconfig.js +3 -2
- package/lib/cli/configure/modules/tsconfig.js.map +1 -1
- package/lib/cli/configure/processing/package.d.ts +2 -2
- package/lib/cli/configure/processing/package.js +8 -10
- package/lib/cli/configure/processing/package.js.map +1 -1
- package/lib/cli/lint/autofix.js +3 -2
- package/lib/cli/lint/autofix.js.map +1 -1
- package/lib/cli/test/reporters/github/annotations.js +4 -1
- package/lib/cli/test/reporters/github/annotations.js.map +1 -1
- package/lib/utils/args.d.ts +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 +51 -24
- package/template/base/_.eslintignore +5 -2
- package/template/base/_.gitignore +3 -2
- package/template/base/_.prettierignore +5 -2
- package/template/express-rest-api/.buildkite/pipeline.yml +4 -4
- package/template/express-rest-api/.gantry/common.yml +1 -1
- 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 -14
- package/template/express-rest-api/gantry.apply.yml +2 -0
- package/template/express-rest-api/gantry.build.yml +2 -0
- package/template/express-rest-api/package.json +1 -1
- package/template/greeter/.buildkite/pipeline.yml +1 -1
- package/template/greeter/Dockerfile +1 -1
- package/template/greeter/README.md +12 -15
- package/template/koa-rest-api/.buildkite/pipeline.yml +4 -4
- package/template/koa-rest-api/.gantry/common.yml +1 -1
- 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 -14
- 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 +5 -5
- package/template/koa-rest-api/src/api/jobs/postJob.test.ts +7 -3
- package/template/koa-rest-api/src/framework/server.test.ts +18 -18
- package/template/koa-rest-api/src/framework/validation.test.ts +15 -6
- package/template/lambda-sqs-worker/.buildkite/pipeline.yml +2 -3
- package/template/lambda-sqs-worker/Dockerfile +1 -1
- package/template/lambda-sqs-worker/README.md +10 -13
- package/template/lambda-sqs-worker/package.json +1 -1
- package/template/lambda-sqs-worker/serverless.yml +0 -3
- package/template/lambda-sqs-worker/src/app.test.ts +7 -7
- package/template/lambda-sqs-worker/src/framework/handler.test.ts +3 -3
- package/template/lambda-sqs-worker/src/framework/validation.test.ts +17 -10
- package/template/lambda-sqs-worker/src/services/jobScorer.test.ts +2 -2
- package/template/lambda-sqs-worker/src/services/pipelineEventSender.test.ts +1 -1
- package/template/lambda-sqs-worker-cdk/.buildkite/pipeline.yml +2 -2
- package/template/lambda-sqs-worker-cdk/Dockerfile +1 -1
- package/template/lambda-sqs-worker-cdk/infra/__snapshots__/appStack.test.ts.snap +224 -218
- package/template/lambda-sqs-worker-cdk/infra/appStack.ts +1 -0
- package/template/oss-npm-package/README.md +9 -11
- package/template/oss-npm-package/_package.json +1 -1
- package/template/private-npm-package/README.md +6 -12
- package/template/private-npm-package/_package.json +1 -1
- 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
|
@@ -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,16 @@ 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 😌.
|
|
18
|
+
|
|
19
|
+
[#open-source]: https://slack.com/app_redirect?channel=C39P1H2SU
|
|
20
|
+
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
21
|
+
[renovate]: https://github.com/apps/renovate
|
|
22
|
+
[seek's open source rfc]: https://rfc.skinfra.xyz/RFC016-Open-Source.html
|
|
20
23
|
|
|
21
24
|
## API
|
|
22
25
|
|
|
@@ -117,14 +120,9 @@ Here are some branches that **semantic-release** supports by default:
|
|
|
117
120
|
|
|
118
121
|
For more information, see the **semantic-release** docs on [triggering a release].
|
|
119
122
|
|
|
120
|
-
[#open-source]: https://slack.com/app_redirect?channel=C39P1H2SU
|
|
121
|
-
[codex]: https://codex.ssod.skinfra.xyz/docs
|
|
122
123
|
[distribution tags]: https://docs.npmjs.com/adding-dist-tags-to-packages
|
|
123
124
|
[oss npm package guidance]: https://github.com/SEEK-Jobs/seek-oss-ci/blob/master/NPM_PACKAGES.md#access-to-publish-to-npm
|
|
124
125
|
[release workflow]: .github/workflows/release.yml
|
|
125
126
|
[seek-oss]: https://github.com/seek-oss
|
|
126
|
-
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
127
|
-
[seek's open source rfc]: https://rfc.skinfra.xyz/RFC016-Open-Source.html
|
|
128
|
-
[renovate]: https://github.com/apps/renovate
|
|
129
127
|
[semantic-release]: https://github.com/semantic-release/semantic-release
|
|
130
128
|
[triggering a release]: https://github.com/semantic-release/semantic-release/#triggering-a-release
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"name": "<%- moduleName %>",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "git+
|
|
21
|
+
"url": "git+ssh://git@github.com/<%- orgName %>/<%- repoName %>.git"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "skuba build-package",
|
|
@@ -10,13 +10,12 @@ 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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
7. [ ] Delete this checklist 😌.
|
|
13
|
+
3. [ ] Push local commits to the upstream GitHub branch.
|
|
14
|
+
4. [ ] Configure [GitHub repository settings].
|
|
15
|
+
5. [ ] Delete this checklist 😌.
|
|
16
|
+
|
|
17
|
+
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
18
|
+
[installing on your repository]: https://github.com/SEEK-Jobs/gutenberg#installing-on-your-repository
|
|
20
19
|
|
|
21
20
|
## API
|
|
22
21
|
|
|
@@ -103,13 +102,8 @@ Here are some branches that **semantic-release** supports by default:
|
|
|
103
102
|
|
|
104
103
|
For more information, see the **semantic-release** docs on [triggering a release].
|
|
105
104
|
|
|
106
|
-
[codex]: https://codex.ssod.skinfra.xyz/docs
|
|
107
105
|
[distribution tags]: https://docs.npmjs.com/adding-dist-tags-to-packages
|
|
108
|
-
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
109
106
|
[gutenberg]: https://github.com/SEEK-Jobs/gutenberg
|
|
110
|
-
[installing on your repository]: https://github.com/SEEK-Jobs/gutenberg#installing-on-your-repository
|
|
111
|
-
[renovate]: https://github.com/apps/renovate
|
|
112
107
|
[seek-jobs]: https://github.com/orgs/seek-jobs/sso
|
|
113
|
-
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
114
108
|
[semantic-release]: https://github.com/semantic-release/semantic-release
|
|
115
109
|
[triggering a release]: https://github.com/semantic-release/semantic-release/#triggering-a-release
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"name": "<%- moduleName %>",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "git+
|
|
21
|
+
"url": "git+ssh://git@github.com/<%- orgName %>/<%- repoName %>.git"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "skuba build-package",
|
|
@@ -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
|