wasp/waspc/packages
Martin Šošić 4d4c2c2f72
Wasp AI: got prisma format working, fixed recovery on http errors
* Put some skeleton logic in.

* Fixed wrong handling of http errors, got prisma format working.

* fix
2023-07-07 01:24:26 +02:00
..
deploy [waspls] diagnostics for external imports and goto definition (#1268) 2023-06-22 15:37:07 -04:00
prisma Wasp AI: got prisma format working, fixed recovery on http errors 2023-07-07 01:24:26 +02:00
ts-inspect [waspls] diagnostics for external imports and goto definition (#1268) 2023-06-22 15:37:07 -04:00
README.md [waspls] diagnostics for external imports and goto definition (#1268) 2023-06-22 15:37:07 -04:00

Testing Packages Locally

Run tools/install_packages_to_data_dir.sh to compile the packages and copy them into data/. Then you can use cabal run as normal, or you can cabal install and then use wasp-cli.

Adding a New Package

Create a directory in this folder to contain the new package. It should have a build script inside package.json as well as a start script that calls the compiled code.

Then, in data-files inside waspc.cabal, add these files:

packages/<package-name>/package.json
packages/<package-name>/package-lock.json
packages/<package-name>/dist/**/*.js

The last line assumes the project is compiled to JavaScript files inside the dist directory. You should adjust that if needed.

CI Builds/Release

The CI workflow runs the package install script, and tools/make_binary_package.sh takes care of copying data files into the release archive.