Skip to content

Commit

Permalink
Shipit: configure Abacus export
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnzlml authored and kodiakhq[bot] committed Jan 23, 2022
1 parent 86f2a02 commit f0a136c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/monorepo-shipit/config/__tests__/abacus.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// @flow strict-local

import path from 'path';

import testExportedPaths from './testExportedPaths';

testExportedPaths(path.join(__dirname, '..', 'abacus.js'), [
['src/abacus/Cargo.lock', 'Cargo.lock'],
['src/abacus/server/Cargo.toml', 'server/Cargo.toml'],
['src/abacus/kubernetes/abacus.yml', 'kubernetes/abacus.yml'],

// invalid cases:
['src/packages/monorepo/outsideScope.js', undefined], // correctly deleted
['package.json', undefined], // correctly deleted
]);
14 changes: 14 additions & 0 deletions src/monorepo-shipit/config/abacus.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// @flow strict

import type { ConfigType } from '../ConfigType.flow';

module.exports = ({
getStaticConfig() {
return {
repository: 'git@github.com:adeira/abacus.git',
};
},
getPathMappings() {
return new Map([['src/abacus/', '']]);
},
}: ConfigType);

0 comments on commit f0a136c

Please sign in to comment.