Commit Graph

757 Commits

Author SHA1 Message Date
Filip Sodić
31df276a25
Client-side TypeScript support (#824)
* Add typescript support to generator

* Change jsconfig to tsconfig for client

* Change Main.js to Main.tsx

* Implement TypeScript support on client

* Fix formatting

* Fixes in actions/index.ts

* Remove extra types from comments

* Update waspc/src/Wasp/Generator/ServerGenerator.hs

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* Remove server-specific typescript stuff

* Fix useQuery type

* Add typeroots to client tsconfig

* Improve TypeScript support on client

* Remove tsx extension from template wasp file

* Format code

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2022-11-24 14:28:37 +01:00
Martin Sosic
ccf3c7199f Npm install now prints more information during wasp start. 2022-11-23 17:46:07 +01:00
Martin Šošić
bb8202109a
wasp version command now prints info how to change version. (#826) 2022-11-23 16:55:12 +01:00
Martin Šošić
4087774d26
Removed alpha messaging. (#825) 2022-11-23 14:33:18 +01:00
Martin Sosic
c3000cf322 improved text in README on test releases. 2022-11-22 20:13:04 +01:00
Martin Sosic
bf5e402e9c Updated README with info on release candidates. 2022-11-22 19:57:38 +01:00
Martin Sosic
a8c2bd0e80 fixed e2e tests, fixed release script. 2022-11-22 19:31:43 +01:00
Martin Sosic
61b0d668b3 Updated release script. 2022-11-22 19:13:36 +01:00
Martin Sosic
7243b3ad70 Bumped Wasp version to 0.7.0 2022-11-22 19:12:19 +01:00
Dwi Satrio W
267469b984
Fix typo in docs (#813) 2022-11-21 17:28:54 +01:00
Shayne Czyzewski
8b4d21ec4c
Update Prisma to latest version (#806) 2022-11-16 09:11:22 -05:00
Shayne Czyzewski
c71c810585
Update examples styling (#807) 2022-11-16 07:57:31 -05:00
Shayne Czyzewski
52e710494f
Update default favicon (#815) 2022-11-16 06:57:18 -05:00
Filip Sodić
2fe7398462
Adapt example apps to project struct change (#809)
* Separate ext code to client and server

* Use skeleton in createNewProject and refactor

* Refactor Lib.hs to use ExceptT

* Fix formatting

* Pop up returns

* Extract liftIO and add a do block

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Address some review comments

* Add skeleton comment

* Extract common CommandError message

* Separate skeleton comment into two rows

* Move server and client dirs into src

* Simplify maybeToEither

* Further refactor Lib.hs

* Further simplify skeleton comment

* Add shared code directory to project structure

* Update e2e test inputs

* Update e2e test outputs

* Fix formatting

* Fix bug in compile function

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* Change map to fmap in compile function

* Fix formatting

* Force git to include empty directories

* Remove extra empty line from .gitkeep files

* Add .jsconfig to enable go-to-definition

* Watch shared directory for changes

* Add final newline to jsconfigs

* Fix regular and e2e tests

* Update e2e tests

* Fix cli template packaging and update todoApp

* Add a shared function demo to todoApp

* Update waspc and e2e tests

* Fix compiler warnings and rename function

* Rename mkError to mkParserError

* Remove redundant empty line

* Fix test warnings

* Fix formatting

* Update waspc.cabal with jsconfigs

* Minimize jsconfig.json files

* Add jsconfigs to waspc todoApp

* Update e2e tests

* Update e2e tests

* Update docs for new project structure

* Update todoApp example to new structure

* Update ItWaspsOnMyMachine

* Update thoughts

* Update Waspello to new structure

* Update Waspleau to new structure

* Update Realworld to new structure, fix warnings

* Fix directory tree watching on wasp start

* Implement review feedback

* Fix typo in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Fix typo in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Fix another typo in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Add src prefix to file path in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Remove env server file

* Apply suggestions from code review

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Address code review comments

* Fix incorrect path in docs

* Fix references to ext in docs

* Edit changelog and add migration guide

* Further update docs to new structure

* Update blogs about example apps to new structure

* Fix typo in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Update typo on frontpage

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Add missing src in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>
Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2022-11-11 18:58:29 +01:00
Filip Sodić
1555662645
Update docs to account for struct changes (#808)
* Separate ext code to client and server

* Use skeleton in createNewProject and refactor

* Refactor Lib.hs to use ExceptT

* Fix formatting

* Pop up returns

* Extract liftIO and add a do block

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Address some review comments

* Add skeleton comment

* Extract common CommandError message

* Separate skeleton comment into two rows

* Move server and client dirs into src

* Simplify maybeToEither

* Further refactor Lib.hs

* Further simplify skeleton comment

* Add shared code directory to project structure

* Update e2e test inputs

* Update e2e test outputs

* Fix formatting

* Fix bug in compile function

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* Change map to fmap in compile function

* Fix formatting

* Force git to include empty directories

* Remove extra empty line from .gitkeep files

* Add .jsconfig to enable go-to-definition

* Watch shared directory for changes

* Add final newline to jsconfigs

* Fix regular and e2e tests

* Update e2e tests

* Fix cli template packaging and update todoApp

* Add a shared function demo to todoApp

* Update waspc and e2e tests

* Fix compiler warnings and rename function

* Rename mkError to mkParserError

* Remove redundant empty line

* Fix test warnings

* Fix formatting

* Update waspc.cabal with jsconfigs

* Minimize jsconfig.json files

* Add jsconfigs to waspc todoApp

* Update e2e tests

* Update e2e tests

* Update docs for new project structure

* Update todoApp example to new structure

* Fix directory tree watching on wasp start

* Implement review feedback

* Fix typo in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Fix typo in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Fix another typo in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Add src prefix to file path in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Address code review comments

* Fix incorrect path in docs

* Fix references to ext in docs

* Further update docs to new structure

* Update typo on frontpage

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Add missing src in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>
Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2022-11-11 18:36:50 +01:00
Filip Sodić
67eca7ecf6
Add peek and go to definition for JS files (#795)
* Separate ext code to client and server

* Use skeleton in createNewProject and refactor

* Refactor Lib.hs to use ExceptT

* Fix formatting

* Pop up returns

* Extract liftIO and add a do block

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Address some review comments

* Add skeleton comment

* Extract common CommandError message

* Separate skeleton comment into two rows

* Move server and client dirs into src

* Simplify maybeToEither

* Further refactor Lib.hs

* Further simplify skeleton comment

* Add shared code directory to project structure

* Update e2e test inputs

* Update e2e test outputs

* Fix formatting

* Fix bug in compile function

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* Change map to fmap in compile function

* Fix formatting

* Force git to include empty directories

* Remove extra empty line from .gitkeep files

* Add .jsconfig to enable go-to-definition

* Watch shared directory for changes

* Add final newline to jsconfigs

* Fix regular and e2e tests

* Update e2e tests

* Fix cli template packaging and update todoApp

* Add a shared function demo to todoApp

* Update waspc and e2e tests

* Fix compiler warnings and rename function

* Rename mkError to mkParserError

* Remove redundant empty line

* Fix test warnings

* Fix formatting

* Update waspc.cabal with jsconfigs

* Minimize jsconfig.json files

* Add jsconfigs to waspc todoApp

* Update e2e tests

* Update e2e tests

* Fix directory tree watching on wasp start

* Implement review feedback

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>
Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2022-11-11 17:38:38 +01:00
Filip Sodić
86e0893d6f
Separate user code into client, server, shared (#753)
* Separate ext code to client and server

* Use skeleton in createNewProject and refactor

* Refactor Lib.hs to use ExceptT

* Fix formatting

* Pop up returns

* Extract liftIO and add a do block

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Address some review comments

* Add skeleton comment

* Extract common CommandError message

* Separate skeleton comment into two rows

* Move server and client dirs into src

* Simplify maybeToEither

* Further refactor Lib.hs

* Further simplify skeleton comment

* Add shared code directory to project structure

* Update e2e test inputs

* Update e2e test outputs

* Fix formatting

* Fix bug in compile function

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* Change map to fmap in compile function

* Fix formatting

* Force git to include empty directories

* Remove extra empty line from .gitkeep files

* Watch shared directory for changes

* Fix regular and e2e tests

* Fix cli template packaging and update todoApp

* Add a shared function demo to todoApp

* Update waspc and e2e tests

* Fix compiler warnings and rename function

* Rename mkError to mkParserError

* Remove redundant empty line

* Fix test warnings

* Fix formatting

* Fix directory tree watching on wasp start

* Implement review feedback

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>
Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2022-11-11 17:20:49 +01:00
Filip Sodić
6d0e81e757
Don't require golden dirs before e2e:accept-all (#800) 2022-11-07 17:07:47 +01:00
Martin Sosic
33699b5e53 Updated our new-release script to work with semver versions. 2022-11-07 13:24:35 +01:00
Shayne Czyzewski
e0fd8975a9
Fix warnings in tests (#801) 2022-11-06 08:26:53 -05:00
Martin Šošić
d9fc27bcde
Improved how Wasp prints output of underlying processes. (#794) 2022-11-04 19:57:34 +01:00
Martin Šošić
26f45942f8
If wrong wasp version, message gives instructions how to install correct one. (#799)
* If wrong wasp version, message gives instructions how to install correct one.

* fix
2022-11-04 19:24:51 +01:00
Shayne Czyzewski
fa9f487e2a
Adds opt-in support for Tailwind (#777) 2022-11-04 09:39:13 -04:00
Martin Šošić
7c45475601
Detect when jobs quiet down and print compiler warnings/errors. (#781)
Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>
2022-11-01 22:43:39 +01:00
Anthony Suárez
0cde880f24
Feat: Validate wasp version from spec (#786)
* Add wasp field to AppSpec.App

* Validate app.wasp.version in AppSpec.Valid

* Add app.wasp.version field on .wasp file generated by CreateNewProject

* Add app.wasp.version to .wasp files of e2e tests

* Add app.wasp.version to examples' .wasp files

* Add app.wasp.version to docs

* Change waspc version from 0.6.0.0 to 0.6.0

* Change app.wasp.version validation to use regular semver

* Format code

* Refactor app.wasp.version validation

* Refactor app.wasp.version validation

* Update supported app.wasp.version format in docs

* Add TODO to validateWaspVersion

* Refactor app.wasp.version using toEnum

* Create Wasp.Version module with waspVersion constant

* Fix parseWaspVersionRange regex

Fixed:
  - The regex wasn't checking the string *starts* with ^.
  - The . symbols were not escaped.
  - The $ token is not specified as supported in the regex-tdfa docs.
    \' is used instead.

* Add comment explaining wasp version validation restrictions

* Use Wasp.Version.waspVersion instead of Paths_wasp.version
2022-10-31 23:00:03 +01:00
Shayne Czyzewski
51b7f0d42c
Updates node/npm to current LTS (#788) 2022-10-31 08:08:50 -04:00
sivasuriyankumarasamy
d8db0e125e
Fixed uncontrolled input error on Realworld login (#792) 2022-10-30 16:46:08 +01:00
Vaishnav
a3e611cae0
Fix invalid contact link on our website (#791) 2022-10-28 18:29:06 +02:00
Joshua Farayola
5473aba6a0 Waspello: Implemented add card and copy list actions in list popover 2022-10-28 13:09:19 +02:00
Anup Aglawe
ba0773c07c fix: drag n drop like trello in example 2022-10-28 12:52:00 +02:00
Dominik Picheta
84c60febdc Documents wasp completion in docs/cli.md
Refs #256.
2022-10-26 00:09:48 +02:00
Filip Sodić
1b129188b0
Update React Query to version 4 (#782)
* Update to React Query 4, pass 1

* Fix array key for React Query 4

* Fix logout bug after React Query 4 update

* Update e2e tests
2022-10-25 11:41:03 +02:00
Martin Sosic
bbb0f36879 Revert "Add user-friendly error when DATABASE_URL envar is not set (#743)"
We are doing this because we forgot to account for .env files,
so we redundant warnings.

This reverts commit f6da4f8899.
2022-10-21 18:17:29 +02:00
Shayne Czyzewski
dc036f56cd
Updates CRA from v4 to v5 (#771) 2022-10-19 10:39:45 -04:00
Emmanuel Aiyenigba
e3ce6d6776
update getting started page (#770)
* update getting started page

* update getting started page

* latest-update

* latest

Co-authored-by: Filip Sodić <filip.sodic@gmail.com>
2022-10-19 12:58:28 +02:00
Hari Sankar
76e43b3685
Add information of completion command in wasp help (#256) (#766)
* Add information of completion command in `wasp help` (fix #256)

* Fix syntax error

* Move completion command under GENERAL
2022-10-19 09:46:15 +02:00
Steven Garcia
c018d284a9
Update Wasp CLI bash completion list (#765)
* Update Wasp CLI bash completion list

* Add completion and completion:generate to commands

Co-authored-by: sgarcia <sgarcia@pop-os.localdomain>
2022-10-19 09:44:00 +02:00
Steven Garcia
f6da4f8899
Add user-friendly error when DATABASE_URL envar is not set (#743)
Co-authored-by: sgarcia <sgarcia@pop-os.localdomain>
2022-10-18 11:58:21 +02:00
Ankesh
ac625d964f
Remove trailing slash from Wasp backend URL (#749)
* Add trailing slash note in deploying document

* Remove trailing slash, if present in the wasp backend URL

* e2e-test for trailing slash fix

* e2e test for trailing slash in wasp backend url

* Fix e2e-tests checksums

Co-authored-by: Filip Sodić <filip.sodic@gmail.com>
2022-10-18 01:31:39 +02:00
InfiniteVerma
c6b61ce573
Checks for duplicate FileDraft _dstPath during generation (#733) 2022-10-17 10:59:24 -04:00
Steven Garcia
e2fe5b2402
Fix compiler warnings in tests (#764)
Co-authored-by: sgarcia <sgarcia@pop-os.localdomain>
2022-10-17 01:32:44 +02:00
Steven Garcia
76e1cf026f
Update documentation for the signup action (#757)
* Update documentation for signup()

* Update wording based on feedback

Co-authored-by: sgarcia <sgarcia@pop-os.localdomain>
2022-10-14 16:10:51 +02:00
Filip Sodić
8cd5220293
Remove rudandant aboslute API URLs (#755)
* Remove rudandant aboslute API URLs

* Remove redundant imports from js files

* Update e2e tests
2022-10-14 15:16:35 +02:00
Shayne Czyzewski
8fc6fd1836
Adds support for Dockerfile customization (#732) 2022-10-13 12:46:07 -04:00
Shayne Czyzewski
a84f3547fa
Fixes login issue for uppercase usernames (#751) 2022-10-13 12:04:45 -04:00
Hari Sankar
6d0affac49
Add README for [example/Waspello] (fix #663) (#738)
* Add README for [example/Waspello] (fix #663)

* Fix typo

* link to the wasp docs

* Fix typo [example/Waspello]

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* Mention the backend

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
Co-authored-by: Max Khamrovskyi <maksim36ua@gmail.com>
2022-10-12 14:39:23 +03:00
Shah
4020295740
Make blog intro / CTA visually distinguishable (#748)
* Add class to paragraph containing CTA

Add class to the paragraph containing CTA elements. The class is used to target the container paragraph element to create a box to distinguish CTA section from the content.

* Add css properties for paragraphy containing CTA

Added css properties for paragraph element to create a box around the CTA, centering the text and providing padding.

* Add media query for CTA box

Add media query for CTA box for small screens to prevent individual CTA from breaking. Each CTA appears on an individual line and look clean. CTA dividers are not shown on small screens.
2022-10-12 11:54:29 +02:00
Shayne Czyzewski
4cdc06dd13
Warn if .env file found (#746) 2022-10-06 13:23:40 +02:00
Peter Reshetin
3f63340fc1
feat: separate env vars for server and client (#683) 2022-10-06 12:51:28 +02:00
Filip Sodić
b470d50be8
Generalize WriteableMonad (#742)
* Fix unused variable warning (#736)

* Generalize WriteableMonad functions

* Format code and remove redundant imports

* Improve MockWriteableMonad with RankNTypes
2022-10-04 11:05:52 +02:00