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

Create file watch for type def generation #2614

Merged
merged 74 commits into from
May 31, 2021
Merged

Create file watch for type def generation #2614

merged 74 commits into from
May 31, 2021

Conversation

peterp
Copy link
Contributor

@peterp peterp commented May 23, 2021

This is PR part two of #2486.

This adds a file watcher that determines when a particular type definition should be generated.

  • This generates the graphql.schema to the filesystem
  • This generates al the type definitions
  • type definition generation is removed from babel
  • internal now houses logic for find files and determining if they are a type of file.
  • a file watcher is added that discretely generates the correct files when conditions are met
  • the filter watcher is booted in dev mode.
  • yarn rw g types will generate the auxiliary files.

@peterp peterp marked this pull request as ready for review May 30, 2021 19:27
@peterp peterp force-pushed the pp-create-file-watcher branch 3 times, most recently from d433fc8 to f2fe73d Compare May 31, 2021 06:26
@peterp peterp merged commit dc4730b into main May 31, 2021
@thedavidprice thedavidprice added this to the next-release milestone Jun 2, 2021
dac09 added a commit to dac09/redwood that referenced this pull request Jun 2, 2021
…s-ts

# By David Price (6) and others
# Via GitHub
* 'main' of github.com:redwoodjs/redwood:
  build(deps): bump ts-morph from 10.1.0 to 11.0.0 (redwoodjs#2656)
  build(deps): bump core-js from 3.12.1 to 3.13.1 (redwoodjs#2680)
  bump react types and eslint packages patch version (redwoodjs#2695)
  build(deps): bump esbuild from 0.12.1 to 0.12.5 (redwoodjs#2654)
  upgrade misc packages with patch (redwoodjs#2694)
  Fix lerna canary publishing; use default --canary versioning with `git describe` (redwoodjs#2693)
  Upgrade axios due to security alert. (redwoodjs#2688)
  add esbuild config to CLI build and dev (redwoodjs#2564)
  set up yarn offline cache (redwoodjs#2669)
  Create file watch for type def generation (redwoodjs#2614)
  Pin package dependencies, remove CRWA template yarn.lock, set up Yarn offline cache (redwoodjs#2637)
  Fix serve tests (redwoodjs#2668)

# Conflicts:
#	packages/cli/src/commands/generate/types/types.js
#	packages/internal/src/generate/generate-project-typedefs.js
#	packages/internal/src/generate/helpers.js
#	packages/internal/src/generate/templates/scenarios.d.ts.template
dac09 added a commit to dac09/redwood that referenced this pull request Jun 2, 2021
…ter-tests

* 'main' of github.com:redwoodjs/redwood:
  downgrade jest-watch-typeahead 0.6.3 (redwoodjs#2699)
  Exclude yarn packages cache. (redwoodjs#2697)
  build(deps): bump ts-morph from 10.1.0 to 11.0.0 (redwoodjs#2656)
  build(deps): bump core-js from 3.12.1 to 3.13.1 (redwoodjs#2680)
  bump react types and eslint packages patch version (redwoodjs#2695)
  build(deps): bump esbuild from 0.12.1 to 0.12.5 (redwoodjs#2654)
  upgrade misc packages with patch (redwoodjs#2694)
  Fix lerna canary publishing; use default --canary versioning with `git describe` (redwoodjs#2693)
  Upgrade axios due to security alert. (redwoodjs#2688)
  add esbuild config to CLI build and dev (redwoodjs#2564)
  set up yarn offline cache (redwoodjs#2669)
  Create file watch for type def generation (redwoodjs#2614)
  Pin package dependencies, remove CRWA template yarn.lock, set up Yarn offline cache (redwoodjs#2637)
  Fix serve tests (redwoodjs#2668)
  Add script to create a functional test project using the latest CRWA template (redwoodjs#2324)
  build(deps): bump @typescript-eslint/eslint-plugin from 4.24.0 to 4.25.0 (redwoodjs#2627)
  Manage history state length exploding if clicking on a link with with the current route location (redwoodjs#2616)
  [forms] Fix number validation msg (redwoodjs#2552)
@thedavidprice thedavidprice deleted the pp-create-file-watcher branch November 24, 2021 15:54
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