Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/kit/src/cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { existsSync } from 'fs';
import sade from 'sade';
import colors from 'kleur';
import create_manifest_data from './core/create_manifest_data/index.js';
import { load_config } from './core/load_config/index.js';

async function get_config() {
Expand Down Expand Up @@ -152,4 +153,14 @@ prog
console.log('"svelte-kit build" will now run the adapter');
});

prog
.command('routes')
.describe('View routes and endpoints for your app')
.action(async () => {
const config = await get_config();

const { routes } = create_manifest_data({ config });
console.log(routes);
});

prog.parse(process.argv, { unknown: (arg) => `Unknown option: ${arg}` });