-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(new app-boot): replace app-boot.js with an in-html module
- Loading branch information
1 parent
348291d
commit aa95998
Showing
23 changed files
with
582 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
tests/fixtures/macro-sample-addon/tests/dummy/app/app-boot.js
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
tests/fixtures/macro-sample-addon/tests/dummy/app/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Dummy</title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
{{content-for "head"}} | ||
|
||
<link integrity="" rel="stylesheet" href="/@embroider/core/vendor.css"> | ||
<link integrity="" rel="stylesheet" href="/assets/dummy.css"> | ||
|
||
{{content-for "head-footer"}} | ||
</head> | ||
<body> | ||
{{content-for "body"}} | ||
|
||
<script src="/@embroider/core/vendor.js"></script> | ||
<script type="module"> | ||
import Application from './app'; | ||
import environment from './config/environment'; | ||
|
||
window.LoadedFromCustomAppBoot = true; | ||
Application.create(environment.APP); | ||
</script> | ||
|
||
{{content-for "body-footer"}} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Dummy Tests</title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
{{content-for "head"}} | ||
{{content-for "test-head"}} | ||
|
||
<link rel="stylesheet" href="/@embroider/core/vendor.css"> | ||
<link rel="stylesheet" href="/assets/dummy.css"> | ||
<link rel="stylesheet" href="/@embroider/core/test-support.css"> | ||
|
||
{{content-for "head-footer"}} | ||
{{content-for "test-head-footer"}} | ||
</head> | ||
<body> | ||
{{content-for "body"}} | ||
{{content-for "test-body"}} | ||
|
||
<div id="qunit"></div> | ||
<div id="qunit-fixture"> | ||
<div id="ember-testing-container"> | ||
<div id="ember-testing"></div> | ||
</div> | ||
</div> | ||
|
||
<script src="/testem.js" integrity="" data-embroider-ignore></script> | ||
<script src="/@embroider/core/vendor.js"></script> | ||
<script src="/@embroider/core/test-support.js"></script> | ||
<script src="/@embroider/core/test-entrypoint" type="module"></script> | ||
|
||
{{content-for "body-footer"}} | ||
{{content-for "test-body-footer"}} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Application from 'dummy/app'; | ||
import config from 'dummy/config/environment'; | ||
import * as QUnit from 'qunit'; | ||
import { setApplication } from '@ember/test-helpers'; | ||
import { setup } from 'qunit-dom'; | ||
import { start } from 'ember-qunit'; | ||
|
||
window.LoadedFromCustomAppBoot = true; | ||
setApplication(Application.create(config.APP)); | ||
|
||
setup(QUnit.assert); | ||
|
||
start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.