Skip to content

Commit

Permalink
feat: add chi_app
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Apr 14, 2020
1 parent f4b690e commit 91f496c
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build_debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,5 @@ async function buildApps(appNames) {
}

rmdir(outFolder, async () => {
await buildApps(['empty_app'])
await buildApps(['chi_app'])
})
14 changes: 14 additions & 0 deletions src/chi_app.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
http-equiv="Content-Security-Policy"
content="object-src 'none'; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://chrome-devtools-frontend.appspot.com"
/>
<meta name="referrer" content="no-referrer" />
<script type="module" src="root.js"></script>
<script type="module" src="chi_app.js"></script>
</head>
<body class="undocked" id="-blink-dev-tools"></body>
</html>
4 changes: 4 additions & 0 deletions src/chi_app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import './shell.js'
import { startApplication } from './RuntimeInstantiator.js'

startApplication('chi_app')
14 changes: 14 additions & 0 deletions src/chi_app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"modules": [
{ "name": "cm" },
{ "name": "cm_web_modes" },
{ "name": "console" },
{ "name": "data_grid" },
{ "name": "formatter" },
{ "name": "object_ui" },
{ "name": "source_frame" },
{ "name": "text_editor" }
],
"extends": "empty_app",
"has_html": true
}

0 comments on commit 91f496c

Please sign in to comment.