Base peachy CLI
npm install @peachy/coreThis packages contains a CLI tool for writing, building and running GJS applications, and several other nice utilities.
It allows you to build, run, and develop GJS applications faster.
peachy build will compile your application into the dist folder. This will bundle any Node modules you might be using
as well, and you can distribute the folder to things like flatpak, or install it globally.
You should be able to run the resulting file with:
``bash`
gjs -m dist/main.js
peachy run will build and run your application. This is a shortcut for peachy build && gjs -m dist/main.js.
peachy dev will compile your application into the dist folder, and watch for changes. When combined with plugins like @peachy/plugin-react`, you can develop your application in React with HMR without having to rebuild it every time.