After scouring various resources, I was unable to find a solution to my unique situation. I am navigating the world of react, tailwind, typescript, electron, and parcel for the first time.
Getting this stack up and running smoothly has been quite a challenge due to my lack of experience. Currently, whenever I make changes to the code, I have to build and run it again to see the updates reflected. Is there a way to streamline this process in my package.json file? Are there any plugins or scripts available to automate this task?
This is how my package.json looks:
{
"name": "electron-typescript-starter",
"version": "1.0.0",
"main": "index.js",
"author": "Huy",
"license": "BSD-2-Clause",
"dependencies": {
"@types/react": "^16.9.2",
"@types/react-dom": "^16.8.5",
"electron": "^6.0.2",
"parcel-bundler": "^1.12.3",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"tailwindcss": "^1.1.2"
},
"scripts": {
"dev": "parcel ./index.html",
"app": "electron electron.js",
"dist": "parcel build ./index.html",
"watch": "parcel watch ./index.html --public-url ./ --target=electron-renderer"
},
"devDependencies": {
"sass": "^1.22.10",
"typescript": "^3.5.3"
}
}