Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

Nuclear v3 Upgrade Version #283

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

Conversation

dustinsgoodman
Copy link
Owner

@dustinsgoodman dustinsgoodman commented Feb 24, 2022

This PR is to replace #276 where I kept running into issues with other legacy elements. Old configurations were noisy and just in the way for an unused template library and I'm switching out all the core libraries and doing major upgrades along the way so starting from a clean slate is a bit easier especially considering what this project is. This PR includes some work I did in a separate repository and copied over. Main things included:

  • Configure new serverless services
  • Install and configure esbuild and include bundle analyzer
  • Get TypeScript working with some basic examples
  • Add project READMEs
  • Initialize monorepo structure with services directory
  • Add global serverless.common.yml

This PR won't be complete until it has full parity with current main. This means the following features/improvements need to be implemented:

  • Add GraphQL back to the public-api
  • Install jest and configure to run against services
  • Working developer console (think rails console)
  • Linting (JS, TS, and GraphQL) and prettier configurations
  • Utility functions for cross-service communications
  • CI/CD and Dependabot via GitHub Actions

Additionally, a monorepo or workspaces solution needs to be selected. Key factors in selecting the right tool:

  • Keeps roughly the same directory structure
  • Running package.json scripts from a sub-directory works. Currently yarn dev doesn't work from service directories and has to be run via sls offline directory which is not ideal.

Old configurations were noisy and just in the way for an unused template library and I'm switching out all the core libraries and doing major upgrades along the way so starting from a clean slate is a bit easier especially considering what this project is. This PR includes some work I did in a separate repository and copied over. Main things included:

- Configure new serverless services
- Install and configure esbuild and include bundle analyzer
- Get TypeScript working with some basic examples
- Add project READMEs
- Initialize monorepo structure with services directory
- Add global serverless.common.yml
@dustinsgoodman
Copy link
Owner Author

After attempting this migration, many of the changes proved difficult to accomplish given the current setup. Additionally, some of the core scripts and features of this template would not work without relying upon global system settings which defeats the intent of this effort. After doing some research and playing with other tooling, I decided a monorepos solution was needed and landed on using nx. Rather than continuing with this repo, I decided to start fresh in https://github.com/dustinsgoodman/serverless-microservices-graphql-template to preserve the relationship to a forked template. As such, I'm archiving this repo and encourage you to check out the new repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant