Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
Rework Bundler Flow (#9)
Browse files Browse the repository at this point in the history
* Added MediaConverter and ImageMediaConverter

* WIP image conversion functionality
Fixed some mistakes
Fixed .env config

* Fixed base64 to blob conversion

* removed console.logs

* Simplified some promises with async/await
Added FontMediaConverter
Added converting single fonts

* Proper error handling for createImageBitmap
Removed unnecessary console.logs

* basic automation tests

* add files

* use page object model

* Fixed too large images triggering "invalid"  error

* style fixes

* move files around, use testData

* cleanup

* add tga file

* remove tests - moved to a new repo

* we do a bit of cleanup

* we did the thing

* no need to limit upload sizes anymore

* minor cleanup

* fix packing data

* minor adjustments

* much more cleanup and some fixes

* make sure to validate fonts

* browser checking

* fix building issues (good catch Nawias)

---------

Co-authored-by: Nawias <[email protected]>
  • Loading branch information
TurtleP and Nawias authored Nov 2, 2023
1 parent e7c8d5b commit 6eaca97
Show file tree
Hide file tree
Showing 15 changed files with 685 additions and 94 deletions.
2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
defaults
node 16
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ dist-ssr
*.njsproj
*.sln
*.sw?
tests_output
171 changes: 168 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,29 @@
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"supportedBrowsers": "(echo export default && browserslist-useragent-regexp --allowHigherVersions) > supportedBrowsers.js"
},
"dependencies": {
"jszip": "^3.10.1",
"mime": "^3.0.0",
"mime-types": "^2.1.35",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hot-toast": "^2.4.1",
"toml": "^3.0.0",
"use-sound": "^4.0.1"
},
"devDependencies": {
"@types/mime": "^3.0.3",
"@types/node": "^20.8.9",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react-swc": "^3.3.2",
"autoprefixer": "^10.4.16",
"browserslist-useragent-regexp": "^4.1.0",
"eslint": "^8.45.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
Expand Down
Loading

0 comments on commit 6eaca97

Please sign in to comment.