diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..8a5daff --- /dev/null +++ b/.npmignore @@ -0,0 +1,6 @@ +.vscode +.github +src +release.sh +tools +example \ No newline at end of file diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000..012a097 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,6 @@ +module.exports = { + trailingComma: "es5", + tabWidth: 2, + semi: false, + singleQuote: true, +}; diff --git a/tools/release.sh b/tools/release.sh old mode 100644 new mode 100755 diff --git a/vite.config.ts b/vite.config.ts deleted file mode 100644 index 51d8909..0000000 --- a/vite.config.ts +++ /dev/null @@ -1,30 +0,0 @@ -// import react from "@vitejs/plugin-react"; -import path from "path"; -import { defineConfig } from "vite"; - -export default defineConfig({ - css: { - preprocessorOptions: { - scss: { - additionalData: `@use "@/styles" as common;`, - // [Sample] - // additionalData: (content: string, path: string): string => { - // return [ - // '@use "@/styles" as common;', - // content, - // ].join('\n'); - // }, - importer(...args: string[]) { - if (args[0] !== "@/styles") { - return; - } - - return { - file: `${path.resolve(__dirname, "./src/assets/styles")}`, - }; - }, - }, - }, - }, - // plugins: [react()], -});