vitejs refactor #110
 Merged
	
	
		
		
			
		
		
		
			
		
		
			
			
				trentlarson
				merged 17 commits from jsnbuchanan/crowd-funder-for-time-pwa:feat/vitejs into master 2 years ago
			
		
	
	
				 24 changed files with 11535 additions and 20309 deletions
			
			
		| @ -1,4 +1,4 @@ | |||
| # Only the variables that start with VUE_APP_ are seen in the application process.env in Vue. | |||
| VUE_APP_BVC_MEETUPS_PROJECT_CLAIM_ID=https://endorser.ch/entity/01GXYPFF7FA03NXKPYY142PY4H | |||
| VUE_APP_DEFAULT_ENDORSER_API_SERVER=https://api.endorser.ch | |||
| VUE_APP_DEFAULT_IMAGE_API_SERVER=https://image-api.timesafari.app | |||
| # Only the variables that start with VITE_ are seen in the application process.env in Vue. | |||
| VITE_BVC_MEETUPS_PROJECT_CLAIM_ID=https://endorser.ch/entity/01GXYPFF7FA03NXKPYY142PY4H | |||
| VITE_DEFAULT_ENDORSER_API_SERVER=https://api.endorser.ch | |||
| VITE_DEFAULT_IMAGE_API_SERVER=https://image-api.timesafari.app | |||
|  | |||
| @ -1,4 +0,0 @@ | |||
| module.exports = { | |||
|   plugins: ["@babel/plugin-transform-private-methods"], | |||
|   presets: ["@vue/cli-plugin-babel/preset"], | |||
| }; | |||
| @ -0,0 +1,17 @@ | |||
| <!DOCTYPE html> | |||
| <html lang=""> | |||
|   <head> | |||
|     <meta charset="utf-8"> | |||
|     <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |||
|     <meta name="viewport" content="width=device-width,initial-scale=1.0"> | |||
|     <link rel="icon" href="/favicon.ico"> | |||
|     <title>TimeSafari</title> | |||
|   </head> | |||
|   <body> | |||
|     <noscript> | |||
|       <strong>We're sorry but TimeSafari doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> | |||
|     </noscript> | |||
|     <div id="app"></div> | |||
|     <script type="module" src="/src/main.ts"></script> | |||
|   </body> | |||
| </html> | |||
								
									
										File diff suppressed because it is too large
									
								
							
						
					| @ -1,17 +0,0 @@ | |||
