Skip to content

Commit

Permalink
🚧 package changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelLaptev committed Jun 18, 2023
1 parent aa3f0b0 commit 4c4dd7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ In order to test the script locally:
1. you need to run `npm run dev` in the root folder. It will start the NextJS app.
2. Then you need to run `npm run watch:lib-build`. It will start the watcher for the script. It will build the script every time you change it and create `squircle.min.js` file in the `root` folder and in the `public` folder of the NextJS app.
3. In the `index.tsx` file of the NextJS app, you can uncomment the line with [test section](https://github.com/PavelLaptev/squircle-houdini-css/blob/70f81510d45185e3946ec2cbec3cd4ab6495224b/src/pages/index.tsx#L57) un comment other in order to ease the development process.
4. Do not forget to run `npm run lib-build` before pushing the changes.

---

Expand Down
17 changes: 7 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,23 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"watch:lib-build": "nodemon --watch lib/squircle.js --exec 'npm run lib-build'",
"lib-build": "uglifyjs lib/squircle.js -o squircle.min.js && cp squircle.min.js public/squircle.min.js",
"start": "next start",
"lint": "next lint"
"watch:lib-build": "nodemon --watch lib/squircle.js --exec 'npm run lib-build'",
"lib-build": "uglifyjs lib/squircle.js -o squircle.min.js && cp squircle.min.js public/squircle.min.js"
},
"dependencies": {
"dependencies": {},
"devDependencies": {
"@types/node": "20.3.1",
"@types/react": "18.2.12",
"@types/react-dom": "18.2.4",
"css-paint-polyfill": "^3.4.0",
"eslint": "8.42.0",
"eslint-config-next": "13.4.4",
"next": "13.4.4",
"nodemon": "^2.0.22",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "5.1.3"
},
"devDependencies": {
"css-paint-polyfill": "^3.4.0",
"sass": "^1.63.4",
"nodemon": "^2.0.22",
"typescript": "5.1.3",
"uglify-js": "^3.17.4"
}
}

0 comments on commit 4c4dd7e

Please sign in to comment.