Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .husky/pre-commit

This file was deleted.

24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,27 @@ To develop for Squoosh:
Squoosh is an open-source project that appreciates all community involvement. To contribute to the project, follow the [contribute guide](/CONTRIBUTING.md).

[squoosh]: https://squoosh.app




As for new users like me who is using windows the script is not working so i made changes so that windows user can easily run this project on their machine

you just have to change the script to

"scripts": {
"build": "rollup -c && node lib\\move-output.js",
"debug": "node --inspect-brk node_modules\\.bin\\rollup -c",
"dev": "set DEV_PORT=5000 && run-p watch serve",
"watch": "rollup -cw",
"serve": "serve --listen=%DEV_PORT% --config ../../../serve.json .tmp\\build\\static",
"prepare": "husky install"
},

in package.json and after that run as mentioned
npm i
then npm run build
then npm run dev
then go to http://localhost:5000

and after few seconds refresh it
68 changes: 0 additions & 68 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"version": "2.0.0",
"license": "apache-2.0",
"scripts": {
"build": "rollup -c && node lib/move-output.js",
"debug": "node --inspect-brk node_modules/.bin/rollup -c",
"dev": "DEV_PORT=\"${DEV_PORT:=5000}\" run-p watch serve",
"build": "rollup -c && node lib\\move-output.js",
"debug": "node --inspect-brk node_modules\\.bin\\rollup -c",
"dev": "set DEV_PORT=5000 && run-p watch serve",
"watch": "rollup -cw",
"serve": "serve --listen=$DEV_PORT --config ../../../serve.json .tmp/build/static",
"serve": "serve --listen=%DEV_PORT% --config ../../../serve.json .tmp\\build\\static",
"prepare": "husky install"
},
"devDependencies": {
Expand Down