Skip to content

Commit a60910a

Browse files
author
Umutcan ÖNER
committed
chore: add release automation configuration files
1 parent 4a6bda5 commit a60910a

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

.autorc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"plugins": ["npm", "first-time-contributor", "released"],
3+
"owner": "aicd",
4+
"repo": "aicd",
5+
"name": "AICD Team",
6+
"email": "admin@aicd.com"
7+
}

scripts/index.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/usr/bin/env node
2+
3+
/**
4+
* AICD CLI - Command Line Interface for AI-powered continuous deployment
5+
*/
6+
7+
console.log('AICD CLI v0.1.0');
8+
console.log('AI-powered continuous deployment platform');
9+
10+
// Simple CLI implementation for testing the release workflow
11+
const args = process.argv.slice(2);
12+
13+
if (args.length === 0) {
14+
console.log('\nUsage: aicd [command]');
15+
console.log('\nCommands:');
16+
console.log(' version Show version information');
17+
console.log(' help Show this help message');
18+
process.exit(0);
19+
}
20+
21+
const command = args[0];
22+
23+
switch (command) {
24+
case 'version':
25+
console.log('\nVersion: 0.1.0');
26+
break;
27+
case 'help':
28+
console.log('\nUsage: aicd [command]');
29+
console.log('\nCommands:');
30+
console.log(' version Show version information');
31+
console.log(' help Show this help message');
32+
break;
33+
default:
34+
console.error(`Unknown command: ${command}`);
35+
console.log('Run "aicd help" for usage information');
36+
process.exit(1);
37+
}

tsup.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineConfig } from 'tsup';
2+
3+
export default defineConfig({
4+
entry: ['scripts/index.ts'],
5+
outDir: 'dist',
6+
sourcemap: false,
7+
minify: true,
8+
dts: true,
9+
format: ['cjs', 'esm'],
10+
});

0 commit comments

Comments
 (0)