Skip to content

Langium generator: Transform to npm workspace and remove web #1810

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kaisalmen
Copy link
Contributor

This will replace #1520 but is not yet ready for review

- Align template structure with target structure
- Integrate a global tsconfig.build.json
- Unify how build and compile is done
- Enhance tests
- Updated relevant dependencies and aligned version in the repo
- Move test output to packages/generator-langium/test/genetator-tests
- Implement review comments: tmLanguage location and package names use languageId
- Do not use "run --prefix" and align eslint+plugin version with typescript
- Updated READMEs
- align vitest usage
@kaisalmen kaisalmen changed the title WIP: Langium generator: Transform to npm workspace and remove web Langium generator: Transform to npm workspace and remove web Apr 11, 2025
@kaisalmen
Copy link
Contributor Author

I rebased the PR and this is ready for review.

@kaisalmen kaisalmen requested a review from Copilot April 11, 2025 18:46
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 57 out of 69 changed files in this pull request and generated no comments.

Files not reviewed (12)
  • .editorconfig: Language not supported
  • package.json: Language not supported
  • packages/generator-langium/package.json: Language not supported
  • packages/generator-langium/templates/.vscode/extensions.json: Language not supported
  • packages/generator-langium/templates/.vscode/launch.json: Language not supported
  • packages/generator-langium/templates/cli/.package.json: Language not supported
  • packages/generator-langium/templates/core/.vscode/extensions.json: Language not supported
  • packages/generator-langium/templates/core/langium-config.json: Language not supported
  • packages/generator-langium/templates/core/tsconfig.json: Language not supported
  • packages/generator-langium/templates/gitignore.txt: Language not supported
  • packages/generator-langium/templates/package.json: Language not supported
  • packages/generator-langium/templates/packages/cli/package.json: Language not supported
Comments suppressed due to low confidence (2)

packages/generator-langium/src/index.ts:359

  • The removal of the '.replace(TSCONFIG_BASE_NAME, tsconfigBaseName)' substitution may break template substitutions for tsconfig placeholders. Confirm that none of the relevant templates depend on this variable.
    _replaceTemplateWords(fileExtensionGlob: string, languageName: string, languageId: string, content: string | Buffer): string {

packages/generator-langium/src/index.ts:325

  • The condition to skip the build based on the 'skip-build' argument is a significant change. Verify that this behavior is intentional and that all build scenarios are handled appropriately in the workspace setup.
        if(!this.args.includes('skip-build')) {

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.

2 participants