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

feat!(app-vite): auto generate base tsconfig and types #17549

Open
wants to merge 27 commits into
base: dev
Choose a base branch
from

Commits on Sep 17, 2024

  1. Configuration menu
    Copy the full SHA
    b1bdb8b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ec59fe4 View commit details
    Browse the repository at this point in the history
  3. feat(app-vite): add Capacitor dependencies to tsconfig paths

    the Vite aliases were already there, thanks to this, TypeScript won't
    complain about using Capacitor deps inside src/ anymore
    yusufkandemir committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    359a8f2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    576eb1e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8d4495b View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. feat(app-vite): generate nested path aliases for capacitor deps too

    e.g. `@capacitor/dep/deep/import`
    yusufkandemir committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    e642886 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0ee130e View commit details
    Browse the repository at this point in the history
  3. feat(app-vite): create a better tsconfig, drop presets

    enforce TS >=5.4 to use module: 'preserve'
    forceConsistentCasingInFileNames defaults to true since TS 5.0
    verbatimModuleSyntax will require user to update their codes
    jsx: preserve is no longer needed for Vue Language Tools
    
    strict: true and some of the other strict options will be added through a flag
    yusufkandemir committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    396e61b View commit details
    Browse the repository at this point in the history
  4. feat(app-vite): add an option to generate tsconfig with strict rules

    compared to previous regular preset:
    noUnusedLocals is turned off as it produces extra noise when using ESLint, where the behavior is better as it's configurable
    
    compared to previous stricter config:
    noPropertyAccessFromIndexSignature is removed as it doesn't even allow process.env.DEV unless it's augmented explicitly, which we don't do at the moment. It enforces process.env['DEV'] instead, which is annoying and confusing to use. We can't augment the env variables as Node types enforce string, but our own types are actual boolean values.
    
    noImplicitReturns reduces the DX and is not that beneficial in app code compared to its use in library code. It still has it's uses, but it doesn't belong the usual strictness.
    yusufkandemir committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    2f70638 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0a68835 View commit details
    Browse the repository at this point in the history
  6. fix(app-vite): correctly handle non-existent aliases

    they were throwing errors, now we skip them for an even slimmer result
    yusufkandemir committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    cb8cd7d View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. Configuration menu
    Copy the full SHA
    b56b7f4 View commit details
    Browse the repository at this point in the history
  2. fix(app-vite): suppress the esbuild tsconfig.json warning

    when .quasar/tsconfig.json is missing prior to generation
    yusufkandemir committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    7d803e4 View commit details
    Browse the repository at this point in the history
  3. feat(app-vite): split types generation, handle it on diff

    now it will re-generate the types if build.typescript or build.alias gets updated
    yusufkandemir committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    6a3c5bb View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. feat(app-vite): add prepare command

    to generate tsconfig and types
    yusufkandemir committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    61d443a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    11e0a91 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    85d88c1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8567cb9 View commit details
    Browse the repository at this point in the history
  5. feat(create-quasar): remove unused store-flag.d.ts

    as feature flags are handled into .quasar now
    yusufkandemir committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    12c32a0 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2024

  1. Configuration menu
    Copy the full SHA
    68687c6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    88f734d View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. Configuration menu
    Copy the full SHA
    c15ee24 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b80140 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    174a78e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c919dd9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    963efe7 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2024

  1. Configuration menu
    Copy the full SHA
    4185c31 View commit details
    Browse the repository at this point in the history