@vamship/build-utils 2.4.0 → 2.4.3

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vamship/build-utils",
3
- "version": "2.4.0",
3
+ "version": "2.4.3",
4
4
  "description": "Utility library for build tooling",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/project.js CHANGED
@@ -108,6 +108,7 @@ export class Project {
108
108
  test: {
109
109
  unit: null,
110
110
  api: null,
111
+ int: null,
111
112
  },
112
113
  infra: null,
113
114
  scripts: null,
@@ -116,6 +117,7 @@ export class Project {
116
117
  test: {
117
118
  unit: null,
118
119
  api: null,
120
+ int: null,
119
121
  },
120
122
  infra: null,
121
123
  node_modules: null,
@@ -61,7 +61,7 @@ export class PublishContainerTaskBuilder extends TaskBuilder {
61
61
  // Per docker docs `docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]`
62
62
  _execa(
63
63
  'docker',
64
- ['tag', definition.name, `${definition.name}:${tag}`],
64
+ ['tag', definition.repo, `${definition.repo}:${tag}`],
65
65
  {
66
66
  stdio: 'inherit',
67
67
  },
@@ -76,8 +76,8 @@ export class PublishContainerTaskBuilder extends TaskBuilder {
76
76
  });
77
77
  const pushTaskList = semverComponents.map((tag) => {
78
78
  const pushTask = () =>
79
- // Per docker docs `docker push [OPTIONS] NAME[:TAG]`
80
- _execa('docker', ['push', `${definition.name}:${tag}`], {
79
+ // Per docker docs `docker push [OPTIONS] REPO[:TAG]`
80
+ _execa('docker', ['push', `${definition.repo}:${tag}`], {
81
81
  stdio: 'inherit',
82
82
  }).then(undefined, (err) => {
83
83
  /*
@@ -16,7 +16,7 @@ export class TestTaskBuilder extends TaskBuilder {
16
16
  * "unit" or "api".
17
17
  */
18
18
  constructor(testType) {
19
- if (['unit', 'api'].indexOf(testType) < 0) {
19
+ if (['unit', 'api', 'int'].indexOf(testType) < 0) {
20
20
  throw new Error('Invalid testType (arg #1)');
21
21
  }
22
22
  super(`test-${testType}`, `Execute ${testType} tests`);
@@ -56,6 +56,7 @@ export class CliTaskFactory extends TaskFactory {
56
56
  new LintTaskBuilder(),
57
57
  new LintFixTaskBuilder(),
58
58
  new TestTaskBuilder('unit'),
59
+ new TestTaskBuilder('int'),
59
60
 
60
61
  new DocsTaskBuilder(this._project),
61
62
  new BuildTaskBuilder(this._project),