Commit Graph

648 Commits

Author SHA1 Message Date
Martin Sosic
6ec6bc2828 Fixed e2e tests. 2024-01-12 18:12:54 +01:00
Martin Šošić
7f91081bd8
Fix broken documentation links & remove old docs.
* Removed old docs leftovers.

* Fixed broken links in the docs.

* fix
2024-01-12 17:42:53 +01:00
Martin Šošić
e7a773a64c
Versioned docs (#1628)
* Wasp docs are now versioned.

* Removed version 0.11.8 of docs.

* Update waspc/README.md
2024-01-11 16:37:06 +01:00
Mihovil Ilakovac
3a5bba9b39
Bumps version (#1573) 2023-11-14 14:21:20 +01:00
Mihovil Ilakovac
37af3c3143
Update ChangeLog.md 2023-11-14 13:56:40 +01:00
Mihovil Ilakovac
4db82bf815
Escape Prisma command when running with script on Linux (#1561) 2023-11-14 13:32:15 +01:00
Mihovil Ilakovac
62aa2b72c4
Adjust the DB check error message (#1558) 2023-11-09 13:19:47 +01:00
Mihovil Ilakovac
96ea796067
Add check if migrations dir exists before copying (#1562) 2023-11-09 13:17:45 +01:00
Mihovil Ilakovac
2752f889c8
Sets the minimum number of Fly machines to 1 (#1535) 2023-11-06 15:47:45 +01:00
Ikko Eltociear Ashimine
2b47abd36f
Fix typo in Token.hs (#1496)
accomodate -> accommodate

Co-authored-by: Filip Sodić <filip.sodic@fer.hr>
2023-11-06 12:43:17 +01:00
Mihovil Ilakovac
520c35af5c
Adds support for client subdir (#1516) 2023-10-27 15:12:47 +02:00
Mihovil Ilakovac
9f31b3229e
Bumps version to 0.11.7 (#1545) 2023-10-27 14:19:53 +02:00
Mihovil Ilakovac
4aeddfbc9f Updates change log 2023-10-27 12:50:59 +02:00
Mihovil Ilakovac
e871e048fb
Fixes a Prisma SSL bug by bumping Prisma (#1544) 2023-10-27 12:47:25 +02:00
Ritik Raj
b26ca1dc33
updated SQLite to PostgreSQL migration doc's link (#1517) 2023-10-19 15:16:07 +02:00
Parikshit Adhikari
bbfbd77230
fixed typos in waspc/design-docs/db-seeding.org and waspc/design-docs/server-setup.md (#1499) 2023-10-17 17:36:29 +02:00
Parikshit Adhikari
15d7a0cae1
fixed typos in waspc/docs/wasplang/src/index.tex (#1497) 2023-10-17 17:35:33 +02:00
Martin Sosic
2fb1b0a54d Added info about 'wasp studio' command to CLI usage/help output. 2023-10-16 16:02:43 +02:00
Filip Sodić
7df1b10ffd
Bump Wasp version to 0.11.6 and update e2e tests (#1493) 2023-10-10 15:02:31 +02:00
Mihovil Ilakovac
03cfcdfaaf
Wasp Studio [experimental] (#1483) 2023-10-10 12:17:05 +02:00
Mihovil Ilakovac
88d9534fd3
Allow customising the Vite config (#1465) 2023-10-09 15:40:33 +02:00
Mihovil Ilakovac
20eb9e007a
Bumps Wasp version (#1448) 2023-09-16 00:43:46 +02:00
Mihovil Ilakovac
b9ba6fbaa4
Fixes Auth UI (#1447) 2023-09-16 00:13:37 +02:00
Mihovil Ilakovac
99c9021f82
Signup Customisation [RFC] (#1395) 2023-09-12 13:19:47 +02:00
Mihovil Ilakovac
cb88dfc618
Adding support for Postgres Extensions (#1443) 2023-09-12 13:03:57 +02:00
Martin Šošić
ed3be9ca1a
Update README.md with info about installing LLVM on Mac to build wasp 2023-09-10 15:12:31 +02:00
Mihovil Ilakovac
092ff2acaf
Type safe async jobs (#1400) 2023-09-07 16:32:55 +02:00
Martin Sosic
0183d9cbf2 Fixed e2e tests that I messed up when adding comments to app.js. 2023-09-07 14:42:36 +02:00
Martin Šošić
7da0aae3e9
Added a comment to app.js about default express error handler behaviour. 2023-09-06 17:18:21 +02:00
Martin Šošić
179ec45aa9
Updated default .gitignore for new Wasp project to be more robust regarding .env files (#1425) 2023-08-31 15:50:17 +02:00
Mihovil Ilakovac
6b77b673a6
Fixes a types export issue (#1421) 2023-08-31 11:56:20 +02:00
Mihovil Ilakovac
66a04a07ce
Updates tutorial link in templates (#1423) 2023-08-31 10:26:41 +02:00
Mihovil Ilakovac
792c014551
Implement type safe links (#1235) 2023-08-30 14:40:17 +02:00
Craig McIlwrath
0f9726b7a1
[waspls] use the wasp project root instead of the workspace root (#1393)
* calculate project root via location of .wasp file

previously, waspls used workspace root, which was incorrect if you opened a
workspace larger than the wasp project.

this does not add support for multi-project workspaces.

* update changelog with waspls scaffolding info
2023-08-11 08:18:37 -04:00
Craig McIlwrath
d12b403e7d
[waspls] improves LSP scaffolding (#1381)
* create directories when scaffolding, if needed

* refresh export cache after scaffolding

* better process for ensuring a blank line between old code and new scaffolded code
2023-08-10 10:01:20 -04:00
Filip Sodić
a076e9a67a
Add install command to run script (#1385) 2023-08-10 11:22:38 +02:00
Mihovil Ilakovac
b34ab5dc8b
Fixes .env.client copying (#1391) 2023-08-10 11:20:33 +02:00
Craig McIlwrath
ea70a8e4bb
[waspls] fix client directory module resolution (#1372)
Previously, waspls incorrectly thought that importing `@client/file.jsx` could be referencing the file `src/client/file.tsx`. But this JS/TS "merging" is only correct on the server (for reasons that are not explained by the TS documentation on module resolution). This commit fixes that by requiring exact matches for external imports beginning with `@client`.

This incorrect behavior manifested as several different bugs:
- Not reporting missing `.jsx` files when a `.tsx` file with the same name exists.
- Go-to definition going to the `.tsx` file instead of the `.jsx` file when the external import ends in `.jsx`.
- Scaffold actions suggestions scaffolding in both the `.jsx` and `.tsx`files.

This commit fixes all of these buggy behaviors.
2023-07-28 10:49:09 -04:00
Mihovil Ilakovac
7c09e3964b
Updates LSP templates (#1375) 2023-07-28 10:33:04 +02:00
Craig McIlwrath
76d9fc4213
[waspls] Add code actions for scaffolding external code (#1316)
When an external import tries to import a symbol from a TypeScript/JavaScript file, waspls now offers quickfix code actions to scaffold a function in that file.

It uses the surrounding context of the external import to determine what code to write for the code action. See [`ScaffoldTsSymbol.hs`](457911d5e9/waspc/waspls/src/Wasp/LSP/Commands/ScaffoldTsSymbol.hs) for a detailed description of how it works. At a high level, there is a `templateForFile` function in `Wasp.LSP.Commands.ScaffoldTsSymbol` that selects the correct template from `data/lsp/templates/ts`. For example, `action.fn.ts` contains a template for scaffolding an `action` function in a TypeScript file and would be used when a code action is requested with the cursor at the location marked by `|`:

```wasp
action createTask {
  fn: import { createTask } from "@server/actions.js"|
}
```

The scaffold action runs as a [LSP command](https://microsoft.github.io/language-server-protocol/specifications/specification-3-16/#workspace_executeCommand). To prepare for wanting to define more commands in waspls in the future, this PR also introduces the concept of `Commands` (`Wasp.LSP.Commands.Command`) that define some properties about each command waspls wants to handle.
2023-07-26 08:00:16 -04:00
Craig McIlwrath
8b1d6a96ab
[waspls] implement goto definition for declarations (#1310) 2023-07-18 08:16:26 -04:00
Filip Sodić
af9d7992b3
Add support for Prisma preview features (#1315) 2023-07-12 17:08:57 +02:00
Craig McIlwrath
2d3f0e116c
[waspls] cleanup extimport code (#1292)
mainly refactoring. also updates CI workflow to run packages/ts-inspect tests.
2023-07-07 08:21:33 -04:00
Craig McIlwrath
c1d86b1f91
Show multiple parse errors from Wasp Analyzer (#1298)
* allow multiple errors to come out of analyzer

basically just plumbing. does add one new thing: all the concrete parse
errors get reported now 🥳

* add statement level error recovery to abstract parser

* add expression level parse recovery

recovers from errors inside dict entries, lists,
and tuples.

* document parser error recovery

* run formatter
2023-06-29 12:34:31 +02:00
Martin Šošić
3cb1dbd9f9
Update README.md with instructions on updating starter templates before release. 2023-06-27 12:31:36 +02:00
Mihovil Ilakovac
0e5e653832 Add info about Auto CRUD and Websockets to ChangeLog.
Co-authored-by: Craig McIlwrath <craigmc08@gmail.com>
2023-06-26 14:44:32 +02:00
Martin Sosic
ee18f8bb2d Enriched ChangeLog with more info on 0.11. 2023-06-26 14:19:09 +02:00
Mihovil Ilakovac
c50aef34f8
Rewrite templates to include description (#1283) 2023-06-23 16:44:24 +02:00
Craig McIlwrath
d5c04a002a
[waspls] fix debouncer tests (#1284) 2023-06-23 10:28:22 -04:00
Martin Sosic
afb148e19d wasp cli now exits with code 1 on internal errors. 2023-06-23 12:44:43 +02:00