esnextbin
Version:
Prototype JavaScript programs in the browser with ESNext (a.k.a ES2015) syntax and features, using modules from NPM.
40 lines (34 loc) • 685 B
JavaScript
// styling
export const HEADER_HEIGHT = 38;
// transpiling
export const BABEL_OPTIONS = {
presets: [
'es2015',
'react',
'stage-0'
],
plugins: [
'transform-object-assign',
'transform-runtime'
]
};
// editors
export const CODE =
`// write ES2015 code and import modules from npm
// and then press "Execute" to run your program`;
export const HTML =
`
<html>
<head>
<meta charset="utf-8">
<title>ESNextbin Sketch</title>
<!-- put additional styles and scripts here -->
</head>
<body>
<!-- put markup and other contents here -->
</body>
</html>`;
export const PACKAGE_JSON = `{
"name": "esnextbin-sketch",
"version": "0.0.0"
}`;