Add initial files

This commit is contained in:
jeffvli
2022-12-08 00:38:12 -08:00
commit 4d64a96f75
239 changed files with 45979 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import {getVersion} from './getVersion.mjs';
/**
* Somehow inject app version to vite build context
* @param {string} [root]
* @return {import('vite').Plugin}
*/
export const injectAppVersion = root => ({
name: 'inject-version',
config: () => {
// TODO: Find better way to inject app version
process.env.VITE_APP_VERSION = getVersion(root);
},
});