build: switch from yarn to npm to manage js dependencies and move js contents to root
yarn v1 is being deprecated and starts to have some issues Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
17
src/histoire.setup.ts
Normal file
17
src/histoire.setup.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { defineSetupVue3 } from "@histoire/plugin-vue";
|
||||
import { orugaConfig } from "./oruga-config";
|
||||
import { i18n } from "./utils/i18n";
|
||||
import Oruga from "@oruga-ui/oruga-next";
|
||||
import "@oruga-ui/oruga-next/dist/oruga-full-vars.css";
|
||||
import "./assets/tailwind.css";
|
||||
import "./assets/oruga-tailwindcss.css";
|
||||
import locale from "date-fns/locale/en-US";
|
||||
import MaterialIcon from "./components/core/MaterialIcon.vue";
|
||||
|
||||
export const setupVue3 = defineSetupVue3(({ app }) => {
|
||||
// Vue plugin
|
||||
app.use(i18n);
|
||||
app.use(Oruga, orugaConfig);
|
||||
app.component("material-icon", MaterialIcon);
|
||||
app.provide("dateFnsLocale", locale);
|
||||
});
|
||||
Reference in New Issue
Block a user