-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
517 additions
and
1,188 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 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
hi | ||
<DocsViewer as |viewer|> | ||
<viewer.nav as |nav|> | ||
<nav.section @label='Getting Started' /> | ||
|
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,4 @@ | ||
// eslint-disable-next-line n/no-missing-require | ||
let config = require('./node_modules/.embroider/rewritten-app/_babel_config_'); | ||
|
||
module.exports = config; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { defineConfig } from "vite"; | ||
import { | ||
resolver, | ||
hbs, | ||
scripts, | ||
templateTag, | ||
optimizeDeps, | ||
compatPrebuild, | ||
} from "@embroider/vite"; | ||
import { resolve } from "path"; | ||
import { babel } from "@rollup/plugin-babel"; | ||
import { hmr } from 'ember-vite-hmr'; | ||
|
||
const root = "node_modules/.embroider/rewritten-app"; | ||
|
||
export default defineConfig({ | ||
root, | ||
// esbuild in vite does not support decorators | ||
esbuild: false, | ||
cacheDir: resolve("node_modules", ".vite"), | ||
plugins: [ | ||
hbs(), | ||
templateTag(), | ||
scripts(), | ||
resolver(), | ||
// compatPrebuild(), | ||
hmr(), | ||
|
||
babel({ | ||
babelHelpers: "runtime", | ||
|
||
// this needs .hbs because our hbs() plugin above converts them to | ||
// javascript but the javascript still also needs babel, but we don't want | ||
// to rename them because vite isn't great about knowing how to hot-reload | ||
// them if we resolve them to made-up names. | ||
extensions: [".gjs", ".js", ".hbs", ".ts", ".gts"], | ||
}), | ||
], | ||
optimizeDeps: Object.assign(optimizeDeps(), { exclude: ['carbon-components-ember', '@embroider/macros'] }), | ||
server: { | ||
port: 4200, | ||
watch: { | ||
ignored: ["!**/node_modules/.embroider/rewritten-app/**"], | ||
}, | ||
}, | ||
build: { | ||
outDir: resolve(process.cwd(), "dist"), | ||
rollupOptions: { | ||
input: { | ||
main: resolve(root, "index.html"), | ||
tests: resolve(root, "tests/index.html"), | ||
}, | ||
}, | ||
}, | ||
}); |
Oops, something went wrong.