Skip to content

Commit

Permalink
feat(new app-boot): replace app-boot.js with an in-html module
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueCutOfficial committed Jun 13, 2024
1 parent 348291d commit c1a76b7
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 19 deletions.
4 changes: 0 additions & 4 deletions tests/addon-template/tests/dummy/app/app-boot.js

This file was deleted.

7 changes: 6 additions & 1 deletion tests/addon-template/tests/dummy/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
{{content-for "body"}}

<script src="/@embroider/core/vendor.js"></script>
<script src="/app-boot.js" type="module"></script>
<script type="module">
import Application from './app';
import environment from './config/environment';

Application.create(environment.APP);
</script>

{{content-for "body-footer"}}
</body>
Expand Down
1 change: 0 additions & 1 deletion tests/addon-template/tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
<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="/app-boot.js" type="module"></script>
<script src="/@embroider/core/test-entrypoint" type="module"></script>

{{content-for "body-footer"}}
Expand Down
4 changes: 0 additions & 4 deletions tests/app-template/app/app-boot.js

This file was deleted.

7 changes: 6 additions & 1 deletion tests/app-template/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
{{content-for "body"}}

<script src="/@embroider/core/vendor.js"></script>
<script src="/app-boot.js" type="module"></script>
<script type="module">
import Application from './app';
import environment from './config/environment';

Application.create(environment.APP);
</script>

{{content-for "body-footer"}}
</body>
Expand Down
1 change: 0 additions & 1 deletion tests/app-template/tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
<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="/app-boot.js" type="module"></script>
<script src="/@embroider/core/test-entrypoint" type="module"></script>

{{content-for "body-footer"}} {{content-for "test-body-footer"}}
Expand Down
1 change: 0 additions & 1 deletion tests/fixtures/macro-test/tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
<script src="{{rootURL}}apple.js"></script>
<script src="{{rootURL}}ordered.js"></script>
<script src="/@embroider/core/test-support.js"></script>
<script src="/app-boot.js" type="module"></script>
<script src="/@embroider/core/test-entrypoint" type="module"></script>

{{content-for "body-footer"}}
Expand Down
4 changes: 0 additions & 4 deletions tests/ts-app-template/app/app-boot.js

This file was deleted.

7 changes: 6 additions & 1 deletion tests/ts-app-template/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
{{content-for "body"}}

<script src="/@embroider/core/vendor.js"></script>
<script src="/app-boot.js" type="module"></script>
<script type="module">
import Application from './app';
import environment from './config/environment';

Application.create(environment.APP);
</script>

{{content-for "body-footer"}}
</body>
Expand Down
1 change: 0 additions & 1 deletion tests/ts-app-template/tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
<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="/app-boot.js" type="module"></script>
<script src="/@embroider/core/test-entrypoint" type="module"></script>

{{content-for "body-footer"}}
Expand Down

0 comments on commit c1a76b7

Please sign in to comment.