forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcxjs.ts
More file actions
31 lines (28 loc) · 760 Bytes
/
cxjs.ts
File metadata and controls
31 lines (28 loc) · 760 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
30
31
import Template from './template';
import { decorateSelector } from '../utils/decorate-selector';
import configurations from './configuration';
class CxJSTemplate extends Template {
getEntries() {
return ['/app/index.js', '/src/index.js', '/index.html'];
}
getHTMLEntries() {
return ['/app/index.html', '/src/index.html', '/index.html'];
}
}
export default new CxJSTemplate(
'cxjs',
'CxJS',
'https://cxjs.io/',
'github/codaxy/cxjs-codesandbox-template',
decorateSelector(() => '#11689f'),
{
showOnHomePage: true,
showCube: false,
extraConfigurations: {
'/.babelrc': configurations.babelrc,
'/tsconfig.json': configurations.tsconfig,
},
externalResourcesEnabled: false,
distDir: 'dist',
}
);