@dotcom-tool-kit/circleci-npm 1.0.2-beta.10

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/.toolkitrc.yml ADDED
@@ -0,0 +1,3 @@
1
+ plugins:
2
+ - '@dotcom-tool-kit/circleci'
3
+ - '@dotcom-tool-kit/npm'
package/lib/index.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ import CircleCiConfigHook from '@dotcom-tool-kit/circleci/lib/circleci-config';
2
+ import NpmPublish from '@dotcom-tool-kit/npm/src/tasks/npm-publish';
3
+ export declare const tasks: (typeof NpmPublish)[];
4
+ declare class PublishHook extends CircleCiConfigHook {
5
+ job: string;
6
+ jobOptions: {
7
+ requires: string[];
8
+ filters: {
9
+ branches: {
10
+ ignore: string;
11
+ };
12
+ tags: {
13
+ only: RegExp;
14
+ };
15
+ };
16
+ };
17
+ }
18
+ export declare const hooks: {
19
+ 'publish:ci': typeof PublishHook;
20
+ };
21
+ export {};
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,+CAA+C,CAAA;AAC9E,OAAO,UAA2B,MAAM,4CAA4C,CAAA;AAEpF,eAAO,MAAM,KAAK,uBAEjB,CAAA;AAED,cAAM,WAAY,SAAQ,kBAAkB;IAC1C,GAAG,SAAqB;IACxB,UAAU;;;;;;;;;;MAMT;CACF;AAED,eAAO,MAAM,KAAK;;CAEjB,CAAA"}
package/lib/index.js ADDED
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hooks = exports.tasks = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const circleci_config_1 = (0, tslib_1.__importDefault)(require("@dotcom-tool-kit/circleci/lib/circleci-config"));
6
+ const npm_publish_1 = (0, tslib_1.__importStar)(require("@dotcom-tool-kit/npm/src/tasks/npm-publish"));
7
+ exports.tasks = [
8
+ npm_publish_1.default
9
+ ];
10
+ class PublishHook extends circleci_config_1.default {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.job = 'tool-kit/publish';
14
+ this.jobOptions = {
15
+ requires: ['tool-kit/test'],
16
+ filters: {
17
+ branches: { ignore: '/.*/' },
18
+ tags: { only: npm_publish_1.semVerRegex }
19
+ }
20
+ };
21
+ }
22
+ }
23
+ exports.hooks = {
24
+ 'publish:ci': PublishHook
25
+ };
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@dotcom-tool-kit/circleci-npm",
3
+ "version": "1.0.2-beta.10",
4
+ "description": "",
5
+ "main": "lib",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "FT.com Platforms Team <platforms-team.customer-products@ft.com>",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "@dotcom-tool-kit/types": "^1.0.2-beta.10",
14
+ "@dotcom-tool-kit/circleci": "^1.0.2-beta.10",
15
+ "@dotcom-tool-kit/npm": "^1.0.2-beta.10"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/financial-times/dotcom-tool-kit.git",
20
+ "directory": "plugins/circleci-npm"
21
+ },
22
+ "bugs": "https://github.com/financial-times/dotcom-tool-kit/issues",
23
+ "homepage": "https://github.com/financial-times/dotcom-tool-kit/tree/main/plugins/circleci-npm",
24
+ "files": [
25
+ "/lib",
26
+ ".toolkitrc.yml"
27
+ ]
28
+ }