| <!DOCTYPE html> | |||
| <html lang=""> | |||
|   <head> | |||
|     <meta charset="utf-8"> | |||
|     <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |||
|     <meta name="viewport" content="width=device-width,initial-scale=1.0"> | |||
|     <link rel="icon" href="<%= BASE_URL %>favicon.ico"> | |||
|     <title><%= htmlWebpackPlugin.options.title %></title> | |||
|   </head> | |||
|   <body> | |||
|     <noscript> | |||
|       <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> | |||
|     </noscript> | |||
|     <div id="app"></div> | |||
|     <!-- built files will be auto injected --> | |||
|   </body> | |||
| </html> | |||
| @ -1,47 +1,35 @@ | |||
| { | |||
|     "compilerOptions": { | |||
| 	"allowJs": true, | |||
| 	"resolveJsonModule": true, | |||
| 	"target": "esnext", | |||
| 	"module": "esnext", | |||
| 	"strict": true, | |||
| 	"strictPropertyInitialization": false, | |||
| 	"jsx": "preserve", | |||
| 	"moduleResolution": "node", | |||
| 	"experimentalDecorators": true, | |||
| 	"skipLibCheck": true, | |||
| 	"esModuleInterop": true, | |||
| 	"allowSyntheticDefaultImports": true, | |||
| 	"forceConsistentCasingInFileNames": true, | |||
| 	"useDefineForClassFields": true, | |||
| 	"sourceMap": true, | |||
| 	"baseUrl": "./src", | |||
| 	"types": [ | |||
| 	    "webpack-env" | |||
| 	], | |||
| 	"paths": { | |||
| 	    "@/components/*": ["components/*"], | |||
| 	    "@/views/*": ["views/*"], | |||
| 	    "@/db/*": ["db/*"], | |||
| 	    "@/libs/*": ["libs/*"], | |||
| 	    "@/constants/*": ["constants/*"], | |||
| 	    "@/store/*": ["store/*"], | |||
| 	"compilerOptions": { | |||
| 		"target": "ES2020", // Latest ECMAScript features that are widely supported by modern browsers | |||
| 		"module": "ESNext", // Use ES modules | |||
| 		"strict": true, // Enable all strict type checking options | |||
| 		"jsx": "preserve", // Preserves JSX to be transformed by Babel or another transpiler | |||
| 		"moduleResolution": "node", // Use Node.js style module resolution | |||
| 		"experimentalDecorators": true, | |||
| 		"esModuleInterop": true, // Enables compatibility with CommonJS modules for default imports | |||
| 		"allowSyntheticDefaultImports": true, // Allow default imports from modules with no default export | |||
| 		"forceConsistentCasingInFileNames": true, // Disallow inconsistently-cased references to the same file | |||
| 		"useDefineForClassFields": true, | |||
| 		"sourceMap": true, | |||
| 		"baseUrl": "./src", // Base directory to resolve non-relative module names | |||
| 		"paths": { | |||
| 			"@/components/*": ["components/*"], | |||
| 			"@/views/*": ["views/*"], | |||
| 			"@/db/*": ["db/*"], | |||
| 			"@/libs/*": ["libs/*"], | |||
| 			"@/constants/*": ["constants/*"], | |||
| 			"@/store/*": ["store/*"] | |||
| 		}, | |||
| 		"lib": ["ES2020", "dom", "dom.iterable"], // Include typings for ES2020 and DOM APIs | |||
| 	}, | |||
| 	"lib": [ | |||
| 	    "esnext", | |||
| 	    "dom", | |||
| 	    "dom.iterable", | |||
| 	    "scripthost" | |||
| 	"include": [ | |||
| 		"src/**/*.ts", | |||
| 		"src/**/*.tsx", | |||
| 		"src/**/*.vue", | |||
| 		"tests/**/*.ts", | |||
| 		"tests/**/*.tsx" | |||
| 	], | |||
| 	"exclude": [ | |||
| 		"node_modules" | |||
| 	] | |||
|     }, | |||
|     "include": [ | |||
| 	"src/**/*.ts", | |||
| 	"src/**/*.tsx", | |||
| 	"src/**/*.vue", | |||
| 	"tests/**/*.ts", | |||
| 	"tests/**/*.tsx" | |||
|     ], | |||
|     "exclude": [ | |||
| 	"node_modules" | |||
|     ] | |||
| } | |||
|  | |||
| @ -0,0 +1,18 @@ | |||
| import { defineConfig } from "vite"; | |||
| import vue from "@vitejs/plugin-vue"; | |||
| import * as path from "path"; | |||
| 
 | |||
| // https://vitejs.dev/config/
 | |||
| export default defineConfig({ | |||
|   server: { | |||
|     port: 8080 | |||
|   }, | |||
|   plugins: [ vue() ], | |||
|   resolve: { | |||
|     alias: { | |||
|       "@": path.resolve(__dirname, "./src"), | |||
|       buffer: path.resolve(__dirname, 'node_modules', 'buffer'), | |||
|       'dexie-export-import/dist/import': 'dexie-export-import/dist/import/index.js', | |||
| 
				
				jsnbuchanan marked this conversation as resolved
			 | |||
|     }, | |||
|   }, | |||
| }); | |||
					Loading…
					
					
				
		Reference in new issue
	
	
I now see this, which possibly takes the place of that import... so I guess we'll want to talk more about how this should work
It works to have both of these in place so I'll continue with both.
Okay. Sounds good @trentlarson