-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> * 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ć <[email protected]> * 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 <[email protected]> * Fix typo in docs Co-authored-by: Shayne Czyzewski <[email protected]> * Fix another typo in docs Co-authored-by: Shayne Czyzewski <[email protected]> * Add src prefix to file path in docs Co-authored-by: Shayne Czyzewski <[email protected]> * Remove env server file * Apply suggestions from code review Co-authored-by: Shayne Czyzewski <[email protected]> * 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 <[email protected]> * Update typo on frontpage Co-authored-by: Shayne Czyzewski <[email protected]> * Add missing src in docs Co-authored-by: Shayne Czyzewski <[email protected]> Co-authored-by: Shayne Czyzewski <[email protected]> Co-authored-by: Martin Šošić <[email protected]>
- Loading branch information
1 parent
1555662
commit 2fe7398
Showing
112 changed files
with
642 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/.wasp/ | ||
.env | ||
/.env.server | ||
/.env.client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
File marking the root of Wasp project. | ||
File marking the root of Wasp project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"compilerOptions": { | ||
// The following settings enable IDE support in user-provided source files. | ||
// Editing them might break features like import autocompletion and | ||
// definition lookup. Don't change them unless you know what you're doing. | ||
// | ||
// The relative path to the generated web app's root directory. This must be | ||
// set to define the "paths" option. | ||
"baseUrl": "../../.wasp/out/web-app/", | ||
"paths": { | ||
// Resolve all "@wasp" imports to the generated source code. | ||
"@wasp/*": [ | ||
"src/*" | ||
], | ||
// Resolve all non-relative imports to the correct node module. Source: | ||
// https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping | ||
"*": [ | ||
// Start by looking for the definiton inside the node modules root | ||
// directory... | ||
"node_modules/*", | ||
// ... If that fails, try to find it inside definitely-typed type | ||
// definitions. | ||
"node_modules/@types/*" | ||
] | ||
} | ||
} | ||
} |
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"compilerOptions": { | ||
// The following settings enable IDE support in user-provided source files. | ||
// Editing them might break features like import autocompletion and | ||
// definition lookup. Don't change them unless you know what you're doing. | ||
// | ||
// The relative path to the generated web app's root directory. This must be | ||
// set to define the "paths" option. | ||
"baseUrl": "../../.wasp/out/server/", | ||
"paths": { | ||
// Resolve all "@wasp" imports to the generated source code. | ||
"@wasp/*": [ | ||
"src/*" | ||
], | ||
// Resolve all non-relative imports to the correct node module. Source: | ||
// https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping | ||
"*": [ | ||
// Start by looking for the definiton inside the node modules root | ||
// directory... | ||
"node_modules/*", | ||
// ... If that fails, Try to find it inside definitely-typed type | ||
// definitions. | ||
"node_modules/@types/*" | ||
] | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"compilerOptions": { | ||
// The following settings enable IDE support in user-provided source files. | ||
// Editing them might break features like import autocompletion and | ||
// definition lookup. Don't change them unless you know what you're doing. | ||
// | ||
// The relative path to the generated web app's root directory. This must be | ||
// set to define the "paths" option. | ||
"baseUrl": "../../.wasp/out/server", | ||
"paths": { | ||
// Resolve all non-relative imports to the correct node module. Source: | ||
// https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping | ||
"*": [ | ||
// Start by looking for the definiton inside the node modules root | ||
// directory... | ||
"node_modules/*", | ||
// ... If that fails, try to find it inside definitely-typed type | ||
// definitions. | ||
"node_modules/@types/*" | ||
] | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/.wasp/ | ||
/.env.server | ||
/.env.client |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
File marking the root of Wasp project. | ||
File marking the root of Wasp project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"compilerOptions": { | ||
// The following settings enable IDE support in user-provided source files. | ||
// Editing them might break features like import autocompletion and | ||
// definition lookup. Don't change them unless you know what you're doing. | ||
// | ||
// The relative path to the generated web app's root directory. This must be | ||
// set to define the "paths" option. | ||
"baseUrl": "../../.wasp/out/web-app/", | ||
"paths": { | ||
// Resolve all "@wasp" imports to the generated source code. | ||
"@wasp/*": [ | ||
"src/*" | ||
], | ||
// Resolve all non-relative imports to the correct node module. Source: | ||
// https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping | ||
"*": [ | ||
// Start by looking for the definiton inside the node modules root | ||
// directory... | ||
"node_modules/*", | ||
// ... If that fails, try to find it inside definitely-typed type | ||
// definitions. | ||
"node_modules/@types/*" | ||
] | ||
} | ||
} | ||
} |
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"compilerOptions": { | ||
// The following settings enable IDE support in user-provided source files. | ||
// Editing them might break features like import autocompletion and | ||
// definition lookup. Don't change them unless you know what you're doing. | ||
// | ||
// The relative path to the generated web app's root directory. This must be | ||
// set to define the "paths" option. | ||
"baseUrl": "../../.wasp/out/server/", | ||
"paths": { | ||
// Resolve all "@wasp" imports to the generated source code. | ||
"@wasp/*": [ | ||
"src/*" | ||
], | ||
// Resolve all non-relative imports to the correct node module. Source: | ||
// https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping | ||
"*": [ | ||
// Start by looking for the definiton inside the node modules root | ||
// directory... | ||
"node_modules/*", | ||
// ... If that fails, Try to find it inside definitely-typed type | ||
// definitions. | ||
"node_modules/@types/*" | ||
] | ||
} | ||
} | ||
} |
File renamed without changes.
Oops, something went wrong.