Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using TS SDK from waspc #2276

Merged
merged 41 commits into from
Oct 10, 2024
Merged

Using TS SDK from waspc #2276

merged 41 commits into from
Oct 10, 2024

Conversation

sodic
Copy link
Contributor

@sodic sodic commented Sep 11, 2024

These PR contains the changes that enable waspc to process TS SDK projects that look like this.

.
├── main.wasp.mts         // Wasp config file
├── package.json
├── package-lock.json
├── public
├── schema.prisma
├── src
├── tsconfig.src.json     // tsconfig for src
├── tsconfig.json         // Composite  tsconfig
├── tsconfig.wasp.json    // tsconfig for the Wasp config file
├── vite.config.ts
└── node_moduels
    ├── ...
    └── wasp-config       // The package for the TS sdk

The PR doesn't contain any code for creating the artifacts necessary for such a project (e.g., tsconfig templates, the wasp-config package), etc. It's just the Haskell code required to process it.

It's just the purple parts from this graph (the prep work and the blue parts are coming in #2299). The idea is to review this PR by treating the blue parts as a black box with a simple runNodeCommandAsJob interface (but if you really really want a project to try it out, I can hook you up).

@Martinsos
Copy link
Member

image

@sodic sodic changed the title TS Sdk Using TS SDK from waspc Sep 26, 2024
waspc/src/Wasp/Project/Analyze.hs Outdated Show resolved Hide resolved
waspc/src/Wasp/Project/Analyze.hs Outdated Show resolved Hide resolved
waspc/src/Wasp/Project/Analyze.hs Show resolved Hide resolved
waspc/src/Wasp/Project/Analyze.hs Outdated Show resolved Hide resolved
waspc/src/Wasp/Project/Analyze.hs Show resolved Hide resolved
waspc/src/Wasp/Psl/Ast/Schema.hs Show resolved Hide resolved
waspc/src/Wasp/Project/Analyze.hs Outdated Show resolved Hide resolved
waspc/test/AppSpec/FromJSONTest.hs Show resolved Hide resolved
waspc/src/Wasp/Project/Analyze.hs Show resolved Hide resolved
waspc/src/Wasp/Project/Analyze.hs Show resolved Hide resolved
@sodic sodic marked this pull request as ready for review September 26, 2024 12:12
@sodic sodic requested review from Martinsos and infomiho September 26, 2024 12:30
@sodic sodic changed the base branch from main to ts-sdk-preview October 9, 2024 14:34
@sodic sodic merged commit d90b235 into ts-sdk-preview Oct 10, 2024
12 checks passed
@sodic sodic deleted the filip-ts-sdk branch October 10, 2024 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants