forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
29 lines (25 loc) · 662 Bytes
/
index.ts
File metadata and controls
29 lines (25 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { ConfigurationFile } from '../types';
const config: ConfigurationFile = {
title: 'template.json',
type: 'customTemplate',
description: 'Configuration for the custom template',
moreInfoUrl: 'https://codesandbox.io',
getDefaultCode: () =>
JSON.stringify(
{
templateName: 'custom',
templateColor: '#aaa',
sandpack: {
defaultExtensions: ['js', 'jsx', 'ts', 'tsx', 'json'],
aliases: {},
transpilers: {
'\\.jsx?$': ['codesandbox:babel'],
'\\.json$': ['codesandbox:json'],
},
},
},
null,
2
),
};
export default config;